class: ewol::widget::ContextMenu
enum:
Constructor and Destructor:
# ContextMenu ();
+ virtual ~ContextMenu ();
Synopsis:
# void init (const std::string & _shaperName);
+ DECLARE_WIDGET_FACTORY (ContextMenu ,
"ContextMenu" );
+ void setShaperName (const std::string & _shaperName);
+ void setPositionMark (enum markPosition _position,
const vec2 & _arrowPos);
# virtual void onDraw ();
# virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);
+ virtual void onRegenerateDisplay ();
+ virtual bool onEventInput (const ewol::event::Input & _event);
+ virtual void calculateSize (const vec2 & _availlable);
+ virtual void calculateMinMaxSize ();
+ virtual std::shared_ptr<ewol::Widget> getWidgetAtPos (const vec2 & _pos);
Object Hierarchy:
+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> +ewol::widget::Container
+--> ewol::widget::ContextMenu
Detail:
ContextMenu
# ContextMenu ();
init
# void init (const std::string & _shaperName);
DECLARE_WIDGET_FACTORY
+ DECLARE_WIDGET_FACTORY (ContextMenu ,
"ContextMenu" );
~ContextMenu
+ virtual ~ContextMenu ();
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,
const vec2 & _arrowPos);
onDraw
# virtual void onDraw ();
Common widget drawing function (called by the drawing thread [Android, X11, ...])
onParameterChangeValue
# virtual void onParameterChangeValue (const ewol::object::ParameterRef & _paramPointer);
onRegenerateDisplay
+ virtual void onRegenerateDisplay ();
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 ();
calculate the minimum and maximum size (need to estimate expend properties of the widget)
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