class: ewol::widget::Spacer
Constructor and Destructor:
+ Spacer (void );
+ virtual ~Spacer (void );
Synopsis:
+ void init (ewol::widget::Manager & _widgetManager);
+ const char* const configColor;
# etk::Color<> m_color;
+ void setColor (etk::Color<> _newColor);
+ virtual ewol::Widget* getWidgetAtPos (const vec2 & _pos);
+ virtual void onRegenerateDisplay (void );
+ virtual void onDraw (void );
+ virtual bool onSetConfig (const ewol::object::Config & _conf);
+ virtual bool onGetConfig (const char* _config,
std::string & _result) const;
Object Hierarchy:
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Spacer
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);
configColor
+ const char* const configColor;
Spacer
+ Spacer (void );
Main constructer
~Spacer
+ virtual ~Spacer (void );
Main destructer
m_color
# etk::Color<> m_color;
Background color
setColor
+ void setColor (etk::Color<> _newColor);
Spziby the background color (basicly transparent)
Parameter [input]: newColor the display background color
getWidgetAtPos
+ virtual ewol::Widget* getWidgetAtPos (const vec2 & _pos);
get the widget at the specific windows absolute position
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: _pos gAbsolute position of the requested widget knowledge
Return: NULL No widget found<br/>pointer on the widget found
onRegenerateDisplay
+ virtual void onRegenerateDisplay (void );
Event generated when a redraw is needed
onDraw
+ virtual void onDraw (void );
Common widget drawing function (called by the drawing thread [Android, X11, ...])
onSetConfig
+ virtual bool onSetConfig (const ewol::object::Config & _conf);
Configuration requested to the curent Object
Parameter [input]: _conf Configuration handle.
Return: true if the parametere has been used
onGetConfig
+ virtual bool onGetConfig (const char* _config,
std::string & _result) const;
Receive a configuration message from an other element system or from the curent Object
Parameter [input]: _config Configuration name.
Parameter [output]: _result Result of the request.
Return: true if the config is set
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Spacer
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);
configColor
+ const char* const configColor;
Spacer
+ Spacer (void );Main constructer
~Spacer
+ virtual ~Spacer (void );Main destructer
m_color
# etk::Color<> m_color;Background color
setColor
+ void setColor (etk::Color<> _newColor);Spziby the background color (basicly transparent)
Parameter [input]: | newColor | the display background color |
getWidgetAtPos
+ virtual ewol::Widget* getWidgetAtPos (const vec2 & _pos);get the widget at the specific windows absolute position
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: | _pos | gAbsolute position of the requested widget knowledge |
Return: | NULL No widget found<br/>pointer on the widget found |
onRegenerateDisplay
+ virtual void onRegenerateDisplay (void );Event generated when a redraw is needed
onDraw
+ virtual void onDraw (void );Common widget drawing function (called by the drawing thread [Android, X11, ...])
onSetConfig
+ virtual bool onSetConfig (const ewol::object::Config & _conf);Configuration requested to the curent Object
Parameter [input]: | _conf | Configuration handle. |
Return: | true if the parametere has been used |
onGetConfig
+ virtual bool onGetConfig (const char* _config,Receive a configuration message from an other element system or from the curent Object
std::string & _result) const;
Parameter [input]: | _config | Configuration name. | Parameter [output]: | _result | Result of the request. |
Return: | true if the config is set |