Class: ewol::eInput


Synopsis:

+           eInput                 (ewol::eContext & _context);
+ ~eInput (void);
+ void setDpi (int32_t newDPI);
+ void motion (enum ewol::keyEvent::type _type,
int _pointerID,
vec2 _pos);
+ void state (enum ewol::keyEvent::type _type,
int _pointerID,
bool _isDown,
vec2 _pos);
+ void onObjectRemove (ewol::EObject * _removeObject);
+ void newLayerSet (void);
+ void transfertEvent (ewol::Widget * _source,
ewol::Widget * _destination);
+ void grabPointer (ewol::Widget * _widget);
+ void unGrabPointer (void);
- void calculateLimit (void);
- void abortElement (InputPoperty_ts * _eventTable,
int32_t _idInput,
enum ewol::keyEvent::type _type);
- void cleanElement (InputPoperty_ts * _eventTable,
int32_t _idInput);
- bool localEventInput (enum ewol::keyEvent::type _type,
ewol::Widget * _destWidget,
int32_t _IdInput,
enum ewol::keyEvent::status _typeEvent,
vec2 _pos);
- int32_t localGetDestinationId (enum ewol::keyEvent::type _type,
ewol::Widget * _destWidget,
int32_t _realInputId);

Detail:

ewol::eInput ()

eInput(ewol::eContext & _context);



ewol::~eInput ()

~eInput(void);



setDpi ()

void setDpi(int32_t newDPI);



motion ()

void motion(enum ewol::keyEvent::type _type,
            int _pointerID,
            vec2 _pos);



state ()

void state(enum ewol::keyEvent::type _type,
           int _pointerID,
           bool _isDown,
           vec2 _pos);



onObjectRemove ()

void onObjectRemove(ewol::EObject * _removeObject);

Inform object that an other object is removed ...
Notes: : Sub classes must call this class


newLayerSet ()

void newLayerSet(void);

a new layer on the windows is set == > might remove all the property of the current element ...


transfertEvent ()

void transfertEvent(ewol::Widget * _source,
                    ewol::Widget * _destination);

This is to transfert the event from one widget to another one


grabPointer ()

void grabPointer(ewol::Widget * _widget);

This fonction lock the pointer properties to move in relative instead of absolute


unGrabPointer ()

void unGrabPointer(void);

This fonction un-lock the pointer properties to move in relative instead of absolute


calculateLimit ()

void calculateLimit(void);



abortElement ()

void abortElement(InputPoperty_ts * _eventTable,
                  int32_t _idInput,
                  enum ewol::keyEvent::type _type);



cleanElement ()

void cleanElement(InputPoperty_ts * _eventTable,
                  int32_t _idInput);



localEventInput ()

bool localEventInput(enum ewol::keyEvent::type _type,
                     ewol::Widget * _destWidget,
                     int32_t _IdInput,
                     enum ewol::keyEvent::status _typeEvent,
                     vec2 _pos);

generate the event on the destinated widget.


localGetDestinationId ()

int32_t localGetDestinationId(enum ewol::keyEvent::type _type,
                              ewol::Widget * _destWidget,
                              int32_t _realInputId);

convert the system event id in the correct EWOL id depending of the system management mode This function find the next input id unused on the specifiic widget == > on PC, the ID does not change (GUI is not the same)