aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_ilist.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2010-03-03 04:10:04 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2010-03-03 04:10:04 +0000
commit073a946433c4a3eeace00d289df9630265ec974d (patch)
tree2b4cd54ab277d0144c7d30de2fe81b80a34c91b3 /src/bin/e_ilist.h
parentRevert frametable change. Need better organization here. (diff)
downloadenlightenment-073a946433c4a3eeace00d289df9630265ec974d.tar.gz
new, single list module loader dialog.
This dialog was reworked to have one single list instead of two. This makes the internals way simpler and also fits small screens. Extra benefit is that we don't need to reload the list, so it's flicker-free and you don't loose context. Of course it will save some cpu cycles not having to do these list fills over and over again. the ilist had to be changed to include an "end" object, in the default theme it is at the right. It will use a part named e/widget/ilist/toggle_end to present the selected state. (The favorites/heart icon was choosen because it is red and thus easily visible in both black and white background -- selected/unselected). SVN revision: 46813
Diffstat (limited to 'src/bin/e_ilist.h')
-rw-r--r--src/bin/e_ilist.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/bin/e_ilist.h b/src/bin/e_ilist.h
index e0fb45582..6b07b4961 100644
--- a/src/bin/e_ilist.h
+++ b/src/bin/e_ilist.h
@@ -12,6 +12,7 @@ struct _E_Ilist_Item
const char *label;
Evas_Object *o_base;
Evas_Object *o_icon;
+ Evas_Object *o_end;
unsigned char header : 1;
unsigned char selected : 1;
unsigned char queued : 1;
@@ -22,10 +23,10 @@ struct _E_Ilist_Item
};
EAPI Evas_Object *e_ilist_add (Evas *evas);
-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_append_relative (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, int relative);
-EAPI void e_ilist_prepend (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_prepend_relative (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, int relative);
+EAPI void e_ilist_append (Evas_Object *obj, Evas_Object *icon, Evas_Object *end, 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_append_relative (Evas_Object *obj, Evas_Object *icon, Evas_Object *end, const char *label, int header, void (*func) (void *data, void *data2), void (*func_hilight) (void *data, void *data2), void *data, void *data2, int relative);
+EAPI void e_ilist_prepend (Evas_Object *obj, Evas_Object *icon, Evas_Object *end, 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_prepend_relative (Evas_Object *obj, Evas_Object *icon, Evas_Object *end, const char *label, int header, void (*func) (void *data, void *data2), void (*func_hilight) (void *data, void *data2), void *data, void *data2, int relative);
EAPI void e_ilist_clear (Evas_Object *obj);
EAPI void e_ilist_freeze (Evas_Object *obj);
EAPI void e_ilist_thaw (Evas_Object *obj);
@@ -42,6 +43,7 @@ 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 Evas_Object *e_ilist_selected_end_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 int e_ilist_selected_count_get (Evas_Object *obj);
EAPI void e_ilist_remove_num (Evas_Object *obj, int n);
@@ -49,7 +51,9 @@ 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 Evas_Object *e_ilist_nth_end_get (Evas_Object *obj, int n);
+EAPI void e_ilist_nth_end_set (Evas_Object *obj, int n, Evas_Object *end);
+EAPI Eina_Bool e_ilist_nth_is_header (Evas_Object *obj, int n);
EAPI void e_ilist_nth_geometry_get (Evas_Object *obj, int n, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
EAPI void e_ilist_icon_size_set (Evas_Object *obj, Evas_Coord w, Evas_Coord h);
EAPI Eina_List *e_ilist_items_get (Evas_Object *obj);