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.
GraphicsObject Class Referenceabstract

A simple interface for all the graphic objects that are supposed to be drawn. More...

#include <GraphicsObject.h>

Inheritance diagram for GraphicsObject:

Public Member Functions

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)
 

Detailed Description

A simple interface for all the graphic objects that are supposed to be drawn.

Constructor & Destructor Documentation

◆ ~GraphicsObject()

virtual GraphicsObject::~GraphicsObject ( )
virtualdefault

Member Function Documentation

◆ draw()

virtual void GraphicsObject::draw ( uint32_t  time)
pure virtual

The draw method. It will be called once per frame for each object in a scene.

Parameters
timeA time parameter (as given by SDL_GetTicks) for time-based animation purposes

Implemented in GraphicsScene, XYPlot, Button, Text, ImageButton, WavefunctionAnimation, and SineWaveAnimation.

◆ isVisible()

bool GraphicsObject::isVisible ( ) const
inline

◆ setVisibility()

void GraphicsObject::setVisibility ( bool  visible)
inline

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