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


background

+ void background (std::string _imageNameInData,
bool _display);
set the Background of the widget joystick


foreground

+ void foreground (std::string _imageNameInData);
set the Foreground of the widget joystick


getProperty

+ void getProperty (float & _distance,
float & _angle);
get the property of the joystick


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


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)