Interface Panel
access this type via: ui.Panel (provides, requires or uses)
--- extends:KeyEventObject
Panel objects host other graphical objects. A Panel is itself a GraphicsObject, so panels can be nested.
Transfer fields
int width
int height
bool repaintOn
Functions
Panel()
void setBackground(storeColor c)
Color getBackground()
void addObject(storeGraphicsObject go, optional bool globalHotKeys)
void remObject(GraphicsObject go)
void clearObjects()
GraphicsObjectItem[] getObjects()
void setSize(int w, int h)
WH getSize()
void setRepaint(bool b)
Transfer fields
width
height
repaintOn
Panel()
Instantiate a new panel.
void setBackground(storeColor c)
Set the background of the panel.
Color getBackground()
Get the current background of the panel.
void addObject(storeGraphicsObject go, optional bool globalHotKeys)
Add a graphical object to the panel.
void remObject(GraphicsObject go)
Remove a graphical object from the panel.
void clearObjects()
Remove all graphical objects from the panel.
GraphicsObjectItem[] getObjects()
Get the list of graphical objects on the panel.
void setSize(int w, int h)
Set the size of this panel. Any graphical objects which are outside of this size will be clipped.
WH getSize()
Get the size of this panel.
void setRepaint(bool b)
Set global repaint on or off for this panel. When set to off, the panel will not act on repaint events that come from its hosted graphics objects. This can be useful when an application is updating a lot of graphics objects in a panel and wants to e.g. re-draw only once at the end. When repaint is set back to 'on' a full repaint is triggered for everything in the panel.