aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_ilist.h
diff options
context:
space:
mode:
authorChristopher Michael <cpmichael1@comcast.net>2007-01-08 19:23:21 +0000
committerChristopher Michael <cpmichael1@comcast.net>2007-01-08 19:23:21 +0000
commit332f1bc2ce26a393ddc80a917379e43920c8b589 (patch)
tree4d5a173cd60e7faa4f1a40d33815e8c8a3ff43b2 /src/bin/e_ilist.h
parentand fix it :-) (diff)
downloadenlightenment-332f1bc2ce26a393ddc80a917379e43920c8b589.tar.gz
Rework of the ilist widget.
- Added ability to optionally do multi-select and range-select. - Update Font Config Dialog to allow multi-select & setting of fonts in batch. No changes should be necessary for existing apps/dialogs that use ilist. If you would like to implement multi-select in something, have a look at the font config dialog for usage. SVN revision: 27875
Diffstat (limited to 'src/bin/e_ilist.h')
-rw-r--r--src/bin/e_ilist.h52
1 files changed, 35 insertions, 17 deletions
diff --git a/src/bin/e_ilist.h b/src/bin/e_ilist.h
index b964c6250..8b3fff50f 100644
--- a/src/bin/e_ilist.h
+++ b/src/bin/e_ilist.h
@@ -1,36 +1,54 @@
-/*
- * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
- */
#ifdef E_TYPEDEFS
+
+typedef struct _E_Ilist_Item E_Ilist_Item;
+
#else
#ifndef E_ILIST_H
#define E_ILIST_H
+struct _E_Ilist_Item
+{
+ void *sd;
+ Evas_Object *o_base;
+ Evas_Object *o_icon;
+ unsigned char header : 1;
+ unsigned char selected : 1;
+
+ void (*func) (void *data, void *data2);
+ void (*func_hilight) (void *data, void *data2);
+ void *data, *data2;
+};
+
EAPI Evas_Object *e_ilist_add (Evas *evas);
-EAPI void e_ilist_icon_size_set (Evas_Object *obj, Evas_Coord w, Evas_Coord h);
EAPI void e_ilist_append (Evas_Object *obj, Evas_Object *icon, const char *label, int header, void (*func) (void *data, void *data2), void (*func_hilight) (void *data, void *data2), void *data, void *data2);
+EAPI void e_ilist_clear (Evas_Object *obj);
+EAPI void e_ilist_freeze (Evas_Object *obj);
+EAPI void e_ilist_thaw (Evas_Object *obj);
+EAPI int e_ilist_count (Evas_Object *obj);
+EAPI int e_ilist_selector_get (Evas_Object *obj);
+EAPI void e_ilist_selector_set (Evas_Object *obj, int selector);
+EAPI int e_ilist_multi_select_get (Evas_Object *obj);
+EAPI void e_ilist_multi_select_set (Evas_Object *obj, int multi);
+EAPI void e_ilist_min_size_get (Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
+EAPI void e_ilist_unselect (Evas_Object *obj);
EAPI void e_ilist_selected_set (Evas_Object *obj, int n);
EAPI int e_ilist_selected_get (Evas_Object *obj);
EAPI const char *e_ilist_selected_label_get (Evas_Object *obj);
EAPI void *e_ilist_selected_data_get (Evas_Object *obj);
EAPI void *e_ilist_selected_data2_get (Evas_Object *obj);
+EAPI Evas_Object *e_ilist_selected_icon_get (Evas_Object *obj);
EAPI void e_ilist_selected_geometry_get (Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
-EAPI void e_ilist_min_size_get (Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
-EAPI void e_ilist_selector_set (Evas_Object *obj, int selector);
-EAPI int e_ilist_selector_get (Evas_Object *obj);
-EAPI void e_ilist_unselect (Evas_Object *obj);
EAPI void e_ilist_remove_num (Evas_Object *obj, int n);
EAPI void e_ilist_remove_label (Evas_Object *obj, const char *label);
-EAPI const char *e_ilist_nth_label_get (Evas_Object *obj, int n);
-EAPI void e_ilist_nth_label_set (Evas_Object *obj, int n, const char *label);
-EAPI void e_ilist_nth_icon_set (Evas_Object *obj, int n, Evas_Object *icon);
-EAPI Evas_Object *e_ilist_nth_icon_get (Evas_Object *obj, int n);
-EAPI Evas_Object *e_ilist_selected_icon_get (Evas_Object *obj);
-EAPI int e_ilist_count (Evas_Object *obj);
-EAPI void e_ilist_clear (Evas_Object *obj);
+EAPI const char *e_ilist_nth_label_get (Evas_Object *obj, int n);
+EAPI void e_ilist_nth_label_set (Evas_Object *obj, int n, const char *label);
+EAPI Evas_Object *e_ilist_nth_icon_get (Evas_Object *obj, int n);
+EAPI void e_ilist_nth_icon_set (Evas_Object *obj, int n, Evas_Object *icon);
EAPI int e_ilist_nth_is_header (Evas_Object *obj, int n);
-EAPI void e_ilist_freeze (Evas_Object *obj);
-EAPI void e_ilist_thaw (Evas_Object *obj);
+EAPI void e_ilist_icon_size_set (Evas_Object *obj, Evas_Coord w, Evas_Coord h);
+EAPI Evas_List *e_ilist_items_get (Evas_Object *obj);
+EAPI void e_ilist_multi_select (Evas_Object *obj, int n);
+EAPI void e_ilist_range_select (Evas_Object *obj, int n);
#endif
#endif