class: ewol::widget::Joystick
enum:
Constructor and Destructor:
+ Joystick (void );
+ virtual ~Joystick (void );
Synopsis:
+ const char* const eventEnable;
+ const char* const eventDisable;
+ const char* const eventMove;
+ void setLockMode (bool _lockWhenOut);
+ void setDisplayMode (enum joystickMode _newMode);
+ void ratio (float _newRatio);
+ void background (std::string _imageNameInData,
bool _display);
+ void foreground (std::string _imageNameInData);
+ void getProperty (float & _distance,
float & _angle);
+ virtual void calculateSize (const vec2 & _availlable);
+ virtual void onRegenerateDisplay (void );
+ virtual bool onEventInput (const ewol::event::Input & _event);
Object Hierarchy:
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Joystick
Detail:
eventEnable
+ const char* const eventEnable;
eventDisable
+ const char* const eventDisable;
eventMove
+ const char* const eventMove;
Joystick
+ Joystick (void );
~Joystick
+ virtual ~Joystick (void );
setLockMode
+ void setLockMode (bool _lockWhenOut);
setDisplayMode
+ void setDisplayMode (enum joystickMode _newMode);
ratio
+ void ratio (float _newRatio);
set the ratio of the widget joystick
Parameter [input]: _newRatio the new ratio that might be set
background
+ void background (std::string _imageNameInData,
bool _display);
set the Background of the widget joystick
Parameter [input]: _imageNameInData the new rbackground that might be set
Parameter [input]: _displa y
foreground
+ void foreground (std::string _imageNameInData);
set the Foreground of the widget joystick
Parameter [input]: _imageNameInData the new Foreground that might be set
getProperty
+ void getProperty (float & _distance,
float & _angle);
get the property of the joystick
Parameter [output]: _distance distance to the center
Parameter [output]: _angle angle of the joy
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
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
+ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Joystick
Detail:
eventEnable
+ const char* const eventEnable;
eventDisable
+ const char* const eventDisable;
eventMove
+ const char* const eventMove;
Joystick
+ Joystick (void );
~Joystick
+ virtual ~Joystick (void );
setLockMode
+ void setLockMode (bool _lockWhenOut);
setDisplayMode
+ void setDisplayMode (enum joystickMode _newMode);
ratio
+ void ratio (float _newRatio);set the ratio of the widget joystick
Parameter [input]: | _newRatio | the new ratio that might be set |
background
+ void background (std::string _imageNameInData,set the Background of the widget joystick
bool _display);
Parameter [input]: | _imageNameInData | the new rbackground that might be set | Parameter [input]: | _displa | y |
foreground
+ void foreground (std::string _imageNameInData);set the Foreground of the widget joystick
Parameter [input]: | _imageNameInData | the new Foreground that might be set |
getProperty
+ void getProperty (float & _distance,get the property of the joystick
float & _angle);
Parameter [output]: | _distance | distance to the center | Parameter [output]: | _angle | angle of the joy |
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 |
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 |