22 #ifndef QDENGINE_SYSTEM_GRAPHICS_GR_FONT_H 23 #define QDENGINE_SYSTEM_GRAPHICS_GR_FONT_H 25 #include "common/path.h" 26 #include "qdengine/system/graphics/gr_screen_region.h" 29 class SeekableReadStream;
51 int alpha_buffer_size_x()
const {
52 return _alpha_buffer_sx;
54 int alpha_buffer_size_y()
const {
55 return _alpha_buffer_sy;
58 const byte *alpha_buffer()
const {
63 grFontCharVector::const_iterator it =
Common::find(_chars.begin(), _chars.end(), code);
64 if (it != _chars.end())
return it->_region;
66 return grScreenRegion_EMPTY;
69 int char_width(
int code)
const {
70 return code ==
' ' ? size_x() / 2 : find_char(code).size_x();
83 grFontChar() : _code(-1) { }
88 bool operator == (
int code)
const {
89 return (_code == code);
94 grFontCharVector _chars;
99 #endif // QDENGINE_SYSTEM_GRAPHICS_GR_FONT_H
In find(In first, In last, const T &v)
Definition: algorithm.h:225
Базовый класс для игровых ресурсов.
Definition: console.h:28
Definition: algorithm.h:29
Прямоугольная область на экране.
Definition: gr_screen_region.h:31