TouchGFX + 0/4 examples
CodeScope will show references to touchgfx::GlyphNode from the following samples and libraries:
Examples
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
STM324x9I_EVAL
Demonstrations
STM32F429I-Discovery
Demonstrations
 
Symbols
loading...
Files
loading...

touchgfx::GlyphNode struct

@struct GlyphNode Font.hpp touchgfx/Font.hpp struct providing information about a glyph. struct providing information about a glyph. Used by LCD when rendering.

Syntax

typedef struct {     uint32_t             dataOffset;            Unicode::UnicodeChar unicode;               uint8_t              _width;                uint8_t              _height;               uint8_t              _top;                  int8_t               left;                  uint8_t              _advance;              uint8_t              kerningTablePos;       uint8_t              kerningTableSize;      uint8_t              flags;                 uint16_t width() const     {         return ((flags & GLYPH_DATA_WIDTH_BIT8) ? 0x0100 : 0) | (uint16_t)_width;     }     uint16_t height() const     {         return ((flags & GLYPH_DATA_HEIGHT_BIT8) ? 0x0100 : 0) | (uint16_t)_height;     }     int16_t top() const     {         return (int16_t)(((flags & GLYPH_DATA_TOP_BIT9) ? 0xFE00 : 0) | ((flags & GLYPH_DATA_TOP_BIT8) ? 0x100 : 0) | (uint16_t)_top);     }     uint16_t advance() const     {         return ((flags & GLYPH_DATA_ADVANCE_BIT8) ? 0x0100 : 0) | (uint16_t)_advance;     } } GlyphNode;

Fields

dataOffset

No summary provided. Read more...

unicode

No summary provided. Read more...

_width

No summary provided. Read more...

_height

No summary provided. Read more...

_top

No summary provided. Read more...

left

No summary provided. Read more...

_advance

No summary provided. Read more...

kerningTablePos

No summary provided. Read more...

kerningTableSize

No summary provided. Read more...

flags

No summary provided. Read more...

Methods

width() const

@fn uint16_t width() const Gets the "width" value where the 9th bit is stored in flags. Gets the "width" value where the 9th bit is stored in flags. Read more...

height() const

@fn uint16_t height() const Gets the "height" value where the 9th bit is stored in flags. Gets the "height" value where the 9th bit is stored in flags. Read more...

top() const

@fn int16_t top() const Gets the "top" value where the 9th bit and the sign bit are stored in flags. Gets the "top" value where the 9th bit and the sign bit are stored in flags. Read more...

advance() const

@fn uint16_t advance() const Gets the "advance" value where the 9th bit is stored in flags. Gets the "advance" value where the 9th bit is stored in flags. Read more...

Examples

touchgfx::GlyphNode is referenced by 4 libraries and example projects.

References

