Class: widget::Joystick
Synopsis:
+ Joystick (void);
+ ~Joystick (void);
+ 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);
+ void calculateSize (const vec2 & _availlable);
+ void onRegenerateDisplay (void);
+ bool onEventInput (const ewol::EventInput & _event);
Object Hierarchy:
ewol::EObject +--> ewol::Widget +--> widget::Joystick
Description:
/** * @ingroup ewolWidgetGroup */Detail:
widget::Joystick ()
Joystick(void);
widget::~Joystick ()
~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]: _display
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 ()
void calculateSize(const vec2 & _availlable);
onRegenerateDisplay ()
void onRegenerateDisplay(void);
onEventInput ()
bool onEventInput(const ewol::EventInput & _event);
widget::Joystick ()
Joystick(void);
widget::~Joystick ()
~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]: _display
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 ()
void calculateSize(const vec2 & _availlable);
onRegenerateDisplay ()
void onRegenerateDisplay(void);
onEventInput ()
bool onEventInput(const ewol::EventInput & _event);