forked from enlightenment/efl
add ungrab call for when butotn is down on object but u want to have it
ugrabbed to events/callback can proceed as per normal SVN revision: 3605
This commit is contained in:
parent
b67238cba1
commit
90a89420b2
|
@ -206,6 +206,7 @@ void evas_event_leave(Evas e);
|
||||||
int evas_pointer_in(Evas e);
|
int evas_pointer_in(Evas e);
|
||||||
void evas_pointer_pos(Evas e, int *x, int *y);
|
void evas_pointer_pos(Evas e, int *x, int *y);
|
||||||
int evas_pointer_buttons(Evas e);
|
int evas_pointer_buttons(Evas e);
|
||||||
|
void evas_pinter_ungrab(Evas e);
|
||||||
|
|
||||||
/* callbacks */
|
/* callbacks */
|
||||||
void evas_callback_add(Evas e, Evas_Object o, Evas_Callback_Type callback, void (*func) (void *_data, Evas _e, Evas_Object _o, int _b, int _x, int _y), void *data);
|
void evas_callback_add(Evas e, Evas_Object o, Evas_Callback_Type callback, void (*func) (void *_data, Evas _e, Evas_Object _o, int _b, int _x, int _y), void *data);
|
||||||
|
|
|
@ -202,3 +202,10 @@ evas_pointer_buttons(Evas e)
|
||||||
if (!e) return 0;
|
if (!e) return 0;
|
||||||
return e->mouse.buttons;
|
return e->mouse.buttons;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
evas_pinter_ungrab(Evas e)
|
||||||
|
{
|
||||||
|
e->mouse.buttons = 0;
|
||||||
|
e->mouse.button_object = NULL;
|
||||||
|
}
|
||||||
|
|
|
@ -68,7 +68,7 @@ static TextBlock texts[] =
|
||||||
{ 52.0, 54.0, 58.0, 60.0, "Yes ..."},
|
{ 52.0, 54.0, 58.0, 60.0, "Yes ..."},
|
||||||
{ 60.0, 64.0, 70.0, 74.0, "EVAS"}
|
{ 60.0, 64.0, 70.0, 74.0, "EVAS"}
|
||||||
};
|
};
|
||||||
static double texts_loop = 0;
|
static double texts_loop = 75;
|
||||||
|
|
||||||
/* functions */
|
/* functions */
|
||||||
double
|
double
|
||||||
|
|
Loading…
Reference in New Issue