ESPHome 2025.12.0-dev
Loading...
Searching...
No Matches
esphome::font::Glyph Class Reference

#include <font.h>

Public Member Functions

constexpr Glyph (const char *a_char, const uint8_t *data, int advance, int offset_x, int offset_y, int width, int height)
 
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
 

Data Fields

const char * a_char
 
const uint8_t * data
 
int advance
 
int offset_x
 
int offset_y
 
int width
 
int height
 

Protected Attributes

friend Font
 

Detailed Description

Definition at line 15 of file font.h.

Constructor & Destructor Documentation

◆ Glyph()

esphome::font::Glyph::Glyph ( const char * a_char,
const uint8_t * data,
int advance,
int offset_x,
int offset_y,
int width,
int height )
inlineconstexpr

Definition at line 17 of file font.h.

Member Function Documentation

◆ compare_to()

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

Definition at line 14 of file font.cpp.

◆ get_char()

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

Definition at line 27 of file font.h.

◆ match_length()

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

Definition at line 30 of file font.cpp.

◆ scan_area()

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

Definition at line 40 of file font.cpp.

Field Documentation

◆ a_char

const char* esphome::font::Glyph::a_char

Definition at line 35 of file font.h.

◆ advance

int esphome::font::Glyph::advance

Definition at line 37 of file font.h.

◆ data

const uint8_t* esphome::font::Glyph::data

Definition at line 36 of file font.h.

◆ Font

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

Definition at line 44 of file font.h.

◆ height

int esphome::font::Glyph::height

Definition at line 41 of file font.h.

◆ offset_x

int esphome::font::Glyph::offset_x

Definition at line 38 of file font.h.

◆ offset_y

int esphome::font::Glyph::offset_y

Definition at line 39 of file font.h.

◆ width

int esphome::font::Glyph::width

Definition at line 40 of file font.h.


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