ESPHome  2023.5.5
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 493 of file display_buffer.h.

Constructor & Destructor Documentation

◆ Glyph()

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

Definition at line 495 of file display_buffer.h.

Member Function Documentation

◆ compare_to()

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

Definition at line 539 of file display_buffer.cpp.

◆ get_char()

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

Definition at line 538 of file display_buffer.cpp.

◆ get_pixel()

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

Definition at line 529 of file display_buffer.cpp.

◆ match_length()

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

Definition at line 555 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 565 of file display_buffer.cpp.

Field Documentation

◆ DisplayBuffer

friend esphome::display::Glyph::DisplayBuffer

Definition at line 509 of file display_buffer.h.

◆ Font

friend esphome::display::Glyph::Font

Definition at line 508 of file display_buffer.h.

◆ glyph_data_

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

Definition at line 511 of file display_buffer.h.

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