Graphics::LcdGlyph Class Reference
#include <LcdFont.h>
Inheritance diagram for Graphics::LcdGlyph:
Collaboration diagram for Graphics::LcdGlyph:
Public Member Functions | |
LcdGlyph (size_t bmOffset, const Options &options) | |
bool | init () override |
Initialise the object, e.g. parse header content and obtain dimensions. More... | |
Bits | getBits (uint16_t row) const override |
void | readAlpha (void *buffer, Point origin, size_t stride) const override |
Obtain glyph information as block of 8-bit alpha values. More... | |
![]() | |
GlyphObject (const Metrics &metrics, const Options &options) | |
Kind | kind () const override |
PixelFormat | getPixelFormat () const override |
Get native pixel format. More... | |
size_t | readPixels (const Location &loc, PixelFormat format, void *buffer, uint16_t width) const override |
Read pixels in requested format. More... | |
const Metrics & | getMetrics () const |
![]() | |
ImageObject (Size size) | |
void | write (MetaWriter &meta) const override |
Renderer * | createRenderer (const Location &location) const override |
Create a software renderer for this object. More... | |
Size | getSize () const |
uint16_t | width () const |
uint16_t | height () const |
![]() | |
Kind | kind () const override |
![]() | |
bool | operator== (const Object &other) const |
virtual String | getTypeStr () const |
![]() | |
Object * | getNext () const |
bool | insertAfter (Object *object) |
Iterator | begin () const |
Iterator | end () const |
Iterator | cbegin () const |
Iterator | cend () const |
![]() | |
virtual | ~LinkedObject () |
virtual LinkedObject * | next () const |
bool | insertAfter (LinkedObject *object) |
bool | operator== (const LinkedObject &other) const |
bool | operator!= (const LinkedObject &other) const |
Static Public Attributes | |
static constexpr Size | rawSize {5, 8} |
static constexpr Metrics | metrics |
Additional Inherited Members | |
![]() | |
using | Bits = std::bitset< 64 > |
using | Options = TextOptions |
using | Metrics = GlyphMetrics |
![]() | |
enum class | Kind { XX } |
using | List = LinkedObjectListTemplate< Object > |
using | OwnedList = OwnedLinkedObjectListTemplate< Object > |
![]() | |
using | Iterator = IteratorTemplate< Object, Object *, Object & > |
using | ConstIterator = IteratorTemplate< const Object, const Object *, const Object & > |
![]() | |
Metrics | metrics |
Options | options |
![]() | |
Size | imageSize {} |
Constructor & Destructor Documentation
◆ LcdGlyph()
Graphics::LcdGlyph::LcdGlyph | ( | size_t | bmOffset, |
const Options & | options | ||
) |
Member Function Documentation
◆ getBits()
|
inlineoverridevirtual |
Implements Graphics::GlyphObject.
◆ init()
|
inlineoverridevirtual |
Initialise the object, e.g. parse header content and obtain dimensions.
Implements Graphics::ImageObject.
◆ readAlpha()
|
overridevirtual |
Obtain glyph information as block of 8-bit alpha values.
- Parameters
-
buffer origin Location of cursor within buffer stride Number of bytes per row in buffer
This method is called with a positive origin to accommodate negative x/y glyph offsets. Italic and script typefaces do this a lot!
Implements Graphics::GlyphObject.
Member Data Documentation
◆ metrics
|
staticconstexpr |
Initial value:
{
.xOffset = 0,
}
◆ rawSize
|
staticconstexpr |
The documentation for this class was generated from the following file: