class: ewol::widget::Windows


Description:

Windows basic interface

enum:

Constructor and Destructor:

#                                                    Windows                 ();
+ virtual ~Windows ();

Synopsis:

#         std::shared_ptr<ewol::resource::ColorFile> m_colorProperty;
# int32_t m_colorBg;
# void init ();
+ void sysDraw ();
+ void sysOnShow ();
+ void sysOnHide ();
+ void sysOnKill ();
+ virtual void onShow ();
+ virtual void onHide ();
+ virtual bool onKill ();
+ virtual void onReduce ();
+ virtual void onStateBackground ();
+ virtual void onStateForeground ();
+ virtual void onStateSuspend ();
+ virtual void onStateResume ();
+ virtual void on ();
+ void setDecorationDisable ();
+ void setDecorationEnable ();
+ void setSubWidget (std::shared_ptr<ewol::Widget> _widget);
+ void popUpWidgetPush (std::shared_ptr<ewol::Widget> _widget);
+ void popUpWidgetPop ();
+ size_t popUpCount ();
+ const etk::Color<float> & getBackgroundColor ();
+ void setBackgroundColor (const etk::Color<float> & _color);
# virtual void systemDraw (const ewol::DrawProperty & _displayProp);
+ virtual void onRegenerateDisplay ();
+ virtual void calculateSize (const vec2 & _availlable);
+ virtual std::shared_ptr<ewol::Widget> getWidgetAtPos (const vec2 & _pos);
+ virtual void requestDestroyFromChild (const std::shared_ptr<Object> & _child);
+ virtual std::shared_ptr<ewol::Object> getSubObjectNamed (const std::string & _objectName);
+ 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);
+ virtual bool onEventHardwareInput (const ewol::key::keyboardSystem & _event,
bool _down);

Object Hierarchy:

+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Windows

Detail:

m_colorProperty

# std::shared_ptr<ewol::resource::ColorFile> m_colorProperty;
theme color property


m_colorBg

# int32_t m_colorBg;
Default background color of the windows


Windows

#  Windows ();



init

# void init ();



~Windows

+ virtual  ~Windows ();



sysDraw

+ void sysDraw ();



sysOnShow

+ void sysOnShow ();



sysOnHide

+ void sysOnHide ();



sysOnKill

+ void sysOnKill ();



onShow

+ virtual void onShow ();



onHide

+ virtual void onHide ();



onKill

+ virtual bool onKill ();



onReduce

+ virtual void onReduce ();



onStateBackground

+ virtual void onStateBackground ();



onStateForeground

+ virtual void onStateForeground ();



onStateSuspend

+ virtual void onStateSuspend ();



onStateResume

+ virtual void onStateResume ();



on

+ virtual void on ();



setDecorationDisable

+ void setDecorationDisable ();



setDecorationEnable

+ void setDecorationEnable ();



setSubWidget

+ void setSubWidget (std::shared_ptr<ewol::Widget> _widget);



popUpWidgetPush

+ void popUpWidgetPush (std::shared_ptr<ewol::Widget> _widget);



popUpWidgetPop

+ void popUpWidgetPop ();



popUpCount

+ size_t popUpCount ();



getBackgroundColor

+ const etk::Color<float> & getBackgroundColor ();
get the background 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


onRegenerateDisplay

+ virtual void onRegenerateDisplay ();
Event generated when a redraw is needed


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


getWidgetAtPos

+ virtual std::shared_ptr<ewol::Widget> getWidgetAtPos (const vec2 & _pos);
get the widget at the specific windows absolute position
Note: : INTERNAL EWOL SYSTEM


requestDestroyFromChild

+ virtual void requestDestroyFromChild (const std::shared_ptr<Object> & _child);



getSubObjectNamed

+ virtual std::shared_ptr<ewol::Object> getSubObjectNamed (const std::string & _objectName);
Retrive an object with his name (in the global list)


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.


displayInfoMessage

+ void displayInfoMessage (const std::string & _message);
Create a simple information message


displayWarningMessage

+ void displayWarningMessage (const std::string & _message);
Create a simple warning message


displayErrorMessage

+ void displayErrorMessage (const std::string & _message);
Create a simple error message


displayCriticalMessage

+ void displayCriticalMessage (const std::string & _message);
Create a simple critical message


onEventHardwareInput

+ virtual bool onEventHardwareInput (const ewol::key::keyboardSystem & _event,
bool _down);