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... | |
Public Member Functions inherited from Graphics::GlyphObject | |
| 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 |
Public Member Functions inherited from Graphics::ImageObject | |
| 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 |
Public Member Functions inherited from Graphics::ObjectTemplate< Object::Kind::Image > | |
| Kind | kind () const override |
Public Member Functions inherited from Graphics::Object | |
| bool | operator== (const Object &other) const |
| virtual String | getTypeStr () const |
Public Member Functions inherited from LinkedObjectTemplate< Object > | |
| Object * | getNext () const |
| bool | insertAfter (Object *object) |
| Iterator | begin () const |
| Iterator | end () const |
| Iterator | cbegin () const |
| Iterator | cend () const |
Public Member Functions inherited from LinkedObject | |
| virtual | ~LinkedObject ()=default |
| 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 | |
Public Types inherited from Graphics::GlyphObject | |
| using | Bits = std::bitset< 64 > |
| using | Options = TextOptions |
| using | Metrics = GlyphMetrics |
Public Types inherited from Graphics::Object | |
| enum class | Kind { XX } |
| using | List = LinkedObjectListTemplate< Object > |
| using | OwnedList = OwnedLinkedObjectListTemplate< Object > |
Public Types inherited from LinkedObjectTemplate< Object > | |
| using | Iterator = IteratorTemplate< Object, Object *, Object & > |
| using | ConstIterator = IteratorTemplate< const Object, const Object *, const Object & > |
Protected Attributes inherited from Graphics::GlyphObject | |
| Metrics | metrics |
| Options | options |
Protected Attributes inherited from Graphics::ImageObject | |
| 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:
Public Member Functions inherited from
1.9.1