ESPHome  2024.5.0
Public Member Functions | Protected Attributes
esphome::font::Glyph Class Reference

#include <font.h>

Public Member Functions

 Glyph (const GlyphData *data)
 
const uint8_t * get_char () const
 
bool compare_to (const uint8_t *str) const
 
int match_length (const uint8_t *str) const
 
void scan_area (int *x1, int *y1, int *width, int *height) const
 
const GlyphDataget_glyph_data () const
 

Protected Attributes

friend Font
 
const GlyphDataglyph_data_
 

Detailed Description

Definition at line 21 of file font.h.

Constructor & Destructor Documentation

◆ Glyph()

esphome::font::Glyph::Glyph ( const GlyphData data)
inline

Definition at line 23 of file font.h.

Member Function Documentation

◆ compare_to()

bool esphome::font::Glyph::compare_to ( const uint8_t *  str) const

Definition at line 16 of file font.cpp.

◆ get_char()

const uint8_t * esphome::font::Glyph::get_char ( ) const

Definition at line 13 of file font.cpp.

◆ get_glyph_data()

const GlyphData* esphome::font::Glyph::get_glyph_data ( ) const
inline

Definition at line 33 of file font.h.

◆ match_length()

int esphome::font::Glyph::match_length ( const uint8_t *  str) const

Definition at line 32 of file font.cpp.

◆ scan_area()

void esphome::font::Glyph::scan_area ( int *  x1,
int *  y1,
int *  width,
int *  height 
) const

Definition at line 42 of file font.cpp.

Field Documentation

◆ Font

friend esphome::font::Glyph::Font
protected

Definition at line 36 of file font.h.

◆ glyph_data_

const GlyphData* esphome::font::Glyph::glyph_data_
protected

Definition at line 38 of file font.h.


The documentation for this class was generated from the following files: