Interface Window
access this type via: ui.Window (provides, requires or uses)
--- extends:Panel
This API allows the programmer to create new graphical windows on the screen.
Events
close()
Functions
Window(char title[])
void setVisible(bool b)
void setResizable(bool b)
void setFullScreen(bool b)
void setTitle(char title[])
void setIcon(storePixelMap p)
Rect getRect()
void close()
void waitForClose()
Events
close
Window(char title[])
Instantiate a new window with the given title.
void setVisible(bool b)
Make the window visible / invisible.
void setResizable(bool b)
Make the window user-resizable or not.
void setFullScreen(bool b)
Place the window in full-screen mode, or in windowed mode.
void setTitle(char title[])
Set the title of the window.
void setIcon(storePixelMap p)
Set the icon used to represent the window, if the operating system supports this.
Rect getRect()
Get the current location of this window, relative to the top-left corner of the screen.
void close()
Close the window (no further operations can be called on the window once this is done).
void waitForClose()
This utility function can be used to block the caller until the window is closed.