_Evas_Textgrid_Cell Struct Reference

A cell contains a single unicode character, with associated formatting data including style, color, and color palette. More...

#include <Evas_Common.h>

Data Fields

Eina_Unicode codepoint
 the UNICODE value of the character
unsigned char fg
 the index of the palette for the foreground color
unsigned char bg
 the index of the palette for the background color
unsigned short bold: 1
 whether the character is bold
unsigned short italic: 1
 whether the character is oblique
unsigned short underline: 1
 whether the character is underlined
unsigned short strikethrough: 1
 whether the character is strikethrough'ed
unsigned short fg_extended: 1
 whether the extended palette is used for the foreground color
unsigned short bg_extended: 1
 whether the extended palette is used for the background color
unsigned short double_width: 1
 if the codepoint is merged with the following cell to the right visually (cells must be in pairs with 2nd cell being a duplicate in all ways except codepoint is 0; when a true color is set for the pair, the true color entry must be duplicated as well)
unsigned short overline: 1
 whether the character is overlined
unsigned short fg_truecolor: 1
 the foreground color comes from the true color entry of the cell, and fg and fg_extended are ignored
unsigned short bg_truecolor: 1
 the background color comes from the true color entry of the cell, and bg and bg_extended are ignored

Detailed Description

A cell contains a single unicode character, with associated formatting data including style, color, and color palette.

Double-wide characters are flagged to permit visually merging the cell to the right. Colors are either looked up in a palette by index, or, when the fg_truecolor or bg_truecolor flag is set, taken from the cell's true color entry (see Evas_Textgrid_Truecolor).

Since
1.7

Field Documentation

◆ overline

unsigned short _Evas_Textgrid_Cell::overline

whether the character is overlined

Since
1.29

◆ fg_truecolor

unsigned short _Evas_Textgrid_Cell::fg_truecolor

the foreground color comes from the true color entry of the cell, and fg and fg_extended are ignored

Since
1.29

◆ bg_truecolor

unsigned short _Evas_Textgrid_Cell::bg_truecolor

the background color comes from the true color entry of the cell, and bg and bg_extended are ignored

Since
1.29