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

#include <SineWaveAnimation.h>

Inheritance diagram for SineWaveAnimation:
Collaboration diagram for SineWaveAnimation:

Public Member Functions

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

Constructor & Destructor Documentation

◆ SineWaveAnimation()

SineWaveAnimation::SineWaveAnimation ( )

Member Function Documentation

◆ draw()

void SineWaveAnimation::draw ( uint32_t  time)
overridevirtual

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

Implements GraphicsObject.

◆ getHeight()

int SineWaveAnimation::getHeight ( ) const
virtual

Implements TouchEnabledObject.

◆ getWidth()

int SineWaveAnimation::getWidth ( ) const
virtual

Implements TouchEnabledObject.

◆ getX()

int SineWaveAnimation::getX ( ) const
virtual

Implements TouchEnabledObject.

◆ getY()

int SineWaveAnimation::getY ( ) const
virtual

Implements TouchEnabledObject.


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