36 lines
558 B
C++
36 lines
558 B
C++
|
#ifndef LIBRARY_FONT_H
|
||
|
|
||
|
#define LIBRARY_FONT_H
|
||
|
|
||
|
#include <string>
|
||
|
#include <utility>
|
||
|
|
||
|
namespace vkvm {
|
||
|
|
||
|
class FontType {
|
||
|
private:
|
||
|
int id;
|
||
|
std::string name;
|
||
|
int height;
|
||
|
int width;
|
||
|
|
||
|
public:
|
||
|
FontType(int id, std::string name, int height, int width) noexcept;
|
||
|
|
||
|
auto getId() const -> int;
|
||
|
|
||
|
auto getName() const -> std::string;
|
||
|
|
||
|
auto getHeight() const -> int;
|
||
|
|
||
|
auto getWidth() const -> int;
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
const static FontType font_1 = FontType(1, "DummyFont", 10, 5);
|
||
|
|
||
|
}
|
||
|
|
||
|
#endif
|