#include <MAUI/Layout.h>
Inheritance diagram for MAUI::Layout:
|
|
|
|
|
Constructor.
|
|
Constructor.
|
|
Overloaded implementation of Widget::add(), with the same external semantics. Reimplemented from MAUI::Widget. |
|
Overloaded implementation of drawWidget(). Implements MAUI::Widget. |
|
Sets the x margin of each widget relative to the grid cell it resides in. |
|
Sets the y margin of each widget relative to the grid cell it resides in. |
|
Sets the horizontal alignment of the child widget within their grid cells. |
|
Sets the vertical alignment of the child widget within their grid cells. |
|
Sets the horizontal autosize property, determining wether the grid columns are resized so that the widest of its children fits. |
|
Sets the vertical autosize property, determining wether the grid rows are resized so that the widest of its children fits. |
|
Sets the number of columns in the grid. |
|
Sets the number of rows in the grid. |
|
Sets the position of the widget, relative to the parent Reimplemented from MAUI::Widget. |
|
Sets the width of the widget Reimplemented from MAUI::Widget. |
|
Sets the height of the widget Reimplemented from MAUI::Widget. |
|
Navigate to the cell above the currently selected one |
|
Navigate to the cell below the currently selected one |
|
Navigate to the cell to the right of the currently selected one |
|
Navigate to the cell to the left the currently selected one |
|
Cause the currently selected cell's widget to be triggered Reimplemented from MAUI::Widget. |
|
Reimplemented from MAUI::Widget. |
|
|
|
This function is called whenever the widget being listened to is resized or moved. Reimplemented from MAUI::WidgetListener. |
|
Function used to set the parent of a widget. The widget will not be added to the parent as a child. The widget cannot have a parent already. |
|
Function to retrieve the parent of a widget. |
|
Function to retrieve a reference to the list of childrens for a widget. |
|
const version of getChildren() |
|
Renders the Widget and all its children recursively. Reimplemented in MAUI::ListBox. |
|
Registers an idle listener with the current environment that will redraw the widget and anything else that may be made dirty by doing so. For instance, if the widget is transparent its parent also has to be repainted, and so on recursively. |
|
Returns whether or not the widget is transparent. A widget is transparent if it has a skin that is transparent in the current selection state (selected/unselected) or if it has no solid background color. |
|
Assigns a widget skin to be used during the rendering of the widget. What The skin applies to varies depending on the widget. Labels extend the skin over their entire area, while listboxes apply the skin to each individual item they contain. |
|
Sets the background drawing state. If b is true, the Widget's background will be drawn - otherwise not. In most cases, the background is either a constant color or a skin. |
|
|
|
Returns a pointer to the first child widget or deeper descendant, surrounding the point. Returns NULL if no widget is found. |
|
|
|
Gets the widget's position relative to its parent. |
|
Gets the widget's padded position relative to its parent. |
|
Returns the width of the widget |
|
Returns the height of the widget |
|
Returns a Rect containing the absolute screen position of the widget together with its dimensions. |
|
Check if widget surrounds position 'p'. |
|
Check if widget surrounds position 'x' and 'y'. |
|
Set widget selected state (default: true). Reimplemented in MAUI::EditBox. |
|
Is widget selected?. |
|
Set Widget enabled state Reimplemented in MAUI::EditBox. |
|
Is Widget enabled ? |
|
Add WidgetListener. |
|
Remove WidgetListener. |
|
returns a reference the the vector of Widget listeners |
|
Sets the input manager to use for this widget |
|
Set left padding width. Reimplemented in MAUI::Label. |
|
Set top padding height. Reimplemented in MAUI::Label. |
|
Set right padding width. Reimplemented in MAUI::Label. |
|
Set bottom padding height. Reimplemented in MAUI::Label. |
|
Get left padding width. |
|
Get top padding height. |
|
Get right padding width. |
|
Get bottom padding height. |
|
|
|
Reimplemented in MAUI::Label. |
|
|
|
This function is used to regenerate the absolute positions of each widget in the tree. This is done in a depth first manner where each widget takes the parent absolute position and adds it to their own relative position to calculate their absolute position. |
|
the recursive function used by updateAbsolutePosition(). |
|
Used to recalculate the padded bounds from the global bounds. |
|
Returns the dirty state of the widget, indicating whether it requires to be redrawn or not. When a widget calls requestRepaint(), it's dirty state is set to true. Normally, you shouldn't have to use isDirty() or setDirty() unless possibly when implementing your own widgets. |
|
Sets the dirty state of the widget. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|