class: ewol::widget::ContextMenu
enum:
Constructor and Destructor:
+ ContextMenu (const std::string & _shaperName);
+ virtual ~ContextMenu (void );
Synopsis:
+ void init (ewol::widget::Manager & _widgetManager);
+ const char* const configArrowPosition;
+ const char* const configArrowMode;
+ const char* const configShaper;
+ void setShaperName (const std::string & _shaperName);
+ void setPositionMark (enum markPosition position,
vec2 arrowPos);
# virtual void onDraw (void );
# virtual bool onSetConfig (const ewol::object::Config & _conf);
# virtual bool onGetConfig (const char* _config,
std::string & _result) const;
+ virtual void onRegenerateDisplay (void );
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual void calculateSize (const vec2 & availlable);
+ virtual void calculateMinMaxSize (void );
+ virtual ewol::Widget* getWidgetAtPos (const vec2 & pos);
Object Hierarchy:
+ewol::Object
+--> +ewol::Widget
+--> +ewol::widget::Container
+--> ewol::widget::ContextMenu
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);
configArrowPosition
+ const char* const configArrowPosition;
configArrowMode
+ const char* const configArrowMode;
configShaper
+ const char* const configShaper;
ContextMenu
+ ContextMenu (const std::string & _shaperName);
~ContextMenu
+ virtual ~ContextMenu (void );
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
setPositionMark
+ void setPositionMark (enum markPosition position,
vec2 arrowPos);
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
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
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
calculateMinMaxSize
+ virtual void calculateMinMaxSize (void );
calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM
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
+ewol::Object
+--> +ewol::Widget
+--> +ewol::widget::Container
+--> ewol::widget::ContextMenu
Detail:
init
+ void init (ewol::widget::Manager & _widgetManager);
configArrowPosition
+ const char* const configArrowPosition;
configArrowMode
+ const char* const configArrowMode;
configShaper
+ const char* const configShaper;
ContextMenu
+ ContextMenu (const std::string & _shaperName);
~ContextMenu
+ virtual ~ContextMenu (void );
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 |
setPositionMark
+ void setPositionMark (enum markPosition position,
vec2 arrowPos);
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 |
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 |
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 |
calculateMinMaxSize
+ virtual void calculateMinMaxSize (void );calculate the minimum and maximum size (need to estimate expend properties of the widget)
Note: : INTERNAL EWOL SYSTEM
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 |