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:
Carsten Haitzler 2000-10-14 03:41:11 +00:00
parent b67238cba1
commit 90a89420b2
3 changed files with 10 additions and 2 deletions

View File

@ -206,7 +206,8 @@ void evas_event_leave(Evas e);
int evas_pointer_in(Evas e);
void evas_pointer_pos(Evas e, int *x, int *y);
int evas_pointer_buttons(Evas e);
void evas_pinter_ungrab(Evas e);
/* 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_del(Evas e, Evas_Object o, Evas_Callback_Type callback);

View File

@ -202,3 +202,10 @@ evas_pointer_buttons(Evas e)
if (!e) return 0;
return e->mouse.buttons;
}
void
evas_pinter_ungrab(Evas e)
{
e->mouse.buttons = 0;
e->mouse.button_object = NULL;
}

View File

@ -68,7 +68,7 @@ static TextBlock texts[] =
{ 52.0, 54.0, 58.0, 60.0, "Yes ..."},
{ 60.0, 64.0, 70.0, 74.0, "EVAS"}
};
static double texts_loop = 0;
static double texts_loop = 75;
/* functions */
double