ewol::widget::Manager Class Reference

Public Types

using widgetCreatorFunction = std::function< ewol::WidgetShared()>
 

Public Member Functions

void focusKeep (ewol::WidgetShared _newWidget)
 
void focusSetDefault (ewol::WidgetShared _newWidget)
 
void focusRelease ()
 
ewol::WidgetShared focusGet ()
 
void addWidgetCreator (const std::string &_name, widgetCreatorFunction _factory)
 
ewol::WidgetShared create (const std::string &_name)
 
bool exist (const std::string &_name)
 
std::string list ()
 
void markDrawingIsNeeded ()
 
bool isDrawingNeeded ()
 

Member Typedef Documentation

§ widgetCreatorFunction

funtion factory basic definition

Member Function Documentation

§ addWidgetCreator()

void ewol::widget::Manager::addWidgetCreator ( const std::string &  _name,
widgetCreatorFunction  _factory 
)

add a factory of a specific widget.

Parameters
[in]_nameName of the widget that is associated of the factory.
[in]_factoryFunction pointer to create the widget

§ create()

ewol::WidgetShared ewol::widget::Manager::create ( const std::string &  _name)

Create a widget with his name.

Parameters
[in]_nameName 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]_nameName of the widget to check.
Returns
true The Widget exist.
false The Widget Does NOT exist.

§ focusGet()

ewol::WidgetShared ewol::widget::Manager::focusGet ( )

Get the current Focused widget.

Returns
The pointer on the current focused element.

§ focusKeep()

void ewol::widget::Manager::focusKeep ( ewol::WidgetShared  _newWidget)

Request a focus on a specify widget.

Parameters
[in]_newWidgetWidget that might get the focus.

§ focusRelease()

void ewol::widget::Manager::focusRelease ( )

Release the current focus (back on default if possible).

§ focusSetDefault()

void ewol::widget::Manager::focusSetDefault ( ewol::WidgetShared  _newWidget)

Set the default focus when none selected.

Parameters
[in]_newWidgetWidget 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: