Cairo-Dock
3.4.0
|
Macros | |
#define | gldi_style_colors_set_bg_color(pCairoContext) |
Enumerations | |
enum | GldiStyleNotifications { NOTIFICATION_STYLE_CHANGED } |
signals More... | |
Functions | |
void | gldi_style_color_get (GldiStyleColors iColorType, GldiColor *pColor) |
void | gldi_style_colors_set_bg_color_full (cairo_t *pCairoContext, gboolean bUseAlpha) |
void | gldi_style_colors_set_selected_bg_color (cairo_t *pCairoContext) |
void | gldi_style_colors_set_line_color (cairo_t *pCairoContext) |
void | gldi_style_colors_set_text_color (cairo_t *pCairoContext) |
void | gldi_style_colors_set_separator_color (cairo_t *pCairoContext) |
void | gldi_style_colors_set_child_color (cairo_t *pCairoContext) |
void | gldi_style_colors_paint_bg_color_with_alpha (cairo_t *pCairoContext, int iWidth, double fAlpha) |
This class defines the global style used by all widgets (Docks, Dialogs, Desklets, Menus, Icons). This includes background color, outline color, text color, linewidth, corner radius.
#define gldi_style_colors_set_bg_color | ( | pCairoContext | ) |
Set the global background color on a context.
pCairoContext | a context |
void gldi_style_color_get | ( | GldiStyleColors | iColorType, |
GldiColor * | pColor | ||
) |
Get the value of a color. In case the color is actually a pattern, it gives its dominant color. This function is really only useful when you need to have a color for sure (rather than potentially a pattern/texture), or when you need to apply the color with some transformation. Most of the time, you only want to use the gldi_style_colors_set_* functions.
iColorType | type of the color |
pColor | output color |
void gldi_style_colors_set_bg_color_full | ( | cairo_t * | pCairoContext, |
gboolean | bUseAlpha | ||
) |
Set the global background color on a context, with or without the alpha component.
pCairoContext | a context |
bUseAlpha | TRUE to use the alpha, FALSE to set it fully opaque |
void gldi_style_colors_set_selected_bg_color | ( | cairo_t * | pCairoContext | ) |
Set the global selected color on a context.
pCairoContext | a context |
void gldi_style_colors_set_line_color | ( | cairo_t * | pCairoContext | ) |
Set the global line color on a context.
pCairoContext | a context |
void gldi_style_colors_set_text_color | ( | cairo_t * | pCairoContext | ) |
Set the global text color on a context.
pCairoContext | a context |
void gldi_style_colors_set_separator_color | ( | cairo_t * | pCairoContext | ) |
Set the global separator color on a context.
pCairoContext | a context |
void gldi_style_colors_set_child_color | ( | cairo_t * | pCairoContext | ) |
Set the global child color on a context.
pCairoContext | a context |
void gldi_style_colors_paint_bg_color_with_alpha | ( | cairo_t * | pCairoContext, |
int | iWidth, | ||
double | fAlpha | ||
) |
Paint a context with a horizontal alpha gradation. If the alpha is negative, the global style is used to find the alpha.
pCairoContext | a context |
iWidth | width of the gradation |
fAlpha | alpha to use |