C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
struct_ConfigTextWidget Struct Reference

the data structure used to configure textual widget More...

#include <canvas.h>

Collaboration diagram for struct_ConfigTextWidget:
Collaboration graph

Public Attributes

uint8_t number_of_column {0}
 The max number of line with respect to frame height and font height.
 
uint8_t number_of_line {0}
 The max number of column with respect to frame width and font width.
 
uint8_t widget_anchor_x {0}
 the x_axis anchor of the widget
 
uint8_t widget_anchor_y {0}
 the y-axis anchor of the widget
 
const unsigned char * font {nullptr}
 The font used. Current font are defined according to IBM CP437. The font files are derived from https://github.com/Harbys/pico-ssd1306 works. They come is size 5x8, 8x8, 12x16 and 16x32.
 
uint8_t tab_size {2}
 The number of space that ASCII character HT (aka TAB , "\t", 0x9) generates, default to 2.
 
ColorIndex fg_color {ColorIndex::WHITE}
 The foreground color, default to WHITE.
 
ColorIndex bg_color {ColorIndex::BLACK}
 The background color, default to BLACK.
 
bool wrap {true}
 Wrap flag : if true, text wrap to the next line when end of line is reached.
 
bool auto_next_char {true}
 auto_next_char flag : if true each char steps one position after being written.
 
bool widget_with_border {false}
 a flag that indicates if the widget has a 1-pixel width border
 

Detailed Description

the data structure used to configure textual widget


The documentation for this struct was generated from the following file: