Colors
Colors — Managing and parsing colors
Functions
gnt_init_colors ()
void
gnt_init_colors (void
);
Initialize the colors.
gnt_uninit_colors ()
void
gnt_uninit_colors (void
);
Uninitialize the colors.
gnt_colors_parse ()
void
gnt_colors_parse (GKeyFile *kfile
);
Parse color information from a file.
gnt_color_pairs_parse ()
void
gnt_color_pairs_parse (GKeyFile *kfile
);
Parse color-pair information from a file.
gnt_colors_get_color ()
int
gnt_colors_get_color (char *key
);
Parse a string color
Returns
A color. For an unknown color name, returns -EINVAL.
Since: 2.4.0
gnt_color_pair ()
int
gnt_color_pair (int color
);
Return the appropriate character attribute for a specified color.
If the terminal doesn't have color support, this returns A_STANDOUT
when deemed appropriate.
Returns
A character attribute.
Since: 2.3.0
gnt_color_add_pair ()
int
gnt_color_add_pair (int fg
,
int bg
);
Adds a color definition
Since: 2.4.0
Types and Values
enum GntColorType
Different classes of colors.