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