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

touchgfx::ClickEvent class

@class ClickEvent ClickEvent.hpp touchgfx/events/ClickEvent.hpp A click event. A click event. The semantics of this event is slightly depending on hardware platform. ClickEvents are generated by the HAL layer. @see Event

Syntax

class ClickEvent : public Event { public:     typedef enum     {         PRESSED,           RELEASED,          CANCEL         } ClickEventType;     ClickEvent(ClickEventType type, int16_t x, int16_t y, int16_t force = 0) :         _type(type), _x(x), _y(y), _force(force) { }     virtual ~ClickEvent() { }     int16_t getX() const     {         return _x;     }     int16_t getY() const     {         return _y;     }     void setX(int16_t x)     {         _x = x;     }     void setY(int16_t y)     {         _y = y;     }     void setType(ClickEventType type)     {         _type = type;     }     ClickEventType getType() const     {         return _type;     }     int16_t getForce() const     {         return _force;     }     virtual Event::EventType getEventType()     {         return Event::EVENT_CLICK;     } private:     ClickEventType _type;     int16_t _x;     int16_t _y;     int16_t _force; };

Fields

_type

No summary provided. Read more...

_x

No summary provided. Read more...

_y

No summary provided. Read more...

_force

No summary provided. Read more...

Methods

getX() const

@fn int16_t ClickEvent::getX() const Gets the x coordinate of this event. Gets the x coordinate of this event. Read more...

getY() const

@fn int16_t ClickEvent::getY() const Gets the y coordinate of this event. Gets the y coordinate of this event. Read more...

setX()

@fn void ClickEvent::setX(int16_t x) Sets the x coordinate of this event. Sets the x coordinate of this event. Read more...

setY()

@fn void ClickEvent::setY(int16_t y) Sets the y coordinate of this event. Sets the y coordinate of this event. Read more...

setType()

@fn void ClickEvent::setType(ClickEventType type) Sets the click type of this event. Sets the click type of this event. Read more...

getType() const

@fn ClickEventType ClickEvent::getType() const Gets the click type of this event. Gets the click type of this event. Read more...

getForce() const

@fn int16_t ClickEvent::getForce() const Gets the force of the click. Gets the force of the click. On touch displays this usually means how hard the user pressed on the display. On the windows platform, this will always be zero. Read more...

getEventType()

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

Examples

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

References

LocationReferrerScopeText
ClickEvent.hpp:34
class ClickEvent : public Event
UIEventListener.hpp:23
class ClickEvent;
AbstractButton.hpp:67touchgfx::AbstractButton::handleClickEvent()::eventtouchgfx::AbstractButton::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& event);
Application.hpp:140touchgfx::Application::handleClickEvent()::evttouchgfx::Application::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& evt);
ClickListener.hpp:69touchgfx::ClickListener::handleClickEvent()::eventtouchgfx::ClickListener::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& event)
Drawable.hpp:416touchgfx::Drawable::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& evt) { }
Gestures.hpp:128
void registerClickEvent(ClickEvent::ClickEventType evt, uint16_t x, uint16_t y);
RadioButton.hpp:87touchgfx::RadioButton::handleClickEvent()::eventtouchgfx::RadioButton::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& event);
Screen.hpp:164touchgfx::Screen::handleClickEvent()::evttouchgfx::Screen::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& evt);
ScrollableContainer.hpp:191touchgfx::ScrollableContainer::handleClickEvent()::evttouchgfx::ScrollableContainer::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& evt);
ToggleButton.hpp:105touchgfx::ToggleButton::handleClickEvent()::eventtouchgfx::ToggleButton::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& event);
TouchArea.hpp:84touchgfx::TouchArea::handleClickEvent()::eventtouchgfx::TouchArea::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& event);
UIEventListener.hpp:52touchgfx::UIEventListener::handleClickEvent()
virtual void handleClickEvent(const ClickEvent& event)