2021-12-29 09:59:18 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/color.h"
|
|
|
|
#include "core/point.h"
|
|
|
|
#include "core/vector.h"
|
2022-10-17 22:59:51 -04:00
|
|
|
#include <string>
|
2021-12-29 09:59:18 -05:00
|
|
|
|
|
|
|
namespace kku
|
|
|
|
{
|
|
|
|
|
|
|
|
class Text
|
|
|
|
{
|
2022-10-17 22:59:51 -04:00
|
|
|
public:
|
2021-12-29 09:59:18 -05:00
|
|
|
virtual ~Text() = default;
|
2022-10-17 22:59:51 -04:00
|
|
|
virtual void setString(const std::string &string) = 0;
|
2021-12-29 09:59:18 -05:00
|
|
|
virtual void setCharacterSize(std::size_t pixels) = 0;
|
2022-10-17 22:59:51 -04:00
|
|
|
virtual void setPosition(const Point &point) = 0;
|
|
|
|
virtual void move(const kku::Vector2<float> &delta) = 0;
|
|
|
|
virtual void setColor(const Color &color) = 0;
|
2021-12-29 09:59:18 -05:00
|
|
|
|
|
|
|
virtual void display() = 0;
|
|
|
|
};
|
|
|
|
|
2022-10-17 22:59:51 -04:00
|
|
|
} // namespace kku
|