Ewl_Icondialog: A dialog window with icon
Detailed Description
Defines the Ewl_Icondialog class which extends the Ewl_Dialog class.
- Remarks:
- Inherits from Ewl_Dialo.
Data Structures | |
| struct | Ewl_Icondialog |
| Inherits from Ewl_Dialog and extends to provide a icondialog widget. More... | |
Defines | |
| #define | EWL_ICONDIALOG(dialog) ((Ewl_Icondialog *) dialog) |
| #define | EWL_ICONDIALOG_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_ICONDIALOG_TYPE)) |
| #define | EWL_ICONDIALOG_TYPE "icondialog" |
Typedefs | |
| typedef struct Ewl_Icondialog | Ewl_Icondialog |
Functions | |
| void | ewl_icondialog_icon_set (Ewl_Icondialog *d, const char *theme_icon) |
| Changes the icon of the dialog. | |
| int | ewl_icondialog_init (Ewl_Icondialog *dialog) |
| Initialize an internal icondialog to starting values. | |
| Ewl_Widget * | ewl_icondialog_new (void) |
| Create a new internal icondialog. | |
Define Documentation
| #define EWL_ICONDIALOG | ( | dialog | ) | ((Ewl_Icondialog *) dialog) |
Typecasts a pointer to an Ewl_Icondialog pointer.
Referenced by ewl_message_init().
| #define EWL_ICONDIALOG_IS | ( | w | ) | (ewl_widget_type_is(EWL_WIDGET(w), EWL_ICONDIALOG_TYPE)) |
Returns TRUE if the widget is an Ewl_Icondialog, FALSE otherwise
| #define EWL_ICONDIALOG_TYPE "icondialog" |
- Widget Theme Keys:
- /icondialog/file
- Widget Theme Keys:
- /icondialog/group
Referenced by ewl_icondialog_icon_set(), ewl_icondialog_init(), and ewl_message_init().
Typedef Documentation
| typedef struct Ewl_Icondialog Ewl_Icondialog |
The icondialog structure extends the dialog with an icon.
Function Documentation
| void ewl_icondialog_icon_set | ( | Ewl_Icondialog * | d, | |
| const char * | theme_icon | |||
| ) |
Changes the icon of the dialog.
- Parameters:
-
d,: dialog to change the icon theme_icon,: the name of the theme icon
- Returns:
- Returns no value. Changes the icon to the given string.
theme_iconcan be any icon that is defined in the ewl_theme_icon.h file. Iftheme_iconisNULLno icon will be create or an existing icon will be destroyed.
References DCHECK_PARAM_PTR, DCHECK_TYPE, DENTER_FUNCTION, dialog, DLEAVE_FUNCTION, DLEVEL_STABLE, DRETURN, EWL_CONTAINER, ewl_container_child_prepend(), ewl_container_redirect_set(), ewl_icon_theme_icon_path_get(), EWL_ICONDIALOG_TYPE, EWL_IMAGE, ewl_image_file_set(), ewl_image_new(), EWL_OBJECT, ewl_object_minimum_size_set(), ewl_theme_data_int_get(), EWL_WIDGET, ewl_widget_destroy(), ewl_widget_show(), icon, vbox, and Ewl_Dialog::vbox.
| int ewl_icondialog_init | ( | Ewl_Icondialog * | dialog | ) |
Initialize an internal icondialog to starting values.
- Parameters:
-
dialog,: the icondialog to initialize.
- Returns:
- Return TRUE on success, FALSE otherwise.
References DCHECK_PARAM_PTR_RET, DENTER_FUNCTION, dialog, DLEVEL_STABLE, DRETURN_INT, EWL_BOX, ewl_box_orientation_set(), EWL_CONTAINER, ewl_container_child_append(), ewl_container_redirect_set(), EWL_DIALOG, ewl_dialog_init(), EWL_FLAG_FILL_ALL, EWL_ICONDIALOG_TYPE, EWL_OBJECT, ewl_object_fill_policy_set(), EWL_ORIENTATION_HORIZONTAL, ewl_vbox_new(), EWL_WIDGET, ewl_widget_appearance_set(), ewl_widget_inherit(), ewl_widget_internal_set(), ewl_widget_show(), vbox, and Ewl_Dialog::vbox.
Referenced by ewl_icondialog_new(), and ewl_message_init().
| Ewl_Widget* ewl_icondialog_new | ( | void | ) |
Create a new internal icondialog.
- Returns:
- Returns a pointer to a new icondialog on success, NULL on failure.
References DENTER_FUNCTION, DLEVEL_STABLE, DRETURN_PTR, ewl_icondialog_init(), EWL_WIDGET, ewl_widget_destroy(), and NEW.