Choco OS  V.0.16.9.0
Join to the chocolate world
oC_TGUI_Style_t Struct Reference

stores style of elements More...

#include <oc_tgui.h>

Data Fields

oC_TGUI_Color_t Background
 Color of the background.
 
oC_TGUI_Color_t Foreground
 Color of the foreground.
 
oC_TGUI_TextStyle_t TextStyle
 Text attributes (bold/underline,etc)
 
bool DontDraw
 Additional field for TGUI functions. More...
 

Detailed Description

The type stores all terminal style parameters in one structure. Example of usage:

static const oC_TGUI_Style_t style = {
.Foreground = oC_TGUI_Color_Blue ,
.DontDraw = false ,
};
oC_TGUI_SetStyle(&style);
printf("This text is written on red background with blue foreground.\n\r");

This is result of the example code:

set_tgui_style_example.png
Result of example
See also
oC_TGUI_SetStyle

The structure fields:

Definition at line 229 of file oc_tgui.h.

Field Documentation

bool DontDraw

If this flag is set to 'true', then the element of this style will not be drawn

Definition at line 234 of file oc_tgui.h.


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