Interface IOWindow
access this type via: ui.IOWindow (provides, requires or uses)
--- extends:Canvas
IOLayer is the system API to control an OS-level window and interpret its events. This API is not normally used directly by the programmer. To create graphical windows, you would usually use an application-level wrapper of this API such as ui.Window.
Events
mouseUp(MouseEvent m)
mouseDown(MouseEvent m)
mouseMove(MouseEvent m)
keyUp(KeyEvent k)
keyDown(KeyEvent k)
resizeWindow(WH size)
moveWindow(Point position)
closeWindow()
Functions
IOWindow()
void setVisible(bool v)
void setResizable(bool v)
void setFullScreen(bool v)
void setTitle(char title[])
void setIcon(storePixelMap p)
void setPosition(int x, int y)
void setSize(int w, int h)
void setBackground(storeColor c)
WH getResolution()
void paint()
void close()
Events
mouseUp
mouseDown
mouseMove
keyUp
keyDown
resizeWindow
moveWindow
closeWindow
IOWindow()
Initialise a new OS-level window.
void setVisible(bool v)
Hide/show the window.
void setResizable(bool v)
Set the window as user-resizeable or not.
void setFullScreen(bool v)
Set the window as full-screen or not.
void setTitle(char title[])
Set the title of the window.
void setIcon(storePixelMap p)
Set the image used for the icon of the window.
void setPosition(int x, int y)
Set the x/y position of the window on the screen.
void setSize(int w, int h)
Set the width and height of the window.
void setBackground(storeColor c)
Set the background color of the window.
WH getResolution()
Get the screen resolution of the display on which the window resides.
void paint()
Repaint the window and its contents.
void close()
Close the window (other functions on this API will not work after this).