class: ewol::widget::Joystick


enum:

Constructor and Destructor:

#                                    Joystick               ();
+ virtual ~Joystick ();

Synopsis:

+         ewol::object::Signal<void> signalEnable;
+ ewol::object::Signal<void> signalDisable;
+ ewol::object::Signal<vec2> signalMove;
# void init ();
+ DECLARE_WIDGET_FACTORY (Joystick ,
"Joystick" );
+ 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 ();
+ virtual bool onEventInput (const ewol::event::Input & _event);

Object Hierarchy:

+std::enable_shared_from_this<Object>
+ewol::object::ParameterList
+ewol::object::SignalList
+--> +ewol::Object
+--> +ewol::Widget
+--> ewol::widget::Joystick

Detail:

signalEnable

+ ewol::object::Signal<void> signalEnable;



signalDisable

+ ewol::object::Signal<void> signalDisable;



signalMove

+ ewol::object::Signal<vec2> signalMove;



Joystick

#  Joystick ();



init

# void init ();



DECLARE_WIDGET_FACTORY

+  DECLARE_WIDGET_FACTORY (Joystick ,
"Joystick" );



~Joystick

+ virtual  ~Joystick ();



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 ();
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)