![]() |
libxputty 0.1
|
Go to the source code of this file.
Functions | |
void | set_dark_theme (Xputty *main) |
set_dark_theme - init the XColor_t struct to the default dark theme | |
void | set_light_theme (Xputty *main) |
set_light_theme - init the XColor_t struct to the default light theme | |
void | color_scheme_to_childs (Widget_t *wid) |
color_scheme_to_childs - copy a colorscheme to all childs light theme | |
void | widget_set_color (double *c, double r, double g, double b, double a) |
widget_set_color - set a individual Widget_t color | |
void | set_widget_color (Widget_t *w, Color_state st, Color_mod mod, double r, double g, double b, double a) |
set_widget_color - set a individual Widget_t color | |
Colors * | get_color_scheme (Widget_t *wid, Color_state st) |
get_color_scheme - get pointer to the Colors struct to use in relation to the Color_state | |
Color_state | get_color_state (Widget_t *wid) |
get_color_state - get the Color_state to use in relation to the Widget_t state | |
void | use_fg_color_scheme (Widget_t *w, Color_state st) |
use_fg_color_scheme - use forground Colors to paint on Widget_t | |
void | use_bg_color_scheme (Widget_t *w, Color_state st) |
use_bg_color_scheme - use background Colors to paint on Widget_t | |
void | use_base_color_scheme (Widget_t *w, Color_state st) |
use_base_color_scheme - use base Colors to paint on Widget_t | |
void | use_text_color_scheme (Widget_t *w, Color_state st) |
use_text_color_scheme - use text Colors to paint on Widget_t | |
void | use_shadow_color_scheme (Widget_t *w, Color_state st) |
use_shadow_color_scheme - use shadow Colors to paint on Widget_t | |
void | use_frame_color_scheme (Widget_t *w, Color_state st) |
use_frame_color_scheme - use frame Colors to paint on Widget_t | |
void | use_light_color_scheme (Widget_t *w, Color_state st) |
use_light_color_scheme - use light Colors to paint on Widget_t | |
void | use_systray_color (Widget_t *w) |
use_systray_color - use systray Colors to paint on Widget_t | |
void | set_systray_color (Xputty *main, double r, double g, double b, double a) |
set_systray_color - set the systray background color | |
void | set_pattern (Widget_t *w, Colors *from, Colors *to, Color_mod mod) |
set_pattern - set pattern for the selected Colors | |
void color_scheme_to_childs | ( | Widget_t * | wid | ) |
color_scheme_to_childs - copy a colorscheme to all childs light theme
*wid | - pointer to the Widget_t take the colorscheme from |
Definition at line 130 of file xcolor.c.
References Widget_t::childlist, Childlist_t::childs, Widget_t::color_scheme, color_scheme_to_childs(), and Childlist_t::elem.
Referenced by color_scheme_to_childs().
Colors * get_color_scheme | ( | Widget_t * | wid, |
Color_state | st | ||
) |
get_color_scheme - get pointer to the Colors struct to use in relation to the Color_state
*wid | - pointer to the Widget_t |
*st | - the Color state to use |
Definition at line 197 of file xcolor.c.
References XColor_t::active, ACTIVE_, Widget_t::color_scheme, XColor_t::insensitive, INSENSITIVE_, XColor_t::normal, NORMAL_, XColor_t::prelight, PRELIGHT_, XColor_t::selected, and SELECTED_.
Referenced by _create_playhead_image(), _pattern_hslider(), _pattern_in(), _pattern_out(), _pattern_vslider(), set_widget_color(), use_base_color_scheme(), use_bg_color_scheme(), use_fg_color_scheme(), use_frame_color_scheme(), use_light_color_scheme(), use_shadow_color_scheme(), and use_text_color_scheme().
Color_state get_color_state | ( | Widget_t * | wid | ) |
get_color_state - get the Color_state to use in relation to the Widget_t state
*wid | - pointer to the Widget_t |
Definition at line 222 of file xcolor.c.
References ACTIVE_, INSENSITIVE_, NORMAL_, PRELIGHT_, SELECTED_, and Widget_t::state.
Referenced by _draw_accel_check_item(), _draw_accel_item(), _draw_base_button(), _draw_buttons(), _draw_check_box(), _draw_check_button(), _draw_check_item(), _draw_combobox(), _draw_combobox_button(), _draw_combobox_menu_slider(), _draw_frame(), _draw_hslider(), _draw_image(), _draw_image_button_with_label(), _draw_item(), _draw_knob(), _draw_label(), _draw_listbox_item(), _draw_listviewslider(), _draw_menu(), _draw_menu_label(), _draw_menu_slider(), _draw_multi_listviewslider(), _draw_on_off_button(), _draw_spinbox(), _draw_submenu(), _draw_tabbox(), _draw_tooltip(), _draw_value_item(), _draw_valuedisplay(), _draw_vslider(), _draw_waveview(), draw_hyperlink(), and mk_draw_knob().
void set_dark_theme | ( | Xputty * | main | ) |
set_dark_theme - init the XColor_t struct to the default dark theme
*main | - pointer to the main Xputty struct |
Definition at line 24 of file xcolor.c.
References XColor_t::active, Xputty::color_scheme, Colors::fg, XColor_t::insensitive, XColor_t::normal, XColor_t::prelight, and XColor_t::selected.
Referenced by main_init().
void set_light_theme | ( | Xputty * | main | ) |
set_light_theme - init the XColor_t struct to the default light theme
*main | - pointer to the main Xputty struct |
Definition at line 77 of file xcolor.c.
References XColor_t::active, Xputty::color_scheme, Colors::fg, XColor_t::insensitive, XColor_t::normal, XColor_t::prelight, and XColor_t::selected.
set_pattern - set pattern for the selected Colors
*w | - pointer to the Widget_t to set the pattern |
*from | - the Colors set to pattern from (0) |
*to | - the Colors set to pattern to (1) |
mod | - the Color_mod to use |
Definition at line 308 of file xcolor.c.
References BACKGROUND_, Colors::base, BASE_, Colors::bg, Widget_t::cr, Widget_t::crb, Colors::fg, FORGROUND_, Colors::frame, FRAME_, Metrics_t::height, Colors::light, LIGHT_, os_get_window_metrics(), Colors::shadow, SHADOW_, Colors::text, TEXT_, and Metrics_t::width.
Referenced by _draw_combobox_menu(), _draw_listview(), and _draw_multi_listview().
void set_systray_color | ( | Xputty * | main, |
double | r, | ||
double | g, | ||
double | b, | ||
double | a | ||
) |
set_systray_color - set the systray background color
main | - pointer to the main Xputty struct |
r | - the red Color to use |
g | - the green Color to use |
b | - the blue Color to use |
a | - the alpha Cannel to use |
Definition at line 300 of file xcolor.c.
References SystrayColor_t::a, SystrayColor_t::b, SystrayColor_t::g, SystrayColor_t::r, and Xputty::systray_color.
Referenced by main_init(), and os_send_systray_message().
void set_widget_color | ( | Widget_t * | w, |
Color_state | st, | ||
Color_mod | mod, | ||
double | r, | ||
double | g, | ||
double | b, | ||
double | a | ||
) |
set_widget_color - set a individual Widget_t color
*w | - the Widget_t the color belong to |
st | - the state the color belong to |
*mod | - the Color mod to set |
r | - the red color |
g | - the green color |
b | - the blue color |
a | - the alpha channel |
Definition at line 146 of file xcolor.c.
References BACKGROUND_, Colors::base, BASE_, Colors::bg, Colors::fg, FORGROUND_, Colors::frame, FRAME_, get_color_scheme(), Colors::light, LIGHT_, Colors::shadow, SHADOW_, Colors::text, and TEXT_.
void use_base_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_base_color_scheme - use base Colors to paint on Widget_t
Definition at line 259 of file xcolor.c.
References Colors::base, Widget_t::cr, Widget_t::crb, and get_color_scheme().
Referenced by _draw_accel_item(), _draw_combobox_entrys(), _draw_image(), _draw_item(), _draw_list(), _draw_listbox_item(), _draw_listbox_viewslider(), _draw_multi_list(), _draw_submenu(), _draw_value_item(), _update_list_view(), and _update_view().
void use_bg_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_bg_color_scheme - use background Colors to paint on Widget_t
Definition at line 252 of file xcolor.c.
References Colors::bg, Widget_t::cr, Widget_t::crb, and get_color_scheme().
Referenced by _draw_buttons(), _draw_combobox_menu_slider(), _draw_hslider(), _draw_knob(), _draw_listbox(), _draw_listbox_viewslider(), _draw_listviewslider(), _draw_menu(), _draw_menu_slider(), _draw_multi_listviewslider(), _draw_spinbox(), _draw_tabbox(), _draw_tooltip(), _draw_tuner(), _draw_vslider(), and _draw_waveview().
void use_fg_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_fg_color_scheme - use forground Colors to paint on Widget_t
Definition at line 245 of file xcolor.c.
References Widget_t::cr, Widget_t::crb, Colors::fg, and get_color_scheme().
Referenced by _draw_accel_check_item(), _draw_check_box(), _draw_check_button(), _draw_check_item(), _draw_combobox_button(), _draw_hslider(), _draw_image_button_with_label(), _draw_knob(), _draw_listbox_viewslider(), _draw_vslider(), _draw_waveview(), and draw_hyperlink().
void use_frame_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_frame_color_scheme - use frame Colors to paint on Widget_t
Definition at line 280 of file xcolor.c.
References Widget_t::cr, Widget_t::crb, Colors::frame, and get_color_scheme().
Referenced by _draw_accel_item(), _draw_button_base(), _draw_combobox(), _draw_combobox_button(), _draw_combobox_entrys(), _draw_combobox_menu_slider(), _draw_frame(), _draw_item(), _draw_list(), _draw_listbox_item(), _draw_submenu(), _draw_tabbox(), _draw_value_item(), _draw_valuedisplay(), _draw_waveview(), and _update_list_view().
void use_light_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_light_color_scheme - use light Colors to paint on Widget_t
Definition at line 287 of file xcolor.c.
References Widget_t::cr, Widget_t::crb, get_color_scheme(), and Colors::light.
Referenced by _draw_waveview().
void use_shadow_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_shadow_color_scheme - use shadow Colors to paint on Widget_t
Definition at line 273 of file xcolor.c.
References Widget_t::cr, Widget_t::crb, get_color_scheme(), and Colors::shadow.
Referenced by _create_horizontal_meter_image(), _create_vertical_meter_image(), _draw_accel_check_item(), _draw_check_item(), _draw_combobox(), _draw_combobox_menu_slider(), _draw_hslider(), _draw_knob(), _draw_listviewslider(), _draw_menu_slider(), _draw_multi_listviewslider(), _draw_valuedisplay(), and _draw_vslider().
void use_systray_color | ( | Widget_t * | w | ) |
use_systray_color - use systray Colors to paint on Widget_t
Definition at line 294 of file xcolor.c.
References SystrayColor_t::a, Widget_t::app, SystrayColor_t::b, Widget_t::cr, Widget_t::crb, SystrayColor_t::g, SystrayColor_t::r, and Xputty::systray_color.
void use_text_color_scheme | ( | Widget_t * | w, |
Color_state | st | ||
) |
use_text_color_scheme - use text Colors to paint on Widget_t
Definition at line 266 of file xcolor.c.
References Widget_t::cr, Widget_t::crb, get_color_scheme(), and Colors::text.
Referenced by _draw_accel_item(), _draw_base_button(), _draw_buttons(), _draw_check_box(), _draw_combobox(), _draw_combobox_button(), _draw_combobox_entrys(), _draw_frame(), _draw_hslider(), _draw_image_button_with_label(), _draw_item(), _draw_knob(), _draw_label(), _draw_list(), _draw_listbox_item(), _draw_menu_label(), _draw_multi_list(), _draw_on_off_button(), _draw_spinbox(), _draw_submenu(), _draw_tabbox(), _draw_tooltip(), _draw_tuner(), _draw_value_item(), _draw_valuedisplay(), _draw_vslider(), _draw_waveview(), _update_list_view(), _update_view(), and mk_draw_knob().
void widget_set_color | ( | double * | c, |
double | r, | ||
double | g, | ||
double | b, | ||
double | a | ||
) |