#include <MAUI/ListBox.h>
Inheritance diagram for MAUI::ListBox:
|
|
|
|
|
Constructor.
|
|
Constructor.
|
|
Destructor |
|
Addes the Widget w as a child of the listbox Reimplemented from MAUI::Widget. |
|
Renders the listbox Reimplemented from MAUI::Widget. |
|
Reimplemented from MAUI::Widget. |
|
Navigates to the next item in the listbox - down if the orientation is vertical, right if it's horizontal. |
|
Navigates to the previous item in the listbox - up if the orientation is vertical, left if it's horizontal. |
|
Adds a item selection listener |
|
Specifies which item in the ListBox should be selected |
|
Sets the orientation of the ListBox |
|
Sets the type of animation to be used by the ListBox |
|
Controls the wrapping behavior of the ListBox |
|
Returns the type of animation used by the List Box |
|
Returns whether the ListBox will wrap around when moving beyond the first or last element |
|
Returns the index of the ListBox's currently selected child widget |
|
Sets autosizing on a ListBox. This autosizes the children of the listbox in the opposite direction of the orientation. I.e. if the list box is vertically oriented, the widgets will be resized to the width of the listbox (the padded width), and vice versa. |
|
Overloaded setWidth. If autosizing is set and the orientation is vertical on the ListBox this will set the width of the children. Reimplemented from MAUI::Widget. |
|
Overloaded setHeight. If autosizing is set and the orientation is horizontal on the ListBox this will set the height of the children. Reimplemented from MAUI::Widget. |
|
Returns true if child widgets is outside of the front of the list. |
|
Returns true if child widgets is outside of the back of the list. |
|
Returns the listboxes' current scroll offset in pixels. |
|
Implements MAUtil::TimerListener. |
|
This is the only function that is absolutely neccesary to implement when inheriting Widget to create a custom widget. It is responsible for painting the widget. When it is called, the widget must respect its own padded bounds and not extend rendering beyond that area. Implements 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() |
|
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. |
|
|
|
Sets the widget's position relative to its parent. Reimplemented in MAUI::Layout. |
|
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 ? |
|
This function is called whenever the widget is "triggered", which is roughly equivalent to having been "clicked" on. However, sice MAUI is independant of input facilities, the more input-neutral concept of triggering is used. Reimplemented in MAUI::Layout. |
|
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. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|