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 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.
#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" |
The type name for the Ewl_Icondialog widget
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.
theme_icon
can be any icon that is defined in the ewl_theme_icon.h file. If theme_icon
is NULL
no icon will be create or an existing icon will be destroyed.
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.
Ewl_Widget* ewl_icondialog_new | ( | void | ) |
Create a new internal icondialog.
- Returns:
- Returns a pointer to a new icondialog on success, NULL on failure.