Display_Lib_RPI 2.3.0
A C++ Library to connect electronic displays to Linux single board computers.
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Private Attributes | List of all members
display_Fonts Class Reference

Font class to hold font data object
More...

#include <font_data_RDL.hpp>

Inheritance diagram for display_Fonts:
Inheritance graph
[legend]

Public Member Functions

 display_Fonts ()
 init the OLED font class object constructor
 
rdlib::Return_Codes_e setFont (display_Font_name_e)
 SetFont.
 
void setInvertFont (bool invertStatus)
 setInvertFont
 
bool getInvertFont (void)
 getInvertFont
 

Protected Attributes

std::span< const uint8_t > _FontSelect = pFontDefault
 
uint8_t _Font_X_Size = 0x08
 
uint8_t _Font_Y_Size = 0x08
 
uint8_t _FontOffset = 0x20
 
uint8_t _FontNumChars = 0x5F
 

Private Attributes

bool _FontInverted = false
 

Detailed Description

Font class to hold font data object

Member Function Documentation

◆ getInvertFont()

bool display_Fonts::getInvertFont ( void  )

getInvertFont

Returns
invert status flag of font ,false = off.

◆ setFont()

rdlib::Return_Codes_e display_Fonts::setFont ( display_Font_name_e  FontChoice)

SetFont.

Parameters
FontChoiceSelectedFontName Select this font, pass the font enum name
Returns
Will return rdlib::Return_Codes_e enum
  1. Pass rdlib::Success
  2. Error 1 rdlib::WrongFont
  3. Error 2 rdlib::FontPtrNullptr

◆ setInvertFont()

void display_Fonts::setInvertFont ( bool  invertStatus)

setInvertFont

Parameters
invertStatusset the invert status flag of font ,false = off.

Member Data Documentation

◆ _Font_X_Size

uint8_t display_Fonts::_Font_X_Size = 0x08
protected

Width Size of a Font character

◆ _Font_Y_Size

uint8_t display_Fonts::_Font_Y_Size = 0x08
protected

Height Size of a Font character

◆ _FontInverted

bool display_Fonts::_FontInverted = false
private

display font inverted? , False = no invert , true = invert

◆ _FontNumChars

uint8_t display_Fonts::_FontNumChars = 0x5F
protected

Number of characters in font 0x00 to 0xFE

◆ _FontOffset

uint8_t display_Fonts::_FontOffset = 0x20
protected

Offset in the ASCII table 0x00 to 0xFF, where font begins

◆ _FontSelect

std::span<const uint8_t> display_Fonts::_FontSelect = pFontDefault
protected

Span to the active font, Fonts Stored are Const


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