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

#include <ui_elements.hpp>

Inheritance diagram for UIElement:
DrawableManager::Drawable Button CheckBox Label

Public Member Functions

 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 ()
 
virtual void Draw ()
 
int GetID ()
 

Protected Attributes

Rectangle bounds
 
float rotation
 

Constructor & Destructor Documentation

◆ UIElement()

UIElement::UIElement ( Rectangle  bounds,
float  rotation 
)
inline

◆ ~UIElement()

virtual UIElement::~UIElement ( )
virtualdefault

Member Function Documentation

◆ GetPosition()

Vector2 UIElement::GetPosition ( )

◆ GetRotation()

float UIElement::GetRotation ( )

◆ GetSize()

Vector2 UIElement::GetSize ( )

◆ SetPosition()

void UIElement::SetPosition ( Vector2  position)

◆ SetRotation()

void UIElement::SetRotation ( float  rotation)

◆ SetSize()

void UIElement::SetSize ( Vector2  size)

Member Data Documentation

◆ bounds

Rectangle UIElement::bounds
protected

◆ rotation

float UIElement::rotation
protected