TouchCPLib  1.0.0
A touch-enabled GUI interface based on SDL and libTS. It provides a simple desktop-free UI for your embedded Raspberry projects.
TouchEnabledObject Class Referenceabstract

A base class that provides the methods needed for the object to react to touch input. More...

#include <TouchEnabledObject.h>

Inheritance diagram for TouchEnabledObject:

Public Member Functions

virtual int getX () const =0
 
virtual int getY () const =0
 
virtual int getWidth () const =0
 
virtual int getHeight () const =0
 
TouchCallback getTouchCallback () const
 
void setTouchCallback (TouchCallback cb)
 Set the touch interaction callback. More...
 
bool isTouchEnabled () const
 True if the object reacts to touch events. More...
 
void setTouchEnabled (bool enabled)
 Set if the object has to react to touch events. More...
 
bool isPropagateInteraction () const
 True if the object will call the handlers of object placed below when touched. More...
 
void setPropagateInteraction (bool propagate)
 Set wheter the object has to call the handlers of objects placed below, when touched. More...
 

Detailed Description

A base class that provides the methods needed for the object to react to touch input.

Member Function Documentation

◆ getHeight()

virtual int TouchEnabledObject::getHeight ( ) const
pure virtual

◆ getTouchCallback()

TouchCallback TouchEnabledObject::getTouchCallback ( ) const
inline

◆ getWidth()

virtual int TouchEnabledObject::getWidth ( ) const
pure virtual

◆ getX()

virtual int TouchEnabledObject::getX ( ) const
pure virtual

◆ getY()

virtual int TouchEnabledObject::getY ( ) const
pure virtual

◆ isPropagateInteraction()

bool TouchEnabledObject::isPropagateInteraction ( ) const
inline

True if the object will call the handlers of object placed below when touched.

Returns

◆ isTouchEnabled()

bool TouchEnabledObject::isTouchEnabled ( ) const
inline

True if the object reacts to touch events.

Returns

◆ setPropagateInteraction()

void TouchEnabledObject::setPropagateInteraction ( bool  propagate)
inline

Set wheter the object has to call the handlers of objects placed below, when touched.

Parameters
propagate

◆ setTouchCallback()

void TouchEnabledObject::setTouchCallback ( TouchCallback  cb)
inline

Set the touch interaction callback.

Parameters
cbThe touch callback

◆ setTouchEnabled()

void TouchEnabledObject::setTouchEnabled ( bool  enabled)
inline

Set if the object has to react to touch events.

Parameters
enabled

The documentation for this class was generated from the following file: