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


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

void calculateSize(const vec2 & _availlable);



onRegenerateDisplay ()

void onRegenerateDisplay(void);



onEventInput ()

bool onEventInput(const ewol::EventInput & _event);