Cairo-Dock  3.4.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cairo-dock-style-facility.h File Reference

Data Structures

struct  _GldiTextDescription
 Description of the rendering of a text. More...
 

Macros

#define GLDI_COLOR_SHADE_LIGHT
 A light shade level (dock background, ...)
 
#define GLDI_COLOR_SHADE_MEDIUM
 A medium shade level (selected menu-item, widget inside a dialog/menu, separator, ...)
 
#define GLDI_COLOR_SHADE_STRONG
 A strong shade level (child widget inside a dialog/menu, ...)
 

Enumerations

enum  GldiStyleColors
 Available types of color.
 

Functions

void gldi_style_color_shade (GldiColor *icolor, double shade, GldiColor *ocolor)
 

Detailed Description

This file provides a few functions dealing with style elements like colors and text.

Function Documentation

void gldi_style_color_shade ( GldiColor *  icolor,
double  shade,
GldiColor *  ocolor 
)

Shade a color, making it darker if it's light, and lighter if it's dark. Note that the opposite behavior can be obtained by passing a negative shade value. Alpha is copied unchanged. Both pointers can be the same.

Parameters
icolorinput color
shadeamount of light to add/remove, <= 1.
ocoloroutput color