Graphics::Resource::GlyphResource Struct Reference
Describes glyph bitmap and position. More...
#include <resource.h>
Collaboration diagram for Graphics::Resource::GlyphResource:
Public Types | |
| enum class | Flag { alpha } |
| using | Flags = BitSet< uint8_t, Flag, 1 > |
Public Member Functions | |
| GlyphMetrics | getMetrics () const |
Public Attributes | |
| uint16_t | bmOffset |
| Offset relative to TypefaceResource::bmpOffset. More... | |
| uint8_t | width |
| Bitmap dimensions in pixels. More... | |
| uint8_t | height |
| Bitmap dimensions in pixels. More... | |
| int8_t | xOffset |
| X dist from cursor pos to UL corner. More... | |
| int8_t | yOffset |
| Y dist from cursor pos to UL corner. More... | |
| uint8_t | xAdvance |
| Distance to advance cursor (x axis) More... | |
| Flags | flags |
Detailed Description
Describes glyph bitmap and position.
Member Typedef Documentation
◆ Flags
| using Graphics::Resource::GlyphResource::Flags = BitSet<uint8_t, Flag, 1> |
Member Enumeration Documentation
◆ Flag
|
strong |
Member Function Documentation
◆ getMetrics()
|
inline |
Member Data Documentation
◆ bmOffset
| uint16_t Graphics::Resource::GlyphResource::bmOffset |
Offset relative to TypefaceResource::bmpOffset.
◆ flags
| Flags Graphics::Resource::GlyphResource::flags |
◆ height
| uint8_t Graphics::Resource::GlyphResource::height |
Bitmap dimensions in pixels.
◆ width
| uint8_t Graphics::Resource::GlyphResource::width |
Bitmap dimensions in pixels.
◆ xAdvance
| uint8_t Graphics::Resource::GlyphResource::xAdvance |
Distance to advance cursor (x axis)
◆ xOffset
| int8_t Graphics::Resource::GlyphResource::xOffset |
X dist from cursor pos to UL corner.
◆ yOffset
| int8_t Graphics::Resource::GlyphResource::yOffset |
Y dist from cursor pos to UL corner.
The documentation for this struct was generated from the following file:
1.9.1