2019-11-13 13:37:49 +01:00
|
|
|
#ifndef LIBRARY_FONT_H
|
|
|
|
|
|
|
|
#define LIBRARY_FONT_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
namespace vkvm {
|
|
|
|
|
|
|
|
class FontType {
|
|
|
|
private:
|
|
|
|
int id;
|
2019-11-13 15:42:04 +01:00
|
|
|
const char * name;
|
2019-11-13 13:37:49 +01:00
|
|
|
int height;
|
|
|
|
int width;
|
|
|
|
|
|
|
|
public:
|
2019-11-13 15:42:04 +01:00
|
|
|
FontType(int id, const char * name, int height, int width) noexcept;
|
2019-11-13 13:37:49 +01:00
|
|
|
|
|
|
|
auto getId() const -> int;
|
|
|
|
|
|
|
|
auto getName() const -> std::string;
|
|
|
|
|
|
|
|
auto getHeight() const -> int;
|
|
|
|
|
|
|
|
auto getWidth() const -> int;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2019-11-13 15:42:04 +01:00
|
|
|
static const FontType font_1 = FontType(1, "DummyFont", 10, 5);
|
2019-11-13 13:37:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|