library/src/FontType.cpp

24 lines
497 B
C++
Raw Normal View History

#include "FontType.hpp"
namespace vkvm {
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) {
}
auto FontType::getId() const -> int {
return id;
}
2019-11-12 14:07:02 +01:00
auto FontType::getName() const -> std::string {
2019-11-13 15:42:04 +01:00
return std::string(name);
}
auto FontType::getHeight() const -> int {
return height;
}
auto FontType::getWidth() const -> int {
return width;
}
}