A base class for all widgets.
Member | Description |
---|---|
addChild | Add a child widget. |
insertChild | Insert a child widget into the specified index. |
removeChild | Remove a child widget. |
indexOfChild | Get an index of a child widget. |
getJustSize | Get a size to contain all child widgets. |
repaint | Repaint a widget. |
clientToScreen | Convert a client coodinate to a screen coordinate. |
screenToClient | Convert a screen coodinate to a client coordinate. |
clientToClient | Convert a client coodinate to a screen coordinate. |
addChild(child) | ||||
Add a child widget. | ||||
| ||||
|
insertChild(child, index) | ||||||||
Insert a child widget into the specified index. | ||||||||
| ||||||||
|
removeChild(child) | ||||
Remove a child widget. | ||||
|
indexOfChild(child) | ||||
Get an index of a child widget. | ||||
| ||||
|
getJustSize([max_width, max_height]) | ||||||||
Get a size to contain all child widgets. | ||||||||
| ||||||||
|
repaint([immediate]) | ||||
Repaint a widget. | ||||
|
clientToScreen(x, y) | ||||||||
Convert a client coodinate to a screen coordinate. | ||||||||
| ||||||||
|
screenToClient(x, y) | ||||||||
Convert a screen coodinate to a client coordinate. | ||||||||
| ||||||||
|
clientToClient(x, y, target) | ||||||||||||
Convert a client coodinate to a screen coordinate. | ||||||||||||
| ||||||||||||
|