29 int width = metrics.
width-2;
30 int height = metrics.
height-2;
33 cairo_text_extents_t extents;
36 cairo_text_extents(w->
crb,w->
label , &extents);
38 cairo_move_to (w->
crb, (width*0.5)-(extents.width/2), height-(extents.height/4));
40 cairo_new_path (w->
crb);
Metrics_t - struct to receive window size, position & visibility Pass this struct to os_get_window_...
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_text_color_scheme(Widget_t *w, Color_state st)
use_text_color_scheme - use text Colors to paint on Widget_t
void _draw_label(void *w_, void *user_data)
_draw_label - internal draw the label to the buffer