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.
InteractiveGraphicsObject Class Reference

An abstract class implementing both the GraphicsObject and the TouchEnabledObject, which gives an interactive graphic object as result. More...

#include <InteractiveGraphicsObject.h>

Inheritance diagram for InteractiveGraphicsObject:
Collaboration diagram for InteractiveGraphicsObject:

Public Member Functions

virtual ~InteractiveGraphicsObject ()=default
 
- Public Member Functions inherited from GraphicsObject
virtual ~GraphicsObject ()=default
 
virtual void draw (uint32_t time)=0
 The draw method. It will be called once per frame for each object in a scene. More...
 
bool isVisible () const
 
void setVisibility (bool visible)
 
- Public Member Functions inherited from TouchEnabledObject
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

An abstract class implementing both the GraphicsObject and the TouchEnabledObject, which gives an interactive graphic object as result.

Constructor & Destructor Documentation

◆ ~InteractiveGraphicsObject()

virtual InteractiveGraphicsObject::~InteractiveGraphicsObject ( )
virtualdefault

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