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)


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


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


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)


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


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