class: ewol::widget::Label
Constructor and Destructor:
+ Label (std::string _newLabel);
+ virtual ~Label (void );
Synopsis:
+ const char* const eventPressed;
+ void init (ewol::widget::Manager & _widgetManager);
+ void setLabel (const std::string & _newLabel);
+ void setValue (const std::string & _newLabel);
+ std::string getLabel (void );
+ std::string getValue (void );
# virtual void onDraw (void );
+ virtual void calculateMinMaxSize (void );
+ virtual void onRegenerateDisplay (void );
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual bool loadXML (exml::Element* _node);
Object Hierarchy:
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Label
Detail:
eventPressed
+ const char* const eventPressed;
init
+ void init (ewol::widget::Manager & _widgetManager);
Main call of recording the widget on the List of "widget named creator"
Label
+ Label (std::string _newLabel);
Constructor
Parameter [input]: _newLabel The displayed decorated text.
~Label
+ virtual ~Label (void );
destructor
setLabel
+ void setLabel (const std::string & _newLabel);
change the label displayed
Parameter [input]: _newLabel The displayed decorated text.
setValue
+ void setValue (const std::string & _newLabel);
getLabel
+ std::string getLabel (void );
get the current displayed label
Return: The displayed decorated text.
getValue
+ std::string getValue (void );
onDraw
# virtual void onDraw (void );
Common widget drawing function (called by the drawing thread [Android, X11, ...])
calculateMinMaxSize
+ virtual void calculateMinMaxSize (void );
calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM
onRegenerateDisplay
+ virtual void onRegenerateDisplay (void );
Event generated when a redraw is needed
onEventInput
+ virtual bool onEventInput (const ewol::event::Input & _event);
Event on an input of this Widget (finger, mouse, stilet)
Parameter [input]: _event Event properties
Return: true the event is used<br/>false the event is not used
loadXML
+ virtual bool loadXML (exml::Element* _node);
load properties with an XML node.
Parameter [input]: _node Pointer on the tinyXML node.
Return: true : All has been done corectly.<br/>false : An error occured.
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Label
Detail:
eventPressed
+ const char* const eventPressed;
init
+ void init (ewol::widget::Manager & _widgetManager);Main call of recording the widget on the List of "widget named creator"
Label
+ Label (std::string _newLabel);Constructor
Parameter [input]: | _newLabel | The displayed decorated text. |
~Label
+ virtual ~Label (void );destructor
setLabel
+ void setLabel (const std::string & _newLabel);change the label displayed
Parameter [input]: | _newLabel | The displayed decorated text. |
setValue
+ void setValue (const std::string & _newLabel);
getLabel
+ std::string getLabel (void );get the current displayed label
Return: | The displayed decorated text. |
getValue
+ std::string getValue (void );
onDraw
# virtual void onDraw (void );Common widget drawing function (called by the drawing thread [Android, X11, ...])
calculateMinMaxSize
+ virtual void calculateMinMaxSize (void );calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM
onRegenerateDisplay
+ virtual void onRegenerateDisplay (void );Event generated when a redraw is needed
onEventInput
+ virtual bool onEventInput (const ewol::event::Input & _event);Event on an input of this Widget (finger, mouse, stilet)
Parameter [input]: | _event | Event properties |
Return: | true the event is used<br/>false the event is not used |
loadXML
+ virtual bool loadXML (exml::Element* _node);load properties with an XML node.
Parameter [input]: | _node | Pointer on the tinyXML node. |
Return: | true : All has been done corectly.<br/>false : An error occured. |