From 2a39e68ad8f0ba9e70790dac1c09e40522d0e268 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 8 Oct 2008 08:48:09 +0000 Subject: [PATCH] comments for stuff to do to make this hover stuff actually useful soon. SVN revision: 36518 --- legacy/elementary/src/bin/test.c | 3 --- legacy/elementary/src/lib/Elementary.h | 16 +++++++++++----- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/legacy/elementary/src/bin/test.c b/legacy/elementary/src/bin/test.c index cb39a7a8eb..5aa98b9cd4 100644 --- a/legacy/elementary/src/bin/test.c +++ b/legacy/elementary/src/bin/test.c @@ -511,17 +511,14 @@ my_bt_11(void *data, Evas_Object *obj, void *event_info) elm_button_label_set(bt, "Top 1"); elm_box_pack_end(bx, bt); evas_object_show(bt); - bt = elm_button_add(win); elm_button_label_set(bt, "Top 2"); elm_box_pack_end(bx, bt); evas_object_show(bt); - bt = elm_button_add(win); elm_button_label_set(bt, "Top 3"); elm_box_pack_end(bx, bt); evas_object_show(bt); - evas_object_show(bx); elm_hover_content_set(hv, "top", bx); diff --git a/legacy/elementary/src/lib/Elementary.h b/legacy/elementary/src/lib/Elementary.h index 68065a30c3..861e3971a7 100644 --- a/legacy/elementary/src/lib/Elementary.h +++ b/legacy/elementary/src/lib/Elementary.h @@ -174,6 +174,8 @@ extern "C" { EAPI Evas_Object *elm_hover_add(Evas_Object *parent); EAPI void elm_hover_target_set(Evas_Object *obj, Evas_Object *target); EAPI void elm_hover_parent_set(Evas_Object *obj, Evas_Object *parent); + EAPI void elm_hover_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content); + /* smart callbacks elm_win objects will call: */ @@ -182,13 +184,17 @@ extern "C" { // * scroller could do with page up/down/left/right buttons and and idea of // a page size // * tab widget focusing (not useful for touchscreen tho...) +// * icon should optionally be able to collect events and call clicked +// callbacks +// * hover needs a way to animate show/hide (slide out slots) and have some +// graphics for around middle +// * hover needs to track move/resize and del of parent +// * hover needs to be able to use custom hover style +// * frame needs to be able to use custom frame style +// * all widgets need a way to use a custom style // // FIXME: immediate hitlist for widgets: -// HOVER: select a widget (any) and attach a hover to it - the over will hover -// on top of the hover target and accept child widgets. haver may -// optionally place something to cover the window (under the hover -// widget, above everything else) -// POPSEL: a buttont that when pressed uses a hover to display a h/v box or +// POPSEL: a button that when pressed uses a hover to display a h/v box or // a table of options surrounding the button with scroll butons at // the end and the ability to drag and scroll