§ widgetCreatorFunction
funtion factory basic definition
§ addWidgetCreator()
void ewol::widget::Manager::addWidgetCreator |
( |
const std::string & |
_name, |
|
|
widgetCreatorFunction |
_factory |
|
) |
| |
add a factory of a specific widget.
- Parameters
-
[in] | _name | Name of the widget that is associated of the factory. |
[in] | _factory | Function pointer to create the widget |
§ create()
Create a widget with his name.
- Parameters
-
[in] | _name | Name of the widget to create. |
- Returns
- The widget created (nullptr if it does not exist).
§ exist()
bool ewol::widget::Manager::exist |
( |
const std::string & |
_name | ) |
|
Check if an Widget exist.
- Parameters
-
[in] | _name | Name of the widget to check. |
- Returns
- true The Widget exist.
-
false The Widget Does NOT exist.
§ focusGet()
Get the current Focused widget.
- Returns
- The pointer on the current focused element.
§ focusKeep()
Request a focus on a specify widget.
- Parameters
-
[in] | _newWidget | Widget that might get the focus. |
§ focusRelease()
void ewol::widget::Manager::focusRelease |
( |
| ) |
|
Release the current focus (back on default if possible).
§ focusSetDefault()
Set the default focus when none selected.
- Parameters
-
[in] | _newWidget | Widget that might get the focus (when nothing else). |
§ isDrawingNeeded()
bool ewol::widget::Manager::isDrawingNeeded |
( |
| ) |
|
Check if a redraw has been requested (set the local value back at false)
- Returns
- true if something to be redraw
§ list()
std::string ewol::widget::Manager::list |
( |
| ) |
|
Get the list of all Widget that can be created.
- Returns
- Separate with ',' string list.
§ markDrawingIsNeeded()
void ewol::widget::Manager::markDrawingIsNeeded |
( |
| ) |
|
Mark the display to redraw.
The documentation for this class was generated from the following file: