forked from enlightenment/efl
efl_ui_clickable: test
This commit is contained in:
parent
e712261e14
commit
c754a6bba6
|
@ -58,6 +58,12 @@ typedef struct _Size_Params
|
|||
|
||||
#define PAGE_NUM 3
|
||||
|
||||
static void
|
||||
_cb(void *data, Evas_Object *obj, Evas *e, void *event_info)
|
||||
{
|
||||
printf("asdfasdfasdf clicked\n");
|
||||
}
|
||||
|
||||
static Eo *
|
||||
view_add(View_Type p, Eo *parent)
|
||||
{
|
||||
|
@ -93,8 +99,10 @@ view_add(View_Type p, Eo *parent)
|
|||
break;
|
||||
|
||||
case BUTTON:
|
||||
page = efl_add(EFL_UI_BUTTON_CLASS, parent,
|
||||
efl_text_set(efl_added, "Button Page"));
|
||||
//page = efl_add(EFL_UI_BUTTON_CLASS, parent,
|
||||
// efl_text_set(efl_added, "Button Page"));
|
||||
page = elm_button_add(parent);
|
||||
evas_object_smart_callback_add(page, "clicked", _cb, NULL);
|
||||
efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
|
||||
break;
|
||||
|
||||
|
|
|
@ -120,6 +120,9 @@ _mouse_move_cb(void *data,
|
|||
if (efl_input_event_flags_get(ev) & EFL_INPUT_FLAGS_PROCESSED) return;
|
||||
if (!pd->mouse_move.active) return;
|
||||
|
||||
if (!efl_input_processed_get(ev))
|
||||
efl_input_processed_set(ev, EINA_TRUE);
|
||||
|
||||
pos = efl_input_pointer_position_get(ev);
|
||||
pos_y_diff = pd->mouse_move.mouse_start.x - pos.x;
|
||||
|
||||
|
|
Loading…
Reference in New Issue