GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_widgets_color_scheme.h
Go to the documentation of this file.
1//SPDX-License-Identifier: LGPL-2.0-or-later
2
3/*
4
5 Copyright (c) 2014-2024 Cyril Hrubis <metan@ucw.cz>
6
7 */
8
47#ifndef GP_WIDGETS_COLOR_SCHEME_H
48#define GP_WIDGETS_COLOR_SCHEME_H
49
51
67
171
180
190
197
206
213
220
221#endif /* GP_WIDGETS_COLOR_SCHEME_H */
uint32_t gp_pixel
Pixel integer value.
Definition gp_types.h:33
Common widget types.
gp_widgets_color_scheme
A color scheme.
@ GP_WIDGET_COLOR_SCHEME_DARK
Dark color scheme.
@ GP_WIDGET_COLOR_SCHEME_LIGHT
Light color scheme.
@ GP_WIDGET_COLOR_SCHEME_DEFAULT
Default color scheme.
enum gp_widgets_color gp_widgets_color_name_idx(const char *name)
Converts a color name into a color index.
enum gp_widgets_color_scheme gp_widgets_color_scheme_get(void)
Returns current color scheme.
void gp_widgets_color_scheme_toggle(void)
Toggles current color scheme.
void gp_widgets_color_scheme_set(enum gp_widgets_color_scheme color_scheme)
Sets a color scheme.
gp_widget * gp_widget_color_scheme_switch(void)
Creates a color scheme switch widget.
gp_widgets_color
Widget theme colors.
@ GP_WIDGETS_COL_DISABLED
Default disabled widget color.
@ GP_WIDGETS_COL_CYAN
Cyan in standard 16 colors.
@ GP_WIDGETS_COL_TEXT
Default text color.
@ GP_WIDGETS_COL_YELLOW
Yellow in standard 16 colors.
@ GP_WIDGETS_COL_HIGHLIGHT
Default highlighted color.
@ GP_WIDGETS_COL_BR_YELLOW
Bright yellow in standard 16 colors.
@ GP_WIDGETS_COL_BG
Default background color.
@ GP_WIDGETS_THEME_COLORS
The number of theme colors.
@ GP_WIDGETS_COL_GRAY
Gray in standard 16 colors.
@ GP_WIDGETS_COL_BR_GREEN
Bright green in standard 16 colors.
@ GP_WIDGETS_COL_ACCEPT
Default accept color.
@ GP_WIDGETS_COL_BR_CYAN
Bright cyan in standard 16 colors.
@ GP_WIDGETS_COL_BR_BLACK
Bright black in standard 16 colors.
@ GP_WIDGETS_COL_GREEN
Green in standard 16 colors.
@ GP_WIDGETS_COL_FG
Default foreground color.
@ GP_WIDGETS_COL_BR_RED
Bright red in standard 16 colors.
@ GP_WIDGETS_COL_BR_BLUE
Bright blue in standard 16 colors.
@ GP_WIDGETS_COL_RED
Red in standard 16 colors.
@ GP_WIDGETS_COL_SELECT
Default selection color.
@ GP_WIDGETS_COL_BLACK
Black in standard 16 colors.
@ GP_WIDGETS_COL_MAGENTA
Magenta in standard 16 colors.
@ GP_WIDGETS_COL_WHITE
White in standard 16 colors.
@ GP_WIDGETS_COL_CNT
The number of widget colors.
@ GP_WIDGETS_COL_BLUE
Blue in standard 16 colors.
@ GP_WIDGETS_COL_FILL
Default fill color.
@ GP_WIDGETS_COL_ALERT
Default alert color.
@ GP_WIDGETS_COL_BR_MAGENTA
Bright magenta in standard 16 colors.
@ GP_WIDGETS_COL_WARN
Default warning color.
Global widget (rendering) context.
A widget base.
Definition gp_widget.h:28