Корабът Радецки - Eight ball pool v 1.0
The documnetation for our physics-themed project.
Label Class Reference

#include <ui_elements.hpp>

Inheritance diagram for Label:
UIElement DrawableManager::Drawable

Public Member Functions

 Label (const char *text, Rectangle bounds, float rotation)
 
virtual ~Label ()=default
 
void Draw () override
 Draws the sprites. More...
 
- Public Member Functions inherited from UIElement
 UIElement (Rectangle bounds, float rotation)
 
virtual ~UIElement ()=default
 
void SetPosition (Vector2 position)
 
Vector2 GetPosition ()
 
void SetRotation (float rotation)
 
float GetRotation ()
 
void SetSize (Vector2 size)
 
Vector2 GetSize ()
 
- Public Member Functions inherited from DrawableManager::Drawable
 Drawable ()
 Sets the sprites' IDs. More...
 
virtual ~Drawable ()=default
 
virtual void Create ()
 
virtual void Update ()
 
int GetID ()
 

Protected Attributes

const char * text
 
- Protected Attributes inherited from UIElement
Rectangle bounds
 
float rotation
 

Constructor & Destructor Documentation

◆ Label()

Label::Label ( const char *  text,
Rectangle  bounds,
float  rotation 
)
inline

◆ ~Label()

virtual Label::~Label ( )
virtualdefault

Member Function Documentation

◆ Draw()

void Label::Draw ( )
overridevirtual

Draws the sprites.

Reimplemented from DrawableManager::Drawable.

Member Data Documentation

◆ text

const char* Label::text
protected