class: ewol::widget::PopUp
Constructor and Destructor:
# PopUp ();
+ virtual ~PopUp ();
Synopsis:
# ewol::object::Param<ewol::compositing::Shaper> m_shaper;
# void init (const std::string & _shaperName);
+ DECLARE_WIDGET_FACTORY (PopUp ,
"PopUp" );
+ void setShaperName (const std::string & _shaperName);
# ewol::object::Param<bvec2> m_lockExpand;
+ void lockExpand (const bvec2 & _lockExpand);
+ void setRemoveOnExternClick (bool _state);
+ bool getRemoveOnExternClick () const;
# virtual void onDraw ();
# virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);
+ virtual void periodicCall (const ewol::event::Time & _event);
+ virtual void systemDraw (const ewol::DrawProperty & _displayProp);
+ virtual void onRegenerateDisplay ();
+ virtual void calculateSize (const vec2 & _available);
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual std::shared_ptr<ewol::Widget> getWidgetAtPos (const vec2 & _pos);
# virtual bool onStartAnnimation (enum ewol::Widget::annimationMode _mode);
# virtual void onStopAnnimation ();
Object Hierarchy:
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> +ewol::widget::Container
+--> ewol::widget::PopUp
+--> ewol::widget::Parameter
+--> ewol::widget::StdPopUp
Detail:
m_shaper
# ewol::object::Param<ewol::compositing::Shaper> m_shaper;
Compositing theme.
PopUp
# PopUp ();
Constructor
Parameter [input]: _shaperName Shaper file properties
init
# void init (const std::string & _shaperName);
DECLARE_WIDGET_FACTORY
+ DECLARE_WIDGET_FACTORY (PopUp ,
"PopUp" );
~PopUp
+ virtual ~PopUp ();
Destructor
setShaperName
+ void setShaperName (const std::string & _shaperName);
set the shaper name (use the contructer one this permit to not noad unused shaper)
Parameter [input]: _shaperName The new shaper filename
m_lockExpand
# ewol::object::Param<bvec2> m_lockExpand;
Lock the expend of the sub widget to this one == > this permit to limit bigger subWidget
lockExpand
+ void lockExpand (const bvec2 & _lockExpand);
Limit the expend properties to the current widget (no contamination)
Parameter [input]: _lockExpend Lock mode of the expend properties
setRemoveOnExternClick
+ void setRemoveOnExternClick (bool _state);
Request the Auto-remove when the event input is set outside the widget
Parameter [input]: _state New status
getRemoveOnExternClick
+ bool getRemoveOnExternClick () const;
get the status of the request the Auto-remove when the event input is set outside the widget.
Return: the status of the removing
onDraw
# virtual void onDraw ();
Common widget drawing function (called by the drawing thread [Android, X11, ...])
onParameterChangeValue
# virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);
periodicCall
+ virtual void periodicCall (const ewol::event::Time & _event);
periodic call of this widget
Parameter: _event Current time property
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 ();
Event generated when a redraw is needed
calculateSize
+ virtual void calculateSize (const vec2 & _available);
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
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
getWidgetAtPos
+ virtual std::shared_ptr<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: nullptr No widget found<br/>pointer on the widget found
onStartAnnimation
# virtual bool onStartAnnimation (enum ewol::Widget::annimationMode _mode);
Event when start the annimation.
Parameter [input]: _mode Configuring mode.
Return: true need to add periodic call.
onStopAnnimation
# virtual void onStopAnnimation ();
Event when Stop the annimation.
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> +ewol::widget::Container
+--> ewol::widget::PopUp
+--> ewol::widget::Parameter
+--> ewol::widget::StdPopUp
Detail:
m_shaper
# ewol::object::Param<ewol::compositing::Shaper> m_shaper;Compositing theme.
PopUp
# PopUp ();Constructor
Parameter [input]: | _shaperName | Shaper file properties |
init
# void init (const std::string & _shaperName);
DECLARE_WIDGET_FACTORY
+ DECLARE_WIDGET_FACTORY (PopUp ,
"PopUp" );
~PopUp
+ virtual ~PopUp ();Destructor
setShaperName
+ void setShaperName (const std::string & _shaperName);set the shaper name (use the contructer one this permit to not noad unused shaper)
Parameter [input]: | _shaperName | The new shaper filename |
m_lockExpand
# ewol::object::Param<bvec2> m_lockExpand;Lock the expend of the sub widget to this one == > this permit to limit bigger subWidget
lockExpand
+ void lockExpand (const bvec2 & _lockExpand);Limit the expend properties to the current widget (no contamination)
Parameter [input]: | _lockExpend | Lock mode of the expend properties |
setRemoveOnExternClick
+ void setRemoveOnExternClick (bool _state);Request the Auto-remove when the event input is set outside the widget
Parameter [input]: | _state | New status |
getRemoveOnExternClick
+ bool getRemoveOnExternClick () const;get the status of the request the Auto-remove when the event input is set outside the widget.
Return: | the status of the removing |
onDraw
# virtual void onDraw ();Common widget drawing function (called by the drawing thread [Android, X11, ...])
onParameterChangeValue
# virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);
periodicCall
+ virtual void periodicCall (const ewol::event::Time & _event);periodic call of this widget
Parameter: | _event | Current time property |
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 ();Event generated when a redraw is needed
calculateSize
+ virtual void calculateSize (const vec2 & _available);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 |
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 |
getWidgetAtPos
+ virtual std::shared_ptr<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: | nullptr No widget found<br/>pointer on the widget found |
onStartAnnimation
# virtual bool onStartAnnimation (enum ewol::Widget::annimationMode _mode);Event when start the annimation.
Parameter [input]: | _mode | Configuring mode. |
Return: | true need to add periodic call. |
onStopAnnimation
# virtual void onStopAnnimation ();Event when Stop the annimation.