1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-29 03:33:48 +00:00
Aquaria/BBGE/BaseText.h
2015-03-08 20:44:14 +01:00

21 lines
444 B
C++

#ifndef BASETEXT_H
#define BASETEXT_H
#include "RenderObject.h"
class BaseText : public RenderObject
{
public:
BaseText() { addType(SCO_TEXT); }
virtual ~BaseText() {}
virtual void setText(const std::string& text) = 0;
virtual void setWidth(int width) = 0;
virtual void setFontSize(int sz) = 0;
virtual void setAlign(Align a) = 0;
virtual float getHeight() = 0;
virtual float getStringWidth(const std::string& text) = 0;
};
#endif