ESPHome  2024.10.2
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 24 of file font.h.

Constructor & Destructor Documentation

◆ Glyph()

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

Definition at line 26 of file font.h.

Member Function Documentation

◆ compare_to()

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

Definition at line 15 of file font.cpp.

◆ get_char()

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

Definition at line 12 of file font.cpp.

◆ get_glyph_data()

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

Definition at line 36 of file font.h.

◆ match_length()

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

Definition at line 31 of file font.cpp.

◆ scan_area()

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

Definition at line 41 of file font.cpp.

Field Documentation

◆ Font

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

Definition at line 39 of file font.h.

◆ glyph_data_

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

Definition at line 41 of file font.h.


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