Go to the source code of this file.
Functions | |
Widget_t * | add_button (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions More... | |
Widget_t * | add_on_off_button (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_on_off_button - add a button with default on/off label to a Widget_t connect to func.value_changed_callback to implement your actions More... | |
Widget_t * | add_toggle_button (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_toggle_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions More... | |
Widget_t * | add_image_toggle_button (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_image_toggle_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions More... | |
Widget_t * | add_switch_image_button (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_switch_image_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions More... | |
Widget_t * | add_check_button (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_check_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions More... | |
int | get_width (const char *label) |
Widget_t * | add_check_box (Widget_t *parent, const char *label, int x, int y, int width, int height) |
add_check_box - add a check box to a Widget_t connect to func.value_changed_callback to implement your actions More... | |
add_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions
*parent | - pointer to the Widget_t request the button |
*label | - Label to show on the button |
x,y,width,height | - the position/geometry to create the button |
Definition at line 26 of file xbutton.c.
References _button_pressed(), _button_released(), _draw_button(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, Func_t::button_press_callback, Func_t::button_release_callback, CENTER, CL_TOGGLE, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, Widget_t::scale, and transparent_draw().
Widget_t* add_check_box | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_check_box - add a check box to a Widget_t connect to func.value_changed_callback to implement your actions
*parent | - pointer to the Widget_t request the button |
*label | - Label to show on the button |
x,y,width,height | - the position/geometry to create the button |
Definition at line 125 of file xbutton.c.
References _draw_check_box(), _toggle_button_pressed(), _toggle_button_released(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, Func_t::button_press_callback, Func_t::button_release_callback, CENTER, CL_TOGGLE, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, get_width(), Resize_t::gravity, Widget_t::label, Func_t::leave_callback, Widget_t::scale, and transparent_draw().
Widget_t* add_check_button | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_check_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions
*parent | - pointer to the Widget_t request the button |
*label | - Label to show on the button |
x,y,width,height | - the position/geometry to create the button |
Definition at line 105 of file xbutton.c.
References _draw_check_button(), _toggle_button_pressed(), _toggle_button_released(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, Func_t::button_press_callback, Func_t::button_release_callback, CENTER, CL_TOGGLE, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, Widget_t::scale, and transparent_draw().
Widget_t* add_image_toggle_button | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_image_toggle_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions
*parent | - pointer to the Widget_t request the button |
*label | - Label to show on the button |
x,y,width,height | - the position/geometry to create the button |
Definition at line 73 of file xbutton.c.
References _draw_ti_button(), _toggle_button_pressed(), _toggle_button_released(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, Func_t::button_press_callback, Func_t::button_release_callback, CENTER, CL_TOGGLE, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, Widget_t::scale, and transparent_draw().
Widget_t* add_on_off_button | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_on_off_button - add a button with default on/off label to a Widget_t connect to func.value_changed_callback to implement your actions
*parent | - pointer to the Widget_t request the button |
*label | - Label (ignored) |
x,y,width,height | - the position/geometry to create the button |
Definition at line 42 of file xbutton.c.
References _draw_on_off_button(), _toggle_button_pressed(), _toggle_button_released(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, Func_t::button_press_callback, Func_t::button_release_callback, CENTER, CL_TOGGLE, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Func_t::leave_callback, Widget_t::scale, and transparent_draw().
Widget_t* add_switch_image_button | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_switch_image_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions
*parent | - pointer to the Widget_t request the button |
*label | - Label to show on the button |
x,y,width,height | - the position/geometry to create the button |
Definition at line 89 of file xbutton.c.
References _draw_switch_image_button(), _toggle_button_pressed(), _toggle_button_released(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, ASPECT, Func_t::button_press_callback, Func_t::button_release_callback, CL_TOGGLE, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, Widget_t::scale, and transparent_draw().
Widget_t* add_toggle_button | ( | Widget_t * | parent, |
const char * | label, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
add_toggle_button - add a button to a Widget_t connect to func.value_changed_callback to implement your actions
*parent | - pointer to the Widget_t request the button |
*label | - Label to show on the button |
x,y,width,height | - the position/geometry to create the button |
Definition at line 57 of file xbutton.c.
References _draw_button(), _toggle_button_pressed(), _toggle_button_released(), add_adjustment(), Widget_t::adj, Widget_t::adj_y, Widget_t::app, Func_t::button_press_callback, Func_t::button_release_callback, CENTER, CL_TOGGLE, create_widget(), Func_t::enter_callback, Func_t::expose_callback, Widget_t::func, Resize_t::gravity, Widget_t::label, Func_t::leave_callback, Widget_t::scale, and transparent_draw().