ContainerControl

An abstract base class for a control with children.

Members

Functions

addChild
typeof(this) addChild(Control control)
Undocumented in source. Be warned that the author may not have intended to support it.
controlAt
Control controlAt(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseDown
void handleMouseDown(int x, int y, MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseMove
void handleMouseMove(int x, int y, MouseButtons buttons)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseUp
void handleMouseUp(int x, int y, MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(Renderer s, int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

children
Control[] children [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Control

x
int x;
y
int y;
w
int w;
h
int h;
Undocumented in source.
handleMouseDown
void handleMouseDown(int x, int y, MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseUp
void handleMouseUp(int x, int y, MouseButton button)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseMove
void handleMouseMove(int x, int y, MouseButtons buttons)
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(Renderer r, int x, int y)
Undocumented in source.
parent
ContainerControl parent [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
parent
ContainerControl parent [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
arrange
void arrange(int rw, int rh)

rw and rh are recommended (hint) sizes that the parent is allocating to the child, but there is no obligation to follow them.

rearrange
void rearrange()

Called when a child's dimensions change, to allow the size change to bubble up to parents.

Meta