Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_attach.h ewl_border.h ewl_box.h ewl_button.h ewl_calendar.h ewl_cell.h ewl_check.h ewl_checkbutton.h ewl_colordialog.h ewl_colorpicker.h ewl_combo.h ewl_container.h ewl_cursor.h ewl_datepicker.h ewl_dialog.h ewl_embed.h ewl_entry.h ewl_expansion.h ewl_filedialog.h ewl_filelist.h ewl_filelist_column.h ewl_filelist_icon.h ewl_filelist_list.h ewl_filelist_tree.h ewl_filepicker.h ewl_floater.h ewl_freebox.h ewl_grid.h ewl_highlight.h ewl_histogram.h ewl_icon.h ewl_image.h ewl_label.h ewl_list.c ewl_list.h ewl_media.h ewl_menu.c ewl_menu.h ewl_menu_base.c ewl_menu_base.h ewl_menu_item.h ewl_menubar.c ewl_menubar.h ewl_mvc.h ewl_notebook.h ewl_object.h ewl_overlay.h ewl_paned.c ewl_paned.h ewl_password.h ewl_popup.h ewl_progressbar.h ewl_radiobutton.h ewl_range.h ewl_row.h ewl_scrollbar.h ewl_scrollpane.h ewl_seeker.h ewl_separator.h ewl_shadow.h ewl_spacer.h ewl_spectrum.h ewl_spinner.h ewl_statusbar.h ewl_stock.h ewl_table.h ewl_text.h ewl_toolbar.c ewl_toolbar.h ewl_tree.c ewl_tree.h ewl_tree2.h ewl_tree2_view.h ewl_tree2_view_plain.h ewl_tree2_view_scrolled.h ewl_widget.h ewl_window.h Log Message: - make it easier to check if a widget is of a specific type =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_attach.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- ewl_attach.h 4 Jan 2007 05:09:46 -0000 1.18 +++ ewl_attach.h 2 Mar 2007 04:39:46 -0000 1.19 @@ -16,6 +16,12 @@ #define EWL_ATTACH_TOOLTIP_TYPE "tooltip" /** + * @def EWL_ATTACH_IS(w) + * Returns TRUE if the widget is an Ewl_Attach widget, FALSE otherwise + */ +#define EWL_ATTACH_IS(w) (ewl_widget_type_is(EWL_WIDGET(w)), EWL_ATTACH_TYPE) + +/** * @def EWL_ATTACH(attach) * Typecast a pointer to an Ewl_Attach pointer */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_border.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ewl_border.h 6 Feb 2007 13:42:16 -0000 1.14 +++ ewl_border.h 2 Mar 2007 04:39:46 -0000 1.15 @@ -27,6 +27,12 @@ #define EWL_BORDER_TYPE "border" /** + * @def EWL_BORDER_IS(w) + * Returns TRUE if the widget is an Ewl_Border widget, FALSE otherwise + */ +#define EWL_BORDER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_BORDER_TYPE)) + +/** * Ewl_Border provides a container that has a labeled border. */ typedef struct Ewl_Border Ewl_Border; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_box.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_box.h 4 Jan 2007 05:09:46 -0000 1.17 +++ ewl_box.h 2 Mar 2007 04:39:46 -0000 1.18 @@ -25,6 +25,12 @@ #define EWL_BOX_TYPE "box" /** + * @def EWL_BOX_IS(w) + * Returns TRUE if the widget is an Ewl_Box, FALSE otherwise + */ +#define EWL_BOX_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_BOX_TYPE)) + +/** * The box widget is an Ewl_Container and lays out Ewl_Widget's either * horizontally or vertically. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_button.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- ewl_button.h 6 Feb 2007 13:42:16 -0000 1.25 +++ ewl_button.h 2 Mar 2007 04:39:46 -0000 1.26 @@ -27,6 +27,12 @@ #define EWL_BUTTON_TYPE "button" /** + * @def EWL_BUTTON_IS(w) + * Returns TRUE if the widget is an Ewl_Button, FALSE otherwise + */ +#define EWL_BUTTON_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_BUTTON_TYPE)) + +/** * The button provides a simple wrapper for creating a clickable Ewl_Widget * with an Ewl_Text displayed inside. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_calendar.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ewl_calendar.h 6 Feb 2007 13:42:16 -0000 1.14 +++ ewl_calendar.h 2 Mar 2007 04:39:46 -0000 1.15 @@ -26,6 +26,12 @@ #define EWL_CALENDAR_TYPE "calendar" /** + * @def EWL_CALENDAR_IS(w) + * Returns TRUE if the widget is an Ewl_Calendar, FALSE otherwise + */ +#define EWL_CALENDAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CALENDAR_TYPE)) + +/** * The Ewl_Calendar structure */ typedef struct Ewl_Calendar Ewl_Calendar; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_cell.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- ewl_cell.h 4 Jan 2007 05:09:46 -0000 1.12 +++ ewl_cell.h 2 Mar 2007 04:39:46 -0000 1.13 @@ -24,6 +24,12 @@ #define EWL_CELL_TYPE "cell" /** + * @def EWL_CELL_IS(w) + * Returns TRUE if the widget is an Ewl_Cell, FALSE otherwise + */ +#define EWL_CELL_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CELL_TYPE)) + +/** * The Ewl_Cell widget */ typedef struct Ewl_Cell Ewl_Cell; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_check.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_check.h 4 Jan 2007 05:09:46 -0000 1.15 +++ ewl_check.h 2 Mar 2007 04:39:46 -0000 1.16 @@ -25,6 +25,12 @@ #define EWL_CHECK_TYPE "check" /** + * @def EWL_CHECK_IS(w) + * Returns TRUE if the widget is an Ewl_Check, FALSE otherwise + */ +#define EWL_CHECK_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CHECK_TYPE)) + +/** * A single purpose extension of Ewl_Widget to provide a checked state. */ typedef struct Ewl_Check Ewl_Check; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_checkbutton.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- ewl_checkbutton.h 6 Feb 2007 13:42:16 -0000 1.16 +++ ewl_checkbutton.h 2 Mar 2007 04:39:46 -0000 1.17 @@ -27,6 +27,12 @@ #define EWL_CHECKBUTTON_TYPE "checkbutton" /** + * @def EWL_CHECKBUTTON_IS(w) + * Returns TRUE if the widget is an Ewl_Checkbutton, FALSE otherwise + */ +#define EWL_CHECKBUTTONBUTTON_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CHECKBUTTONBUTTON_TYPE)) + +/** * The button class is a basic button with a label. This class is inherited by * the check button and radio button classes. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_colordialog.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_colordialog.h 6 Feb 2007 13:42:16 -0000 1.17 +++ ewl_colordialog.h 2 Mar 2007 04:39:46 -0000 1.18 @@ -20,6 +20,12 @@ #define EWL_COLORDIALOG_TYPE "colordialog" /** + * @def EWL_COLORDIALOG_IS(w) + * Returns TRUE if the widget is an Ewl_Colordialog, FALSE otherwise + */ +#define EWL_COLORDIALOG_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_COLORDIALOG_TYPE)) + +/** * @def EWL_COLORDIALOG(cd) * Typecast a pointer to an Ewl_Colordialog pointer. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_colorpicker.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- ewl_colorpicker.h 6 Feb 2007 13:42:16 -0000 1.23 +++ ewl_colorpicker.h 2 Mar 2007 04:39:46 -0000 1.24 @@ -20,6 +20,12 @@ #define EWL_COLORPICKER_TYPE "colorpicker" /** + * @def EWL_COLORPICKER_IS(w) + * Returns TRUE if the widget is an Ewl_Colorpicker, FALSE otherwise + */ +#define EWL_COLORPICKER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_COLORPICKER_TYPE)) + +/** * @def EWL_COLORPICKER(cp) * Typecast a pointer to an Ewl_Colorpicker pointer. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_combo.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- ewl_combo.h 6 Feb 2007 13:42:17 -0000 1.23 +++ ewl_combo.h 2 Mar 2007 04:39:46 -0000 1.24 @@ -27,6 +27,12 @@ #define EWL_COMBO_TYPE "combo" /** + * @def EWL_COMBO_IS(w) + * Returns TRUE if the widget is an Ewl_Combo, FALSE otherwise + */ +#define EWL_COMBO_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_COMBO_TYPE)) + +/** * A simple internal combo box, it is limited to drawing within the current * evas. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_container.h,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- ewl_container.h 12 Feb 2007 13:16:05 -0000 1.29 +++ ewl_container.h 2 Mar 2007 04:39:46 -0000 1.30 @@ -20,6 +20,12 @@ #define EWL_CONTAINER_TYPE "container" /** + * @def EWL_CONTAINER_IS(w) + * Returns TRUE if the widget is an Ewl_Container, FALSE otherwise + */ +#define EWL_CONTAINER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CONTAINER_TYPE)) + +/** * This class inherits from Ewl_Widget and provides the capabilities necessary * for nesting other widgets inside. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_cursor.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_cursor.h 4 Jan 2007 05:09:46 -0000 1.5 +++ ewl_cursor.h 2 Mar 2007 04:39:46 -0000 1.6 @@ -24,6 +24,12 @@ #define EWL_CURSOR_TYPE "cursor" /** + * @def EWL_CURSOR_IS(w) + * Returns TRUE if the widget is an Ewl_Cursor, FALSE otherwise + */ +#define EWL_CURSOR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_CURSOR_TYPE)) + +/** * Ewl_Cursor provides a container that has a labeled cursor. */ typedef struct Ewl_Cursor Ewl_Cursor; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_datepicker.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- ewl_datepicker.h 6 Feb 2007 13:42:17 -0000 1.13 +++ ewl_datepicker.h 2 Mar 2007 04:39:46 -0000 1.14 @@ -26,6 +26,12 @@ #define EWL_DATEPICKER_TYPE "datepicker" /** + * @def EWL_DATEPICKER_IS(w) + * Returns TRUE if the widget is an Ewl_Datepicker, FALSE otherwise + */ +#define EWL_DATEPICKER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_DATEPICKER_TYPE)) + +/** * The Ewl_Datepicker */ typedef struct Ewl_Datepicker Ewl_Datepicker; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_dialog.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- ewl_dialog.h 3 Feb 2007 03:09:26 -0000 1.16 +++ ewl_dialog.h 2 Mar 2007 04:39:46 -0000 1.17 @@ -24,6 +24,12 @@ #define EWL_DIALOG_TYPE "dialog" /** + * @def EWL_DIALOG_IS(w) + * Returns TRUE if the widget is an Ewl_Dialog, FALSE otherwise + */ +#define EWL_DIALOG_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_DIALOG_TYPE)) + +/** * The dialog structure is a window with two areas: a box (vbox) to hold * messages and another box (action_area) to put buttons * (usually). These boxes can be separated by a line. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.h,v retrieving revision 1.42 retrieving revision 1.43 diff -u -3 -r1.42 -r1.43 --- ewl_embed.h 12 Feb 2007 13:16:05 -0000 1.42 +++ ewl_embed.h 2 Mar 2007 04:39:46 -0000 1.43 @@ -25,6 +25,12 @@ #define EWL_EMBED_TYPE "embed" /** + * @def EWL_EMBED_IS(w) + * Returns TRUE if the widget is an Ewl_Embed, FALSE otherwise + */ +#define EWL_EMBED_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_EMBED_TYPE)) + +/** * The embed structure is mostly a container for holding widgets and a * wrapper canvas smart object. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_entry.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- ewl_entry.h 6 Feb 2007 13:42:17 -0000 1.25 +++ ewl_entry.h 2 Mar 2007 04:39:46 -0000 1.26 @@ -21,10 +21,22 @@ #define EWL_ENTRY_TYPE "entry" /** + * @def EWL_ENTRY_IS(w) + * Returns TRUE if the widget is an Ewl_Entry, FALSE otherwise + */ +#define EWL_ENTRY_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_ENTRY_TYPE)) + +/** * @def EWL_ENTRY_CURSOR_TYPE * The type name for the Ewl_Entry_Cursor widget */ #define EWL_ENTRY_CURSOR_TYPE "cursor" + +/** + * @def EWL_ENTRY_CURSOR_IS(w) + * Returns TRUE if the widget is an Ewl_Entry_Cursor, FALSE otherwise + */ +#define EWL_ENTRY_CURSOR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_ENTRY_CURSOR_TYPE)) /** * @def EWL_ENTRY(entry) =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_expansion.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_expansion.h 14 Feb 2007 20:36:33 -0000 1.2 +++ ewl_expansion.h 2 Mar 2007 04:39:46 -0000 1.3 @@ -23,6 +23,12 @@ #define EWL_EXPANSION_TYPE "expansion" /** + * @def EWL_EXPANSION_IS(w) + * Returns TRUE if the widget is an Ewl_Expansion, FALSE otherwise + */ +#define EWL_EXPANSION_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_EXPANSION_TYPE)) + +/** * A tree expansion handle. */ typedef struct Ewl_Expansion Ewl_Expansion; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filedialog.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- ewl_filedialog.h 6 Feb 2007 13:42:17 -0000 1.18 +++ ewl_filedialog.h 2 Mar 2007 04:39:46 -0000 1.19 @@ -27,6 +27,12 @@ #define EWL_FILEDIALOG_TYPE "filedialog" /** + * @def EWL_FILEDIALOG_IS(w) + * Returns TRUE if the widget is an Ewl_Filedialog, FALSE otherwise + */ +#define EWL_FILEDIALOG_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILEDIALOG_TYPE)) + +/** * The Ewl_Filedialog provides a filedialog */ typedef struct Ewl_Filedialog Ewl_Filedialog; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_filelist.h 6 Feb 2007 13:42:17 -0000 1.15 +++ ewl_filelist.h 2 Mar 2007 04:39:46 -0000 1.16 @@ -24,6 +24,12 @@ #define EWL_FILELIST_TYPE "filelist" /** + * @def EWL_FILELIST_IS(w) + * Returns TRUE if the widget is an Ewl_Filelist, FALSE otherwise + */ +#define EWL_FILELIST_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILELIST_TYPE)) + +/** * The Ewl_Filelist provides a base class for the file lists */ typedef struct Ewl_Filelist Ewl_Filelist; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_column.h,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- ewl_filelist_column.h 6 Feb 2007 13:42:17 -0000 1.10 +++ ewl_filelist_column.h 2 Mar 2007 04:39:46 -0000 1.11 @@ -22,6 +22,12 @@ #define EWL_FILELIST_COLUMN_TYPE "filelist_column" /** + * @def EWL_FILELIST_COLUMN_IS(w) + * Returns TRUE if the widget is an Ewl_Filelist_Column, FALSE otherwise + */ +#define EWL_FILELIST_COLUMN_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILELIST_COLUMN_TYPE)) + +/** * @def EWL_FILELIST_COLUMN(fl) * Typecasts a pointer to an Ewl_Filelist_Column pointer */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_icon.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- ewl_filelist_icon.h 6 Feb 2007 13:42:17 -0000 1.7 +++ ewl_filelist_icon.h 2 Mar 2007 04:39:46 -0000 1.8 @@ -22,6 +22,12 @@ #define EWL_FILELIST_ICON_TYPE "filelist_icon" /** + * @def EWL_FILELIST_ICON_IS(w) + * Returns TRUE if the widget is an Ewl_Filelist_Icon, FALSE otherwise + */ +#define EWL_FILELIST_ICON_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILELIST_ICON_TYPE)) + +/** * The Ewl_Filelist_Icon provides an icon view of the files */ typedef struct Ewl_Filelist_Icon Ewl_Filelist_Icon; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_list.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- ewl_filelist_list.h 6 Feb 2007 13:42:17 -0000 1.7 +++ ewl_filelist_list.h 2 Mar 2007 04:39:46 -0000 1.8 @@ -22,6 +22,12 @@ #define EWL_FILELIST_LIST_TYPE "filelist_list" /** + * @def EWL_FILELIST_LIST_IS(w) + * Returns TRUE if the widget is an Ewl_Filelist_List, FALSE otherwise + */ +#define EWL_FILELIST_LIST_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILELIST_LIST_TYPE)) + +/** * The Ewl_Filelist_List widget provides a list view of the files */ typedef struct Ewl_Filelist_List Ewl_Filelist_List; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_tree.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_filelist_tree.h 6 Feb 2007 13:42:17 -0000 1.2 +++ ewl_filelist_tree.h 2 Mar 2007 04:39:46 -0000 1.3 @@ -22,6 +22,12 @@ #define EWL_FILELIST_TREE_TYPE "filelist_tree" /** + * @def EWL_FILELIST_TREE_IS(w) + * Returns TRUE if the widget is an Ewl_Filelist_Tree, FALSE otherwise + */ +#define EWL_FILELIST_TREE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILELIST_TREE_TYPE)) + +/** * The Ewl_Filelist_Tree widget provides a tree view of the files */ typedef struct Ewl_Filelist_Tree Ewl_Filelist_Tree; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filepicker.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_filepicker.h 6 Feb 2007 13:42:17 -0000 1.6 +++ ewl_filepicker.h 2 Mar 2007 04:39:46 -0000 1.7 @@ -22,6 +22,12 @@ #define EWL_FILEPICKER_TYPE "filepicker" /** + * @def EWL_FILEPICKER_IS(w) + * Returns TRUE if the widget is an Ewl_Filepicker, FALSE otherwise + */ +#define EWL_FILEPLICKER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FILEPICKER_TYPE)) + +/** * The Ewl_Filepicker provides a widget for picking files */ typedef struct Ewl_Filepicker Ewl_Filepicker; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_floater.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_floater.h 6 Feb 2007 13:42:17 -0000 1.15 +++ ewl_floater.h 2 Mar 2007 04:39:46 -0000 1.16 @@ -27,6 +27,12 @@ #define EWL_FLOATER_TYPE "floater" /** + * @def EWL_FLOATER_IS(w) + * Returns TRUE if the widget is an Ewl_Floater, FALSE otherwise + */ +#define EWL_FLOATER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FLOATER_TYPE)) + +/** * The floater is a container for widgets that need to be drawn on top * of multiple widgets (ie. dropdownbox) */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_freebox.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- ewl_freebox.h 4 Jan 2007 05:09:47 -0000 1.8 +++ ewl_freebox.h 2 Mar 2007 04:39:46 -0000 1.9 @@ -33,6 +33,12 @@ #define EWL_FREEBOX(box) ((Ewl_Freebox *)box) /** + * @def EWL_FREEBOX_IS(w) + * Returns TRUE if the widget is an Ewl_Freebox, FALSE otherwise + */ +#define EWL_FREEBOX_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_FREEBOX_TYPE)) + +/** * A free layout container. */ typedef struct Ewl_Freebox Ewl_Freebox; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_grid.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- ewl_grid.h 4 Jan 2007 05:09:47 -0000 1.26 +++ ewl_grid.h 2 Mar 2007 04:39:46 -0000 1.27 @@ -24,6 +24,12 @@ #define EWL_GRID_TYPE "grid" /** + * @def EWL_GRID_IS(w) + * Returns TRUE if the widget is an Ewl_Grid, FALSE otherwise + */ +#define EWL_GRID_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_GRID_TYPE)) + +/** * The Ewl_Grid_Info structure */ typedef struct Ewl_Grid_Info Ewl_Grid_Info; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_highlight.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ewl_highlight.h 6 Feb 2007 13:42:17 -0000 1.4 +++ ewl_highlight.h 2 Mar 2007 04:39:46 -0000 1.5 @@ -21,6 +21,12 @@ #define EWL_HIGHLIGHT_TYPE "highlight" /** + * @def EWL_HIGHLIGHT_IS(w) + * Returns TRUE if the widget is an Ewl_Highlight, FALSE otherwise + */ +#define EWL_HIGHLIGHT_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_HIGHLIGHT_TYPE)) + +/** * @def EWL_HIGHLIGHT * Typecasts a pointer to an Ewl_Highlight pointer. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_histogram.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- ewl_histogram.h 6 Feb 2007 13:42:17 -0000 1.8 +++ ewl_histogram.h 2 Mar 2007 04:39:46 -0000 1.9 @@ -20,6 +20,12 @@ #define EWL_HISTOGRAM_TYPE "histogram" /** + * @def EWL_HISTOGRAM_IS(w) + * Returns TRUE if the widget is an Ewl_Histogram, FALSE otherwise + */ +#define EWL_HISTOGRAM_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_HISTOGRAM_TYPE)) + +/** * @enum Ewl_Histogram_Channel * The histogram channels */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_icon.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- ewl_icon.h 6 Feb 2007 13:42:17 -0000 1.13 +++ ewl_icon.h 2 Mar 2007 04:39:46 -0000 1.14 @@ -21,6 +21,12 @@ #define EWL_ICON_TYPE "icon" /** + * @def EWL_ICON_IS(w) + * Returns TRUE if the widget is an Ewl_Icon, FALSE otherwise + */ +#define EWL_ICON_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_ICON_TYPE)) + +/** * @def EWL_ICON(icon) * Typecasts a pointer to an Ewl_Icon pointer. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_image.h,v retrieving revision 1.32 retrieving revision 1.33 diff -u -3 -r1.32 -r1.33 --- ewl_image.h 12 Feb 2007 13:16:05 -0000 1.32 +++ ewl_image.h 2 Mar 2007 04:39:46 -0000 1.33 @@ -24,6 +24,12 @@ #define EWL_IMAGE_TYPE "image" /** + * @def EWL_IMAGE_IS(w) + * Returns TRUE if the widget is an Ewl_Image, FALSE otherwise + */ +#define EWL_IMAGE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_IMAGE_TYPE)) + +/** * @enum Ewl_Image_Type * The type of image */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_label.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_label.h 6 Feb 2007 13:42:17 -0000 1.17 +++ ewl_label.h 2 Mar 2007 04:39:46 -0000 1.18 @@ -25,6 +25,12 @@ #define EWL_LABEL_TYPE "label" /** + * @def EWL_LABEL_IS(w) + * Returns TRUE if the widget is an Ewl_Label, FALSE otherwise + */ +#define EWL_LABEL_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_LABEL_TYPE)) + +/** * The Ewl_Label widget */ typedef struct Ewl_Label Ewl_Label; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_list.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_list.c 7 Feb 2007 07:45:32 -0000 1.17 +++ ewl_list.c 2 Mar 2007 04:39:46 -0000 1.18 @@ -160,7 +160,7 @@ row = ewl_container_child_index_get(EWL_CONTAINER(data), w); if (row == -1) { - if (!ewl_widget_type_is(w, EWL_HIGHLIGHT_TYPE)) + if (!EWL_HIGHLIGHT_IS(w)) { DWARNING("Unknown widget clicked for container."); DRETURN(DLEVEL_STABLE); =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_list.h,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ewl_list.h 6 Feb 2007 13:42:17 -0000 1.11 +++ ewl_list.h 2 Mar 2007 04:39:46 -0000 1.12 @@ -21,6 +21,12 @@ #define EWL_LIST_TYPE "list" /** + * @def EWL_LIST_IS(w) + * Returns TRUE if the widget is an Ewl_LIST, FALSE otherwise + */ +#define EWL_LIST_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_LIST_TYPE)) + +/** * @def EWL_LIST(list) * Typecasts a pointer to an Ewl_List pointer */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_media.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- ewl_media.h 12 Feb 2007 13:16:05 -0000 1.19 +++ ewl_media.h 2 Mar 2007 04:39:46 -0000 1.20 @@ -24,6 +24,12 @@ #define EWL_MEDIA_TYPE "media" /** + * @def EWL_MEDIA_IS(w) + * Returns TRUE if the widget is an Ewl_Media, FALSE otherwise + */ +#define EWL_MEDIA_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_MEDIA_TYPE)) + +/** * The Ewl_Media widget */ typedef struct Ewl_Media Ewl_Media; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_menu.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- ewl_menu.c 6 Feb 2007 22:35:21 -0000 1.40 +++ ewl_menu.c 2 Mar 2007 04:39:46 -0000 1.41 @@ -182,7 +182,7 @@ ewl_container_child_iterate_begin(bar); while ((sub = EWL_MENU(ewl_container_child_next(bar)))) { if ((sub != EWL_MENU(w)) - && ewl_widget_type_is(EWL_WIDGET(sub), EWL_MENU_TYPE) + && EWL_MENU_IS(sub) && (sub->base.popup) && VISIBLE(sub->base.popup)) { hide_menu = sub; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_menu.h,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- ewl_menu.h 2 Mar 2007 02:33:10 -0000 1.24 +++ ewl_menu.h 2 Mar 2007 04:39:46 -0000 1.25 @@ -27,6 +27,12 @@ #define EWL_MENU_TYPE "menu" /** + * @def EWL_MENU_IS(w) + * Returns TRUE if the widget is an Ewl_Menu, FALSE otherwise + */ +#define EWL_MENU_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENU_TYPE)) + +/** * A simple internal menu, it is limited to drawing within the current evas. */ typedef struct Ewl_Menu Ewl_Menu; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_menu_base.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -3 -r1.24 -r1.25 --- ewl_menu_base.c 6 Feb 2007 13:42:17 -0000 1.24 +++ ewl_menu_base.c 2 Mar 2007 04:39:46 -0000 1.25 @@ -106,7 +106,7 @@ */ ecore_dlist_goto_first(pb->children); while ((child = ecore_dlist_next(pb->children))) { - if (ewl_widget_type_is(child, "menu_item")) { + if (EWL_MENU_ITEM_IS(child)) { item = EWL_MENU_ITEM(child); item->inmenu = menu->popup; } =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_menu_base.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- ewl_menu_base.h 6 Feb 2007 13:42:17 -0000 1.16 +++ ewl_menu_base.h 2 Mar 2007 04:39:46 -0000 1.17 @@ -27,6 +27,12 @@ #define EWL_MENU_BASE_TYPE "menu_base" /** + * @def EWL_MENU_BASE_IS(w) + * Returns TRUE if the widget is an Ewl_Menu_Base, FALSE otherwise + */ +#define EWL_MENU_BASE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENU_BASE_TYPE)) + +/** * Provides the basic functionality common to the various menu classes. */ typedef struct Ewl_Menu_Base Ewl_Menu_Base; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_menu_item.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- ewl_menu_item.h 6 Feb 2007 13:42:17 -0000 1.16 +++ ewl_menu_item.h 2 Mar 2007 04:39:46 -0000 1.17 @@ -26,6 +26,12 @@ #define EWL_MENU_ITEM_TYPE "menu_item" /** + * @def EWL_MENU_ITEM_IS(w) + * Returns TRUE if the widget is an Ewl_Menu_Item, FALSE otherwise + */ +#define EWL_MENU_ITEM_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENU_ITEM_TYPE)) + +/** * This serves as a basis for all menu related entries. It provides the most * basic layout facilities for items in a menu. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_menubar.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- ewl_menubar.c 14 Feb 2007 06:50:18 -0000 1.18 +++ ewl_menubar.c 2 Mar 2007 04:39:46 -0000 1.19 @@ -205,7 +205,7 @@ DCHECK_TYPE("c", c, EWL_CONTAINER_TYPE); DCHECK_TYPE("w", w, EWL_WIDGET_TYPE); - if (ewl_widget_type_is(w, "menu")) + if (EWL_MENU_IS(w)) EWL_MENU(w)->menubar_parent = EWL_WIDGET(c); DLEAVE_FUNCTION(DLEVEL_STABLE); =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_menubar.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_menubar.h 2 Mar 2007 02:33:10 -0000 1.15 +++ ewl_menubar.h 2 Mar 2007 04:39:46 -0000 1.16 @@ -27,6 +27,12 @@ #define EWL_MENUBAR_TYPE "menubar" /** + * @def EWL_MENUBAR_IS(w) + * Returns TRUE if the widget is an Ewl_Menubar, FALSE otherwise + */ +#define EWL_MENUBAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_MENUBAR_TYPE)) + +/** * The Ewl_Menubar widget */ typedef struct Ewl_Menubar Ewl_Menubar; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_mvc.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_mvc.h 6 Feb 2007 13:42:17 -0000 1.15 +++ ewl_mvc.h 2 Mar 2007 04:39:46 -0000 1.16 @@ -22,6 +22,12 @@ */ #define EWL_MVC_TYPE "mvc" +/** + * @def EWL_MVC_IS(w) + * Returns TRUE if the widget is an Ewl_Mvc, FALSE otherwise + */ +#define EWL_MVC_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_MVC_TYPE)) + /** * @def EWL_SELECTION(x) * Typecast a pointer to an Ewl_Selection pointer =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_notebook.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_notebook.h 6 Feb 2007 13:42:17 -0000 1.15 +++ ewl_notebook.h 2 Mar 2007 04:39:46 -0000 1.16 @@ -30,6 +30,12 @@ #define EWL_NOTEBOOK_TYPE "notebook" /** + * @def EWL_NOTEBOOK_IS(w) + * Returns TRUE if the widget is an Ewl_Notebook, FALSE otherwise + */ +#define EWL_NOTEBOOK_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_NOTEBOOK_TYPE)) + +/** * @def EWL_NOTEBOOK(n) * Typecasts a pointer to an Ewl_Notebook pointer. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_object.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_object.h 4 Jan 2007 05:09:47 -0000 1.17 +++ ewl_object.h 2 Mar 2007 04:39:46 -0000 1.18 @@ -3,9 +3,8 @@ #define EWL_OBJECT_H /** - * @addtogroup Ewl_Object Ewl_Object: Basic Object Inherited by Ewl_Widget - * @brief Defines the Ewl_Object class along with methods and macros related - * to it. + * @addtogroup Ewl_Object Ewl_Object: Base object. Provides functionality available to all widgets. + * @brief Defines the Ewl_Object class along with basic methods and macros. * * @{ */ @@ -15,6 +14,7 @@ * The minimum possible size any object can receive. */ #define EWL_OBJECT_MIN_SIZE (1) + /** * @def EWL_OBJECT_MAX_SIZE * The maximum possible size any object can receive. =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_overlay.h,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- ewl_overlay.h 12 Feb 2007 13:16:05 -0000 1.12 +++ ewl_overlay.h 2 Mar 2007 04:39:46 -0000 1.13 @@ -25,6 +25,12 @@ #define EWL_OVERLAY_TYPE "overlay" /** + * @def EWL_OVERLAY_IS(w) + * Returns TRUE if the widget is an Ewl_Overlay, FALSE otherwise + */ +#define EWL_OVERLAY_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_OVERLAY_TYPE)) + +/** * The overlay structure is mostly a container for holding widgets and a * wrapper evas smart object. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.c,v retrieving revision 1.46 retrieving revision 1.47 diff -u -3 -r1.46 -r1.47 --- ewl_paned.c 6 Feb 2007 13:42:17 -0000 1.46 +++ ewl_paned.c 2 Mar 2007 04:39:46 -0000 1.47 @@ -164,7 +164,7 @@ ecore_dlist_goto_first(EWL_CONTAINER(p)->children); while ((child = ecore_dlist_next(EWL_CONTAINER(p)->children))) { - if (ewl_widget_type_is(child, EWL_PANED_GRABBER_TYPE)) + if (EWL_PANED_GRABBER_IS(child)) ewl_paned_grabber_paned_orientation_set( EWL_PANED_GRABBER(child), o); } @@ -207,7 +207,7 @@ DCHECK_TYPE("w", w, EWL_WIDGET_TYPE); /* if this is a grabber we can skipp it */ - if (ewl_widget_type_is(w, EWL_PANED_GRABBER_TYPE)) + if (EWL_PANED_GRABBER_IS(w)) DRETURN(DLEVEL_STABLE); o = ewl_paned_grabber_new(); @@ -247,7 +247,7 @@ p = EWL_PANED(c); /* skip grabbers */ - if (ewl_widget_type_is(w, EWL_PANED_GRABBER_TYPE)) + if (EWL_PANED_GRABBER_IS(w)) DRETURN(DLEVEL_STABLE); /* our grabber is always to our left, since we were just removed @@ -465,8 +465,7 @@ Ewl_Widget *grab; int min, new_size, grab_pos; if (!VISIBLE(child) - || ewl_widget_type_is(child, - EWL_PANED_GRABBER_TYPE)) + || EWL_PANED_GRABBER_IS((child))) continue; min = layout->minimum_size(EWL_OBJECT(child)); @@ -570,7 +569,7 @@ while ((child = ecore_dlist_next(c->children))) { /* internal means grabber */ - if (ewl_widget_type_is(child, EWL_PANED_GRABBER_TYPE)) + if (EWL_PANED_GRABBER_IS(child)) { /* if there is a widget to the left we store the * grabber */ @@ -843,7 +842,7 @@ { if (!VISIBLE(child)) continue; - if (ewl_widget_type_is(child, EWL_PANED_GRABBER_TYPE)) + if (EWL_PANED_GRABBER_IS(child)) { stop_grabber = EWL_PANED_GRABBER(child); break; @@ -870,7 +869,7 @@ { if (!VISIBLE(child)) continue; - if (ewl_widget_type_is(child, EWL_PANED_GRABBER_TYPE)) { + if (EWL_PANED_GRABBER_IS(child)) { stop_grabber = EWL_PANED_GRABBER(child); break; } @@ -1070,8 +1069,7 @@ while ((child = ecore_dlist_next(c->children))) { - if (VISIBLE(child) && ewl_widget_type_is(child, - EWL_PANED_GRABBER_TYPE)) + if (VISIBLE(child) && EWL_PANED_GRABBER_IS(child )) break; } @@ -1094,8 +1092,7 @@ ecore_dlist_goto_first(c->children); while ((child = ecore_dlist_next(c->children))) { - if (VISIBLE(child) && !ewl_widget_type_is(child, - EWL_PANED_GRABBER_TYPE)) + if (VISIBLE(child) && !EWL_PANED_GRABBER_IS(child)) i++; } =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- ewl_paned.h 6 Feb 2007 13:42:17 -0000 1.26 +++ ewl_paned.h 2 Mar 2007 04:39:46 -0000 1.27 @@ -30,6 +30,12 @@ #define EWL_PANED_TYPE "paned" /** + * @def EWL_PANED_IS(w) + * Returns TRUE if the widget is an Ewl_Paned, FALSE otherwise + */ +#define EWL_PANED_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_PANED_TYPE)) + +/** * @def EWL_PANED(pane) * Typecasts a pointer to a Ewl_Paned pointer */ @@ -84,6 +90,12 @@ * The type name for the Ewl_Paned_Grabber widget */ #define EWL_PANED_GRABBER_TYPE "paned_grabber" + +/** + * @def EWL_PANED_GRABBER_IS(w) + * Returns TRUE if the widget is an Ewl_Paned_Grabber, FALSE otherwise + */ +#define EWL_PANED_GRABBER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_PANED_GRABBER_TYPE)) /** * Typedef for the Ewl_Paned_Grabber struct =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_password.h,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- ewl_password.h 6 Feb 2007 13:42:17 -0000 1.13 +++ ewl_password.h 2 Mar 2007 04:39:46 -0000 1.14 @@ -26,6 +26,12 @@ #define EWL_PASSWORD_TYPE "password" /** + * @def EWL_PASSWORD_IS(w) + * Returns TRUE if the widget is an Ewl_Password, FALSE otherwise + */ +#define EWL_PASSWORD_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_PASSWORD_TYPE)) + +/** * Inherits from the Ewl_Widget and provides single line editable text. */ typedef struct Ewl_Password Ewl_Password; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_popup.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- ewl_popup.h 14 Feb 2007 06:42:28 -0000 1.9 +++ ewl_popup.h 2 Mar 2007 04:39:46 -0000 1.10 @@ -20,6 +20,12 @@ #define EWL_POPUP_TYPE "popup" /** + * @def EWL_POPUP_IS(w) + * Returns TRUE if the widget is an Ewl_Popup, FALSE otherwise + */ +#define EWL_POPUP_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_POPUP_TYPE)) + +/** * Provides an Ewl_Widget to simply act with override windows */ typedef struct Ewl_Popup Ewl_Popup; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_progressbar.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_progressbar.h 6 Feb 2007 13:42:17 -0000 1.15 +++ ewl_progressbar.h 2 Mar 2007 04:39:46 -0000 1.16 @@ -28,6 +28,12 @@ #define EWL_PROGRESSBAR_TYPE "progressbar" /** + * @def EWL_PROGRESSBAR_IS(w) + * Returns TRUE if the widget is an Ewl_Progressbar, FALSE otherwise + */ +#define EWL_PROGRESSBAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_PROGRESSBAR_TYPE)) + +/** * The Ewl_Progressbar provides a statusbar from a given value */ typedef struct Ewl_Progressbar Ewl_Progressbar; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_radiobutton.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ewl_radiobutton.h 6 Feb 2007 13:42:17 -0000 1.14 +++ ewl_radiobutton.h 2 Mar 2007 04:39:46 -0000 1.15 @@ -27,6 +27,12 @@ #define EWL_RADIOBUTTON_TYPE "radiobutton" /** + * @def EWL_RADIOBUTTON_IS(w) + * Returns TRUE if the widget is an Ewl_Radiobutton, FALSE otherwise + */ +#define EWL_RADIOBUTTON_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_RADIOBUTTON_TYPE)) + +/** * The radio button provides a means for selecting a single item from a group * of options. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_range.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- ewl_range.h 4 Jan 2007 05:09:47 -0000 1.6 +++ ewl_range.h 2 Mar 2007 04:39:46 -0000 1.7 @@ -20,6 +20,12 @@ #define EWL_RANGE_TYPE "range" /** + * @def EWL_RANGE_IS(w) + * Returns TRUE if the widget is an Ewl_Range, FALSE otherwise + */ +#define EWL_RANGE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_RANGE_TYPE)) + +/** * The Ewl_Range provides a means to select a value from a range using a * draggable button. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_row.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ewl_row.h 4 Jan 2007 05:09:47 -0000 1.14 +++ ewl_row.h 2 Mar 2007 04:39:47 -0000 1.15 @@ -24,6 +24,12 @@ #define EWL_ROW_TYPE "row" /** + * @def EWL_ROW_IS(w) + * Returns TRUE if the widget is an Ewl_Row, FALSE otherwise + */ +#define EWL_ROW_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_ROW_TYPE)) + +/** * The Ewl_Row widget */ typedef struct Ewl_Row Ewl_Row; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_scrollbar.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- ewl_scrollbar.h 6 Feb 2007 13:42:17 -0000 1.16 +++ ewl_scrollbar.h 2 Mar 2007 04:39:47 -0000 1.17 @@ -38,6 +38,12 @@ #define EWL_SCROLLBAR_TYPE "scrollbar" /** + * @def EWL_SCROLLBAR_IS(w) + * Returns TRUE if the widget is an Ewl_Scrollbar, FALSE otherwise + */ +#define EWL_SCROLLBAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SCROLLBAR_TYPE)) + +/** * Provides a seeker with increment and decrement buttons arranged in a * specified order. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_scrollpane.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_scrollpane.h 4 Jan 2007 05:09:47 -0000 1.15 +++ ewl_scrollpane.h 2 Mar 2007 04:39:47 -0000 1.16 @@ -25,6 +25,12 @@ #define EWL_SCROLLPANE_TYPE "scrollpane" /** + * @def EWL_SCROLLPANE_IS(w) + * Returns TRUE if the widget is an Ewl_Scrollpane, FALSE otherwise + */ +#define EWL_SCROLLPANE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SCROLLPANE_TYPE)) + +/** * The scrollpane provides a way to pan around large collections of images. */ typedef struct Ewl_Scrollpane Ewl_Scrollpane; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_seeker.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- ewl_seeker.h 6 Feb 2007 13:42:17 -0000 1.19 +++ ewl_seeker.h 2 Mar 2007 04:39:47 -0000 1.20 @@ -29,6 +29,12 @@ #define EWL_SEEKER_TYPE "seeker" /** + * @def EWL_SEEKER_IS(w) + * Returns TRUE if the widget is an Ewl_Seeker, FALSE otherwise + */ +#define EWL_SEEKER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SEEKER_TYPE)) + +/** * The Ewl_Seeker provides a means to select a value from a range using a * draggable button. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_separator.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -3 -r1.14 -r1.15 --- ewl_separator.h 4 Jan 2007 05:09:47 -0000 1.14 +++ ewl_separator.h 2 Mar 2007 04:39:47 -0000 1.15 @@ -27,6 +27,12 @@ #define EWL_SEPARATOR_TYPE "separator" /** + * @def EWL_SEPARATOR_IS(w) + * Returns TRUE if the widget is an Ewl_Separator, FALSE otherwise + */ +#define EWL_SEPARATOR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SEPARATOR_TYPE)) + +/** * Provides an Ewl_Widget to simply act as a separator between other * Ewl_Widget's. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_shadow.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- ewl_shadow.h 6 Feb 2007 13:42:17 -0000 1.8 +++ ewl_shadow.h 2 Mar 2007 04:39:47 -0000 1.9 @@ -27,6 +27,12 @@ #define EWL_SHADOW_TYPE "shadow" /** + * @def EWL_SHADOW_IS(w) + * Returns TRUE if the widget is an Ewl_Shadow, FALSE otherwise + */ +#define EWL_SHADOW_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SHADOW_TYPE)) + +/** * Ewl_Shadow provides a container that has a shadowed border. */ typedef struct Ewl_Shadow Ewl_Shadow; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_spacer.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- ewl_spacer.h 4 Jan 2007 05:09:47 -0000 1.9 +++ ewl_spacer.h 2 Mar 2007 04:39:47 -0000 1.10 @@ -25,6 +25,12 @@ #define EWL_SPACER_TYPE "spacer" /** + * @def EWL_SPACER_IS(w) + * Returns TRUE if the widget is an Ewl_Spacer, FALSE otherwise + */ +#define EWL_SPACER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SPACER_TYPE)) + +/** * The Ewl_Spacer is a simple widget that is used to tweak spacing in an app. */ typedef struct Ewl_Spacer Ewl_Spacer; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_spectrum.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_spectrum.h 4 Jan 2007 05:09:47 -0000 1.17 +++ ewl_spectrum.h 2 Mar 2007 04:39:47 -0000 1.18 @@ -19,6 +19,12 @@ #define EWL_SPECTRUM_TYPE "spectrum" /** + * @def EWL_SPECTRUM_IS(w) + * Returns TRUE if the widget is an Ewl_Spectrum, FALSE otherwise + */ +#define EWL_SPECTRUM_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SPECTRUM_TYPE)) + +/** * @def EWL_SPECTRUM(sp) * Typecasts a pointer to an Ewl_Spectrum pointer. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_spinner.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -3 -r1.18 -r1.19 --- ewl_spinner.h 6 Feb 2007 13:42:17 -0000 1.18 +++ ewl_spinner.h 2 Mar 2007 04:39:47 -0000 1.19 @@ -27,6 +27,12 @@ #define EWL_SPINNER_TYPE "spinner" /** + * @def EWL_SPINNER_IS(w) + * Returns TRUE if the widget is an Ewl_Spinner, FALSE otherwise + */ +#define EWL_SPINNER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_SPINNER_TYPE)) + +/** * A combination of entry and increment/decrement buttons for adjusting * numerical values. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_statusbar.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- ewl_statusbar.h 6 Feb 2007 13:42:17 -0000 1.15 +++ ewl_statusbar.h 2 Mar 2007 04:39:47 -0000 1.16 @@ -26,6 +26,12 @@ #define EWL_STATUSBAR_TYPE "statusbar" /** + * @def EWL_STATUSBAR_IS(w) + * Returns TRUE if the widget is an Ewl_Statusbar, FALSE otherwise + */ +#define EWL_STATUSBAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_STATUSBAR_TYPE)) + +/** * The Ewl_Statusbar */ typedef struct Ewl_Statusbar Ewl_Statusbar; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_stock.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- ewl_stock.h 6 Feb 2007 13:42:17 -0000 1.7 +++ ewl_stock.h 2 Mar 2007 04:39:47 -0000 1.8 @@ -29,6 +29,12 @@ #define EWL_STOCK_TYPE "stock" /** + * @def EWL_STOCK_IS(w) + * Returns TRUE if the widget is an Ewl_Stock, FALSE otherwise + */ +#define EWL_STOCK_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_STOCK_TYPE)) + +/** * The stock structure. */ typedef struct Ewl_Stock Ewl_Stock; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_table.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- ewl_table.h 6 Feb 2007 13:42:17 -0000 1.20 +++ ewl_table.h 2 Mar 2007 04:39:47 -0000 1.21 @@ -28,6 +28,12 @@ #define EWL_TABLE_TYPE "table" /** + * @def EWL_TABLE_IS(w) + * Returns TRUE if the widget is an Ewl_Table, FALSE otherwise + */ +#define EWL_TABLE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TABLE_TYPE)) + +/** * The table widget is an Ewl_Container used to lay out widgets in a grid like * pattern with headers and alignment. */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.h,v retrieving revision 1.52 retrieving revision 1.53 diff -u -3 -r1.52 -r1.53 --- ewl_text.h 12 Feb 2007 13:16:05 -0000 1.52 +++ ewl_text.h 2 Mar 2007 04:39:47 -0000 1.53 @@ -30,16 +30,34 @@ #define EWL_TEXT_TYPE "text" /** + * @def EWL_TEXT_IS(w) + * Returns TRUE if the widget is an Ewl_Text, FALSE otherwise + */ +#define EWL_TEXT_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TEXT_TYPE)) + +/** * @def EWL_TEXT_TRIGGER_TYPE * The type name for the Ewl_Text_Trigger widget */ #define EWL_TEXT_TRIGGER_TYPE "trigger" /** + * @def EWL_TEXT_TRIGGER_IS(w) + * Returns TRUE if the widget is an Ewl_Text_Trigger, FALSE otherwise + */ +#define EWL_TEXT_TRIGGER_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TEXT_TRIGGER_TYPE)) + +/** * @def EWL_TEXT_SELECTION_TYPE * The type name for the Ewl_Text_Selection widget */ #define EWL_TEXT_SELECTION_TYPE "selection" + +/** + * @def EWL_TEXT_SELECTION_IS(w) + * Returns TRUE if the widget is an Ewl_Text_Selection, FALSE otherwise + */ +#define EWL_TEXT_SELECTION_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TEXT_SELECTION_TYPE)) /** * @def EWL_TEXT(text) =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_toolbar.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_toolbar.c 2 Mar 2007 02:33:10 -0000 1.5 +++ ewl_toolbar.c 2 Mar 2007 04:39:47 -0000 1.6 @@ -156,7 +156,7 @@ ewl_container_child_iterate_begin(EWL_CONTAINER(t)); while ((child = ewl_container_child_next(EWL_CONTAINER(t)))) { - if (ewl_widget_type_is(child, EWL_ICON_TYPE)) + if (EWL_ICON_IS(child)) ewl_icon_part_hide(EWL_ICON(child), part); } @@ -184,7 +184,7 @@ ewl_menubar_cb_child_add(c, w); t = EWL_TOOLBAR(EWL_WIDGET(c)->parent); - if (ewl_widget_type_is(w, EWL_ICON_TYPE)) + if (EWL_ICON_IS(w)) ewl_icon_part_hide(EWL_ICON(w), t->hidden); DLEAVE_FUNCTION(DLEVEL_STABLE); =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_toolbar.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- ewl_toolbar.h 6 Feb 2007 13:42:17 -0000 1.4 +++ ewl_toolbar.h 2 Mar 2007 04:39:47 -0000 1.5 @@ -21,6 +21,12 @@ #define EWL_TOOLBAR_TYPE "toolbar" /** + * @def EWL_TOOLBAR_IS(w) + * Returns TRUE if the widget is an Ewl_Toolbar, FALSE otherwise + */ +#define EWL_TOOLBAR_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TOOLBAR_TYPE)) + +/** * Ewl_Toolbar */ typedef struct Ewl_Toolbar Ewl_Toolbar; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree.c,v retrieving revision 1.44 retrieving revision 1.45 diff -u -3 -r1.44 -r1.45 --- ewl_tree.c 6 Feb 2007 13:42:17 -0000 1.44 +++ ewl_tree.c 2 Mar 2007 04:39:47 -0000 1.45 @@ -702,12 +702,12 @@ ewl_container_child_iterate_begin(EWL_CONTAINER(node)); while ((child = ewl_container_child_next(EWL_CONTAINER(node)))) { - if (ewl_widget_type_is(child, EWL_TREE_NODE_TYPE)) { + if (EWL_TREE_NODE_IS(child)) { if (VISIBLE(child)) { ewl_tree_node_row_walk_signal(tree, EWL_TREE_NODE(child)); } } - else if (ewl_widget_type_is(child, EWL_ROW_TYPE)) { + else if (EWL_ROW_IS(child)) { ewl_tree_row_signal(tree, child); } } @@ -725,10 +725,10 @@ ewl_tree_row_pos = 0; ewl_container_child_iterate_begin(EWL_CONTAINER(tree)); while ((child = ewl_container_child_next(EWL_CONTAINER(tree)))) { - if (ewl_widget_type_is(child, EWL_TREE_NODE_TYPE)) { + if (EWL_TREE_NODE_IS(child)) { ewl_tree_node_row_walk_signal(tree, EWL_TREE_NODE(child)); } - else if (ewl_widget_type_is(child, EWL_ROW_TYPE)) { + else if (EWL_ROW_IS(child)) { ewl_tree_row_signal(tree, child); } } =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -3 -r1.26 -r1.27 --- ewl_tree.h 6 Feb 2007 13:42:17 -0000 1.26 +++ ewl_tree.h 2 Mar 2007 04:39:47 -0000 1.27 @@ -27,10 +27,22 @@ #define EWL_TREE_TYPE "tree" /** + * @def EWL_TREE_IS(w) + * Returns TRUE if the widget is an Ewl_Tree, FALSE otherwise + */ +#define EWL_TREE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE_TYPE)) + +/** * @def EWL_TREE_NODE_TYPE * The type name for the Ewl_Tree_Node widget */ #define EWL_TREE_NODE_TYPE "node" + +/** + * @def EWL_TREE_NODE_IS(w) + * Returns TRUE if the widget is an Ewl_Tree_Node, FALSE otherwise + */ +#define EWL_TREE_NODE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE_NODE_TYPE)) /** * The Ewl_Tree widget =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2.h,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- ewl_tree2.h 6 Feb 2007 13:42:17 -0000 1.40 +++ ewl_tree2.h 2 Mar 2007 04:39:47 -0000 1.41 @@ -72,6 +72,12 @@ #define EWL_TREE2_TYPE "tree2" /** + * @def EWL_TREE2_IS(w) + * Returns TRUE if the widget is an Ewl_Tree2, FALSE otherwise + */ +#define EWL_TREE2_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE2_TYPE)) + +/** * @def EWL_TREE2(t) * Typecasts a pointer to an Ewl_Tree pointer. */ @@ -196,6 +202,13 @@ * Ewl_Tree2_Node stuff */ #define EWL_TREE2_NODE_TYPE "node" + +/** + * @def EWL_TREE2_NODE_IS(w) + * Returns TRUE if the widget is an Ewl_Tree2_Node, FALSE otherwise + */ +#define EWL_TREE2_NODE_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE2_NODE_TYPE)) + #define EWL_TREE2_NODE(n) ((Ewl_Tree2_Node *)n) typedef struct Ewl_Tree2_Node Ewl_Tree2_Node; struct Ewl_Tree2_Node =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2_view.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_tree2_view.h 6 Feb 2007 13:42:17 -0000 1.5 +++ ewl_tree2_view.h 2 Mar 2007 04:39:47 -0000 1.6 @@ -22,6 +22,12 @@ #define EWL_TREE2_VIEW_TYPE "tree2_view" /** + * @def EWL_TREE2_VIEW_IS(w) + * Returns TRUE if the widget is an Ewl_Tree2_View, FALSE otherwise + */ +#define EWL_TREE2_VIEW_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE2_VIEW_TYPE)) + +/** * @def EWL_TREE2_VIEW(v) * Typecasts a pointer to an Ewl_Tree2_View pointer */ =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2_view_plain.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_tree2_view_plain.h 6 Feb 2007 13:42:17 -0000 1.5 +++ ewl_tree2_view_plain.h 2 Mar 2007 04:39:47 -0000 1.6 @@ -21,6 +21,12 @@ #define EWL_TREE2_VIEW_PLAIN_TYPE "tree2_view_plain" /** + * @def EWL_TREE2_VIEW_PLAIN_IS(w) + * Returns TRUE if the widget is an Ewl_Tree2_View_Plain, FALSE otherwise + */ +#define EWL_TREE2_VIEW_PLAIN_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE2_VIEW_PLAIN_TYPE)) + +/** * Ewl_Tree2_View_Plain */ typedef struct Ewl_Tree2_View_Plain Ewl_Tree2_View_Plain; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree2_view_scrolled.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ewl_tree2_view_scrolled.h 6 Feb 2007 13:42:17 -0000 1.5 +++ ewl_tree2_view_scrolled.h 2 Mar 2007 04:39:47 -0000 1.6 @@ -21,6 +21,12 @@ #define EWL_TREE2_VIEW_SCROLLED_TYPE "tree2_view_scrolled" /** + * @def EWL_TREE2_VIEW_SCROLLED_IS(w) + * Returns TRUE if the widget is an Ewl_Tree2_View_Scrolled, FALSE otherwise + */ +#define EWL_TREE2_VIEW_SCROLLED_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_TREE2_VIEW_SCROLLED_TYPE)) + +/** * Ewl_Tree2_View_Scrolled */ typedef struct Ewl_Tree2_View_Scrolled Ewl_Tree2_View_Scrolled; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.h,v retrieving revision 1.56 retrieving revision 1.57 diff -u -3 -r1.56 -r1.57 --- ewl_widget.h 12 Feb 2007 13:16:05 -0000 1.56 +++ ewl_widget.h 2 Mar 2007 04:39:47 -0000 1.57 @@ -24,6 +24,12 @@ #define EWL_WIDGET_TYPE "widget" /** + * @def EWL_WIDGET_IS(w) + * Returns TRUE if the widget is an Ewl_Widget, FALSE otherwise + */ +#define EWL_WIDGET_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_WIDGET_TYPE)) + +/** * The attachment list */ typedef struct Ewl_Attach_List Ewl_Attach_List; =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_window.h,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- ewl_window.h 7 Feb 2007 23:29:23 -0000 1.29 +++ ewl_window.h 2 Mar 2007 04:39:47 -0000 1.30 @@ -25,6 +25,12 @@ #define EWL_WINDOW_TYPE "window" /** + * @def EWL_WINDOW_IS(w) + * Returns TRUE if the widget is an Ewl_Window, FALSE otherwise + */ +#define EWL_WINDOW_IS(w) (ewl_widget_type_is(EWL_WIDGET(w), EWL_WINDOW_TYPE)) + +/** * The window structure is mostly a container for holding widgets and a * wrapper around the xlib window. */ ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs