Data Structures | |
struct | _Ewl_Button_Stock |
A button with a label, and eventually an image. A convenient way to add the image is the use of stock icons. Stock icons are pre-defined icons, referenced by a Id. These icons have also a label, which set the label of the button and an Id in order to identify a response (see ewl_dialog_button_set()). More... | |
struct | _Ewl_Button_Stock |
A button with a label, and eventually an image. A convenient way to add the image is the use of stock icons. Stock icons are pre-defined icons, referenced by a Id. These icons have also a label, which set the label of the button and an Id in order to identify a response (see ewl_dialog_button_set()). More... | |
Defines | |
#define | EWL_BUTTON_STOCK(button) ((Ewl_Button_Stock *) button) |
Typecast a pointer to an Ewl_Button_Stock pointer. | |
Typedefs | |
typedef _Ewl_Button_Stock | Ewl_Button_Stock |
The button_stock provides a simple wrapper for creating a button with predefined icons. | |
Functions | |
Ewl_Widget * | ewl_button_stock_new (char *stock_id) |
Allocate and initialize a new button with eventually a stock icon. | |
Ewl_Widget * | ewl_button_stock_with_id_new (char *stock_id, int response_id) |
Convenient function to create a (stock) button, with a response id. To add this button in the action_area of a dialog, just use ewl_container_child_append(dialog, button) or ewl_container_child_prepend(dialog, button). Use this way to add buttons, instead of ewl_dialog_button_add() or ewl_dialog_button_left_add(). | |
int | ewl_button_stock_init (Ewl_Button_Stock *b, char *stock_id) |
Initialize a button to starting values. |
|
Initialize a button to starting values.
|
|
Allocate and initialize a new button with eventually a stock icon.
|
|
Convenient function to create a (stock) button, with a response id. To add this button in the action_area of a dialog, just use ewl_container_child_append(dialog, button) or ewl_container_child_prepend(dialog, button). Use this way to add buttons, instead of ewl_dialog_button_add() or ewl_dialog_button_left_add().
|