TouchGFX + 0/4 examples
CodeScope will show references to touchgfx::DragEvent from the following samples and libraries:
Examples
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
STM324x9I_EVAL
Demonstrations
STM32F429I-Discovery
Demonstrations
 
Symbols
loading...
Files
loading...

touchgfx::DragEvent class

@class DragEvent DragEvent.hpp touchgfx/events/DragEvent.hpp A drag event. A drag event. The only drag event currently supported is DRAGGED, which will be issued every time the input system detects a drag. @see Event

Syntax

class DragEvent : public Event { public:     typedef enum     {         DRAGGED     } DragEventType;     DragEvent(DragEventType type, int16_t oldX, int16_t oldY, int16_t newX, int16_t newY) :         _type(type), _oldX(oldX), _oldY(oldY), _newX(newX), _newY(newY) { }     virtual ~DragEvent() { }     int16_t getOldX() const     {         return _oldX;     }     int16_t getOldY() const     {         return _oldY;     }     int16_t getNewX() const     {         return _newX;     }     int16_t getNewY() const     {         return _newY;     }     DragEventType getType() const     {         return _type;     }     int16_t getDeltaX() const     {         return _newX - _oldX;     }     int16_t getDeltaY() const     {         return _newY - _oldY;     }     virtual Event::EventType getEventType()     {         return Event::EVENT_DRAG;     } private:     DragEventType _type;     int16_t _oldX;     int16_t _oldY;     int16_t _newX;     int16_t _newY; };

Fields

_type

No summary provided. Read more...

_oldX

No summary provided. Read more...

_oldY

No summary provided. Read more...

_newX

No summary provided. Read more...

_newY

No summary provided. Read more...

Methods

getOldX() const

@fn int16_t DragEvent::getOldX() const Gets the x coordinate where the drag operation was started (dragged from). Gets the x coordinate where the drag operation was started (dragged from). Read more...

getOldY() const

@fn int16_t DragEvent::getOldY() const Gets the y coordinate where the drag operation was started (dragged from). Gets the y coordinate where the drag operation was started (dragged from). Read more...

getNewX() const

@fn int16_t DragEvent::getNewX() const Gets the new x coordinate (dragged to). Gets the new x coordinate (dragged to). Read more...

getNewY() const

@fn int16_t DragEvent::getNewY() const Gets the new x coordinate (dragged to). Gets the new x coordinate (dragged to). Read more...

getType() const

@fn DragEventType DragEvent::getType() const Gets the type of this drag event. Gets the type of this drag event. Read more...

getDeltaX() const

@fn int16_t DragEvent::getDeltaX() const Gets the distance in x coordinates (how long was the drag). Gets the distance in x coordinates (how long was the drag). Read more...

getDeltaY() const

@fn int16_t DragEvent::getDeltaY() const Gets the distance in y coordinates (how long was the drag). Gets the distance in y coordinates (how long was the drag). Read more...

getEventType()

@fn virtual Event::EventType DragEvent::getEventType() Gets event type. Gets event type. Read more...

Examples

touchgfx::DragEvent is referenced by 4 libraries and example projects.