ESPHome  2022.6.2
Public Member Functions | Protected Attributes
esphome::display::Glyph Class Reference

#include <display_buffer.h>

Public Member Functions

 Glyph (const GlyphData *data)
bool get_pixel (int x, int y) const
const char * get_char () const
bool compare_to (const char *str) const
int match_length (const char *str) const
void scan_area (int *x1, int *y1, int *width, int *height) const

Protected Attributes

friend Font
friend DisplayBuffer
const GlyphDataglyph_data_

Detailed Description

Definition at line 420 of file display_buffer.h.

Constructor & Destructor Documentation

◆ Glyph()

esphome::display::Glyph::Glyph ( const GlyphData data)

Definition at line 422 of file display_buffer.h.

Member Function Documentation

◆ compare_to()

bool esphome::display::Glyph::compare_to ( const char *  str) const

Definition at line 405 of file display_buffer.cpp.

◆ get_char()

const char * esphome::display::Glyph::get_char ( ) const

Definition at line 404 of file display_buffer.cpp.

◆ get_pixel()

bool esphome::display::Glyph::get_pixel ( int  x,
int  y 
) const

Definition at line 395 of file display_buffer.cpp.

◆ match_length()

int esphome::display::Glyph::match_length ( const char *  str) const

Definition at line 421 of file display_buffer.cpp.

◆ scan_area()

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

Definition at line 431 of file display_buffer.cpp.

Field Documentation

◆ DisplayBuffer

friend esphome::display::Glyph::DisplayBuffer

Definition at line 436 of file display_buffer.h.

◆ Font

friend esphome::display::Glyph::Font

Definition at line 435 of file display_buffer.h.

◆ glyph_data_

const GlyphData* esphome::display::Glyph::glyph_data_

Definition at line 438 of file display_buffer.h.

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