LocationReferrerScopeText
Font.hpp:50
typedef struct
Font.hpp:118
ConstFont.hpp:60touchgfx::ConstFont::ConstFont()::listtouchgfx::ConstFont::ConstFont()
ConstFont(const GlyphNode* list, uint16_t size, uint16_t height, uint8_t pixBelowBase, uint8_t bitsPerPixel, uint8_t maxLeft, uint8_t maxRight, const Unicode::UnicodeChar fallbackChar, const Unicode::UnicodeChar ellipsisChar);
ConstFont.hpp:81touchgfx::ConstFont::getGlyph() consttouchgfx::ConstFont
virtual const GlyphNode* getGlyph(Unicode::UnicodeChar unicode, const uint8_t*& pixelData, uint8_t& bitsPerPixel) const;
ConstFont.hpp:94touchgfx::ConstFont::getPixelData() const::glyphtouchgfx::ConstFont::getPixelData() const
virtual const uint8_t* getPixelData(const GlyphNode* glyph) const = 0;
ConstFont.hpp:108touchgfx::ConstFont::getKerning() const::glyphtouchgfx::ConstFont::getKerning() const
virtual int8_t getKerning(Unicode::UnicodeChar prevChar, const GlyphNode* glyph) const = 0;
ConstFont.hpp:123touchgfx::ConstFont::find() consttouchgfx::ConstFont
ConstFont.hpp:125touchgfx::ConstFont::glyphListtouchgfx::ConstFont
const GlyphNode* glyphList; ///< The list of glyphs
Font.hpp:118touchgfx::GlyphNodetouchgfx
Font.hpp:174touchgfx::Font::getGlyph() consttouchgfx::Font
virtual const GlyphNode* getGlyph(Unicode::UnicodeChar unicode, const uint8_t*& pixelData, uint8_t& bitsPerPixel) const = 0;
Font.hpp:187touchgfx::Font::getGlyph() consttouchgfx::Font
Font.hpp:191touchgfx::Font::getGlyph() const::glyphtouchgfx::Font::getGlyph() const
const GlyphNode* glyph = getGlyph(unicode, dummyPixelDataPointer, bitsPerPixelDummy);
Font.hpp:409touchgfx::Font::getKerning() const::glyphtouchgfx::Font::getKerning() const
virtual int8_t getKerning(Unicode::UnicodeChar prevChar, const GlyphNode* glyph) const
InternalFlashFont.hpp:61touchgfx::InternalFlashFont::InternalFlashFont()::listtouchgfx::InternalFlashFont::InternalFlashFont()
InternalFlashFont(const GlyphNode* list, uint16_t size, uint16_t height, uint8_t pixBelowBase, uint8_t bitsPerPixel, uint8_t maxLeft, uint8_t maxRight, const uint8_t* glyphDataInternalFlash, const KerningNode* kerningList, const Unicode::UnicodeChar fallbackChar, const Unicode::UnicodeChar ellipsisChar);
InternalFlashFont.hpp:74touchgfx::InternalFlashFont::getPixelData() const::glyphtouchgfx::InternalFlashFont::getPixelData() const
virtual const uint8_t* getPixelData(const GlyphNode* glyph) const;
InternalFlashFont.hpp:88touchgfx::InternalFlashFont::getKerning() const::glyphtouchgfx::InternalFlashFont::getKerning() const
virtual int8_t getKerning(Unicode::UnicodeChar prevChar, const GlyphNode* glyph) const;
LCD.hpp:93touchgfx::LCD::drawGlyph()::glyphtouchgfx::LCD::drawGlyph()
void drawGlyph(int16_t x, int16_t y, uint16_t offsetX, uint16_t offsetY, int16_t maxX, int16_t maxY, const GlyphNode* glyph, const uint8_t* glyphData, colortype color, uint8_t bitsPerPixel, uint8_t alpha = 255);
LCD.hpp:434touchgfx::LCD::drawGlyph()::glyphtouchgfx::LCD::drawGlyph()
virtual void drawGlyph(uint16_t* wbuf, Rect widgetArea, int16_t x, int16_t y, uint16_t offsetX, uint16_t offsetY, const Rect& invalidatedArea, const GlyphNode* glyph, const uint8_t* glyphData, colortype color, uint8_t bitsPerPixel, uint8_t alpha, TextRotation rotation = TEXT_ROTATE_0) = 0;
LCD.hpp:643touchgfx::LCD::WideTextInternalStruct::ellipsisGlyphtouchgfx::LCD::WideTextInternalStruct
LCD16bpp.hpp:246touchgfx::LCD16bpp::drawGlyph()::glyphtouchgfx::LCD16bpp::drawGlyph()
virtual void drawGlyph(uint16_t* wbuf, Rect widgetArea, int16_t x, int16_t y, uint16_t offsetX, uint16_t offsetY, const Rect& invalidatedArea, const GlyphNode* glyph, const uint8_t* glyphData, colortype color, uint8_t bitsPerPixel, uint8_t alpha, TextRotation rotation = TEXT_ROTATE_0);
LCD24bpp.hpp:248touchgfx::LCD24bpp::drawGlyph()::glyphtouchgfx::LCD24bpp::drawGlyph()
virtual void drawGlyph(uint16_t* wbuf, Rect widgetArea, int16_t x, int16_t y, uint16_t offsetX, uint16_t offsetY, const Rect& invalidatedArea, const GlyphNode* glyph, const uint8_t* glyphData, colortype color, uint8_t bitsPerPixel, uint8_t alpha, TextRotation rotation = TEXT_ROTATE_0);