Download

Support

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_Widgetewl_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 (  )     (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
The type name for the Ewl_Icondialog widget

Referenced by ewl_icondialog_icon_set(), ewl_icondialog_init(), and ewl_message_init().


Typedef Documentation

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_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.

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.

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.


Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Fri Jan 23 21:56:27 2009