2019-11-13 13:37:49 +01:00
|
|
|
#include "FontType.hpp"
|
2019-11-07 16:34:15 +01:00
|
|
|
|
2019-11-13 13:37:49 +01:00
|
|
|
namespace vkvm {
|
2019-11-07 16:34:15 +01:00
|
|
|
|
2019-11-13 15:42:04 +01:00
|
|
|
FontType::FontType(int id, const char * name, int height, int width) noexcept : id(id), name(name), height(height), width(width) {
|
2019-11-13 13:37:49 +01:00
|
|
|
}
|
2019-11-07 16:34:15 +01:00
|
|
|
|
2019-11-13 13:37:49 +01:00
|
|
|
auto FontType::getId() const -> int {
|
|
|
|
return id;
|
|
|
|
}
|
2019-11-12 14:07:02 +01:00
|
|
|
|
2019-11-13 13:37:49 +01:00
|
|
|
auto FontType::getName() const -> std::string {
|
2019-11-13 15:42:04 +01:00
|
|
|
return std::string(name);
|
2019-11-13 13:37:49 +01:00
|
|
|
}
|
2019-11-07 16:34:15 +01:00
|
|
|
|
2019-11-13 13:37:49 +01:00
|
|
|
auto FontType::getHeight() const -> int {
|
|
|
|
return height;
|
|
|
|
}
|
2019-11-07 16:34:15 +01:00
|
|
|
|
2019-11-13 13:37:49 +01:00
|
|
|
auto FontType::getWidth() const -> int {
|
|
|
|
return width;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|