class: ewol::widget::Windows
enum:
Constructor and Destructor:
+ Windows (void );
+ virtual ~Windows (void );
Synopsis:
+ void sysDraw (void );
+ void sysOnShow (void );
+ void sysOnHide (void );
+ void sysOnKill (void );
+ virtual void onShow (void );
+ virtual void onHide (void );
+ virtual bool onKill (void );
+ virtual void onReduce (void );
+ virtual void on (void );
+ void setDecorationDisable (void );
+ void setDecorationEnable (void );
+ void setSubWidget (ewol::Widget* _widget);
+ void popUpWidgetPush (ewol::Widget* _widget);
+ const etk::Color<float> & getBackgroundColor (void );
+ void setBackgroundColor (const etk::Color<float> & _color);
# virtual void systemDraw (const ewol::DrawProperty & _displayProp);
+ virtual void onRegenerateDisplay (void );
+ virtual void onObjectRemove (ewol::Object* _removeObject);
+ virtual void calculateSize (const vec2 & _availlable);
+ virtual ewol::Widget* getWidgetAtPos (const vec2 & _pos);
+ void setTitle (const std::string & _title);
+ virtual void createPopUpMessage (enum popUpMessageType _type,
const std::string & _message);
+ void displayInfoMessage (const std::string & _message);
+ void displayWarningMessage (const std::string & _message);
+ void displayErrorMessage (const std::string & _message);
+ void displayCriticalMessage (const std::string & _message);
Object Hierarchy:
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Windows
Detail:
Windows
+ Windows (void );
~Windows
+ virtual ~Windows (void );
sysDraw
+ void sysDraw (void );
sysOnShow
+ void sysOnShow (void );
sysOnHide
+ void sysOnHide (void );
sysOnKill
+ void sysOnKill (void );
onShow
+ virtual void onShow (void );
onHide
+ virtual void onHide (void );
onKill
+ virtual bool onKill (void );
onReduce
+ virtual void onReduce (void );
on
+ virtual void on (void );
setDecorationDisable
+ void setDecorationDisable (void );
setDecorationEnable
+ void setDecorationEnable (void );
setSubWidget
+ void setSubWidget (ewol::Widget* _widget);
popUpWidgetPush
+ void popUpWidgetPush (ewol::Widget* _widget);
getBackgroundColor
+ const etk::Color<float> & getBackgroundColor (void );
get the background color.
Return: A reference on the color
setBackgroundColor
+ void setBackgroundColor (const etk::Color<float> & _color);
set the background color.
systemDraw
# virtual void systemDraw (const ewol::DrawProperty & _displayProp);
{SYSTEM} extern interface to request a draw ... (called by the drawing thread [Android, X11, ...])
This function generate a clipping with the viewport openGL system. Like this a widget draw can not draw over an other widget
Note: This function is virtual for the scrolled widget, and the more complicated openGl widget
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: _displayProp properties of the current display
onRegenerateDisplay
+ virtual void onRegenerateDisplay (void );
Event generated when a redraw is needed
onObjectRemove
+ virtual void onObjectRemove (ewol::Object* _removeObject);
Inform object that an other object is removed ...
Note: : Sub classes must call this class
Parameter [input]: _removObject Pointer on the Object remeved == > the user must remove all reference on this Object
calculateSize
+ virtual void calculateSize (const vec2 & _availlable);
Parent set the possible diplay size of the current widget whith his own possibilities
By default this save the widget available size in the widget size
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: _available Available x&y pixel size
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
setTitle
+ void setTitle (const std::string & _title);
createPopUpMessage
+ virtual void createPopUpMessage (enum popUpMessageType _type,
const std::string & _message);
Create a simple pop-up message on the screen for application error.
Parameter [input]: _type Type of the error.
Parameter [input]: _message message to display (decorated text)
displayInfoMessage
+ void displayInfoMessage (const std::string & _message);
Create a simple information message
Parameter [input]: _message message to display (decorated text)
displayWarningMessage
+ void displayWarningMessage (const std::string & _message);
Create a simple warning message
Parameter [input]: _message message to display (decorated text)
displayErrorMessage
+ void displayErrorMessage (const std::string & _message);
Create a simple error message
Parameter [input]: _message message to display (decorated text)
displayCriticalMessage
+ void displayCriticalMessage (const std::string & _message);
Create a simple critical message
Parameter [input]: _message message to display (decorated text)
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Windows
Detail:
Windows
+ Windows (void );
~Windows
+ virtual ~Windows (void );
sysDraw
+ void sysDraw (void );
sysOnShow
+ void sysOnShow (void );
sysOnHide
+ void sysOnHide (void );
sysOnKill
+ void sysOnKill (void );
onShow
+ virtual void onShow (void );
onHide
+ virtual void onHide (void );
onKill
+ virtual bool onKill (void );
onReduce
+ virtual void onReduce (void );
on
+ virtual void on (void );
setDecorationDisable
+ void setDecorationDisable (void );
setDecorationEnable
+ void setDecorationEnable (void );
setSubWidget
+ void setSubWidget (ewol::Widget* _widget);
popUpWidgetPush
+ void popUpWidgetPush (ewol::Widget* _widget);
getBackgroundColor
+ const etk::Color<float> & getBackgroundColor (void );get the background color.
Return: | A reference on the color |
setBackgroundColor
+ void setBackgroundColor (const etk::Color<float> & _color);set the background color.
systemDraw
# virtual void systemDraw (const ewol::DrawProperty & _displayProp);{SYSTEM} extern interface to request a draw ... (called by the drawing thread [Android, X11, ...]) This function generate a clipping with the viewport openGL system. Like this a widget draw can not draw over an other widget
Note: This function is virtual for the scrolled widget, and the more complicated openGl widget
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: | _displayProp | properties of the current display |
onRegenerateDisplay
+ virtual void onRegenerateDisplay (void );Event generated when a redraw is needed
onObjectRemove
+ virtual void onObjectRemove (ewol::Object* _removeObject);Inform object that an other object is removed ...
Note: : Sub classes must call this class
Parameter [input]: | _removObject | Pointer on the Object remeved == > the user must remove all reference on this Object |
calculateSize
+ virtual void calculateSize (const vec2 & _availlable);Parent set the possible diplay size of the current widget whith his own possibilities By default this save the widget available size in the widget size
Note: : INTERNAL EWOL SYSTEM
Parameter [input]: | _available | Available x&y pixel size |
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 |
setTitle
+ void setTitle (const std::string & _title);
createPopUpMessage
+ virtual void createPopUpMessage (enum popUpMessageType _type,Create a simple pop-up message on the screen for application error.
const std::string & _message);
Parameter [input]: | _type | Type of the error. | Parameter [input]: | _message | message to display (decorated text) |
displayInfoMessage
+ void displayInfoMessage (const std::string & _message);Create a simple information message
Parameter [input]: | _message | message to display (decorated text) |
displayWarningMessage
+ void displayWarningMessage (const std::string & _message);Create a simple warning message
Parameter [input]: | _message | message to display (decorated text) |
displayErrorMessage
+ void displayErrorMessage (const std::string & _message);Create a simple error message
Parameter [input]: | _message | message to display (decorated text) |
displayCriticalMessage
+ void displayCriticalMessage (const std::string & _message);Create a simple critical message
Parameter [input]: | _message | message to display (decorated text) |