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
Parameter [input]: removeObject Pointer on the EObject remeved == > the user must remove all reference on this EObject
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
Parameter: _source the widget where the event came from
Parameter: _destination the widget where the event mitgh be generated now
grabPointer ()
void grabPointer(ewol::Widget * _widget);
This fonction lock the pointer properties to move in relative instead of absolute
Parameter [input]: _widget The widget that lock the pointer events
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.
Parameter [input]: _type Type of the event that might be sended.
Parameter [input]: _destWidget Pointer on the requested widget that element might be sended
Parameter [input]: _IdInput Id of the event (PC : [0..9] and touch : [1..9])
Parameter [input]: _typeEvent type of the eventg generated
Parameter [input]: _pos position of the event
Return: true if event has been greped
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)
Parameter [input]: _type Type of the kay event.
Parameter [input]: _destWidget Pointer of the widget destination
Parameter [input]: _realInputId system Id
Return: the ewol input id
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
-
Parameter [input]: removeObject Pointer on the EObject remeved == > the user must remove all reference on this EObject
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
-
Parameter: _source the widget where the event came from
Parameter: _destination the widget where the event mitgh be generated now
grabPointer ()
void grabPointer(ewol::Widget * _widget);
This fonction lock the pointer properties to move in relative instead of absolute
-
Parameter [input]: _widget The widget that lock the pointer events
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.
-
Parameter [input]: _type Type of the event that might be sended.
Parameter [input]: _destWidget Pointer on the requested widget that element might be sended
Parameter [input]: _IdInput Id of the event (PC : [0..9] and touch : [1..9])
Parameter [input]: _typeEvent type of the eventg generated
Parameter [input]: _pos position of the event
Return: true if event has been greped
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)
-
Parameter [input]: _type Type of the kay event.
Parameter [input]: _destWidget Pointer of the widget destination
Parameter [input]: _realInputId system Id
Return: the ewol input id