2005-04-24 20:06:06 -07:00
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
|
|
|
|
typedef enum _E_Binding_Context
|
|
|
|
{
|
2005-04-24 22:58:45 -07:00
|
|
|
E_BINDING_CONTEXT_NONE,
|
2005-04-26 08:06:06 -07:00
|
|
|
E_BINDING_CONTEXT_UNKNOWN,
|
2012-06-08 03:10:16 -07:00
|
|
|
E_BINDING_CONTEXT_WINDOW,
|
2005-04-26 08:06:06 -07:00
|
|
|
E_BINDING_CONTEXT_ZONE,
|
compositor rewrite / charlie-foxtrot situation
huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once.
* compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine.
** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes
** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects
** protocol-specific window management and compositor functionality is now kept exclusively in backend files
** e_pixmap api provides generic client finding and rendering api
** screen/xinerama screens are now provided directly by compositor on startup and re-set on change
** e_comp_render_update finally replaced with eina_tiler
** wayland compositor no longer creates X windows
** compositor e_layout removed entirely
* e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra
* e_manager is just for screensaver and keybind stuff now, possibly remove later?
* e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor
** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed.
*** do NOT set interceptors on a client's comp_object. seriously.
* startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor
* ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get
* e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas
* deskmirror is (more) broken for now
* illume is totally fucked
* Ecore_X_Window replaced with Ecore_Window in most cases
* edge binding XWindows replaced with regular canvas objects
* some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result
comp files and descriptions:
e_comp.c - overall compositor functions, rendering/update loop, shape cutting
e_comp_x.c - X window management and compositor functionality
e_comp_wl.c - Wayland surface management and compositor functionality
e_comp_canvas.c - general compositor canvas functions and utilities
e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems
additional authors: ivan.briano@intel.com
feature: new compositor
removal: e_border, e_container, e_popup
2014-01-14 17:19:12 -08:00
|
|
|
E_BINDING_CONTEXT_COMPOSITOR,
|
2005-04-29 12:42:19 -07:00
|
|
|
E_BINDING_CONTEXT_MANAGER,
|
2005-06-11 23:50:34 -07:00
|
|
|
E_BINDING_CONTEXT_MENU,
|
|
|
|
E_BINDING_CONTEXT_WINLIST,
|
2005-09-22 05:47:45 -07:00
|
|
|
E_BINDING_CONTEXT_POPUP,
|
2015-12-21 09:46:44 -08:00
|
|
|
E_BINDING_CONTEXT_ANY,
|
|
|
|
E_BINDING_CONTEXT_LAST,
|
2005-04-24 20:06:06 -07:00
|
|
|
} E_Binding_Context;
|
|
|
|
|
2005-04-25 01:29:53 -07:00
|
|
|
/* why do we do this? config stored bindings must be fixed. x's modifier masks
|
2010-09-08 16:59:07 -07:00
|
|
|
* may change from time to time, xserver to xserver - so we can't do a
|
2005-04-25 01:29:53 -07:00
|
|
|
* simple match without translating to fixed values
|
|
|
|
*/
|
|
|
|
typedef enum _E_Binding_Modifier
|
|
|
|
{
|
2005-05-17 22:06:05 -07:00
|
|
|
E_BINDING_MODIFIER_NONE = 0,
|
2005-04-25 01:29:53 -07:00
|
|
|
E_BINDING_MODIFIER_SHIFT = (1 << 0),
|
|
|
|
E_BINDING_MODIFIER_CTRL = (1 << 1),
|
|
|
|
E_BINDING_MODIFIER_ALT = (1 << 2),
|
2013-02-07 05:20:07 -08:00
|
|
|
E_BINDING_MODIFIER_WIN = (1 << 3),
|
|
|
|
E_BINDING_MODIFIER_ALTGR = (1 << 4)
|
2005-04-25 01:29:53 -07:00
|
|
|
} E_Binding_Modifier;
|
|
|
|
|
2005-05-20 03:14:51 -07:00
|
|
|
typedef struct _E_Binding_Mouse E_Binding_Mouse;
|
|
|
|
typedef struct _E_Binding_Key E_Binding_Key;
|
2009-02-25 14:21:46 -08:00
|
|
|
typedef struct _E_Binding_Edge E_Binding_Edge;
|
2005-05-20 03:14:51 -07:00
|
|
|
typedef struct _E_Binding_Signal E_Binding_Signal;
|
2005-09-22 05:47:45 -07:00
|
|
|
typedef struct _E_Binding_Wheel E_Binding_Wheel;
|
2010-05-29 12:57:13 -07:00
|
|
|
typedef struct _E_Binding_Acpi E_Binding_Acpi;
|
Introduce gesture recognition
This is currently using libinputs gesture recognition. And offers a
config screen to setup new gestures.
1. No default gesture bindings are setup
2. When libinput is not available the module is not going to be loaded,
and nothing is recognited.+
3. Only swipe gestures are recognized yet.
4. For now, you are required to be part of the input group, otherwise we cannot
get the libinput events. (See Todo 1)
5. The visual representation is not really good. In terms of UI, it is
visually showing a value coming from left to right, which is
indicating a direction, which is not always the direction of the
gesture, which is kind of bad. More improvements needed here.
Some things that still can be done:
1. The whole libinput things should be handled by elput, either with the
input group hack, or logind, or simply by root. The ideal idea would
be that e_sys is creating the elput context, which also listens for new
devices etc.. When all this is done, and it recognizes a new device, it
can simply sent a message from e_sys to e, that there is some new
device, with a opened fd. (However, this all needs to be locked up in a
way that e_sys cannot be abused)
2020-07-02 03:18:42 -07:00
|
|
|
typedef struct _E_Binding_Swipe E_Binding_Swipe;
|
2005-05-20 03:14:51 -07:00
|
|
|
|
2013-02-07 05:20:07 -08:00
|
|
|
typedef struct E_Binding_Event_Mouse_Button E_Binding_Event_Mouse_Button;
|
|
|
|
typedef struct E_Binding_Event_Wheel E_Binding_Event_Wheel;
|
|
|
|
|
2005-04-24 20:06:06 -07:00
|
|
|
#else
|
|
|
|
#ifndef E_BINDINGS_H
|
|
|
|
#define E_BINDINGS_H
|
|
|
|
|
2013-02-07 05:20:07 -08:00
|
|
|
struct E_Binding_Event_Mouse_Button
|
|
|
|
{
|
|
|
|
int button; /**< Mouse button number that was raised (1 - 32) */
|
|
|
|
|
|
|
|
Evas_Coord_Point canvas; /**< The X/Y location of the cursor */
|
|
|
|
|
|
|
|
unsigned int modifiers; /**< modifier keys pressed during the event */
|
|
|
|
unsigned int timestamp;
|
2017-11-06 09:46:08 -08:00
|
|
|
Eina_Bool double_click E_BITFIELD;
|
|
|
|
Eina_Bool triple_click E_BITFIELD;
|
|
|
|
Eina_Bool hold E_BITFIELD;
|
|
|
|
Eina_Bool scroll E_BITFIELD;
|
2013-02-07 05:20:07 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct E_Binding_Event_Wheel
|
|
|
|
{
|
|
|
|
int direction;
|
|
|
|
int z;
|
|
|
|
|
|
|
|
Evas_Coord_Point canvas; /**< The X/Y location of the cursor */
|
|
|
|
|
|
|
|
unsigned int modifiers; /**< modifier keys pressed during the event */
|
|
|
|
unsigned int timestamp;
|
|
|
|
};
|
|
|
|
|
2005-05-20 03:14:51 -07:00
|
|
|
struct _E_Binding_Mouse
|
|
|
|
{
|
|
|
|
E_Binding_Context ctxt;
|
|
|
|
int button;
|
|
|
|
E_Binding_Modifier mod;
|
2017-11-06 09:46:08 -08:00
|
|
|
unsigned char any_mod E_BITFIELD;
|
2006-03-02 04:03:48 -08:00
|
|
|
const char *action;
|
|
|
|
const char *params;
|
2005-05-20 03:14:51 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _E_Binding_Key
|
|
|
|
{
|
|
|
|
E_Binding_Context ctxt;
|
2006-03-02 04:03:48 -08:00
|
|
|
const char *key;
|
2005-05-20 03:14:51 -07:00
|
|
|
E_Binding_Modifier mod;
|
2017-11-06 09:46:08 -08:00
|
|
|
unsigned char any_mod E_BITFIELD;
|
2006-03-02 04:03:48 -08:00
|
|
|
const char *action;
|
|
|
|
const char *params;
|
2005-05-20 03:14:51 -07:00
|
|
|
};
|
|
|
|
|
2009-02-25 14:21:46 -08:00
|
|
|
struct _E_Binding_Edge
|
|
|
|
{
|
|
|
|
E_Binding_Context ctxt;
|
|
|
|
E_Zone_Edge edge;
|
|
|
|
E_Binding_Modifier mod;
|
|
|
|
const char *action;
|
|
|
|
const char *params;
|
|
|
|
|
|
|
|
float delay;
|
|
|
|
Ecore_Timer *timer;
|
2017-11-06 09:46:08 -08:00
|
|
|
Eina_Bool any_mod E_BITFIELD;
|
|
|
|
Eina_Bool drag_only E_BITFIELD;
|
2009-02-25 14:21:46 -08:00
|
|
|
};
|
|
|
|
|
2005-05-20 03:14:51 -07:00
|
|
|
struct _E_Binding_Signal
|
|
|
|
{
|
|
|
|
E_Binding_Context ctxt;
|
2006-03-02 04:03:48 -08:00
|
|
|
const char *sig;
|
|
|
|
const char *src;
|
2005-09-22 05:47:45 -07:00
|
|
|
E_Binding_Modifier mod;
|
2017-11-06 09:46:08 -08:00
|
|
|
unsigned char any_mod E_BITFIELD;
|
2006-03-02 04:03:48 -08:00
|
|
|
const char *action;
|
|
|
|
const char *params;
|
2005-09-22 05:47:45 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _E_Binding_Wheel
|
|
|
|
{
|
|
|
|
E_Binding_Context ctxt;
|
|
|
|
int direction;
|
|
|
|
int z;
|
|
|
|
E_Binding_Modifier mod;
|
2017-11-06 09:46:08 -08:00
|
|
|
unsigned char any_mod E_BITFIELD;
|
2006-03-02 04:03:48 -08:00
|
|
|
const char *action;
|
|
|
|
const char *params;
|
2005-05-20 03:14:51 -07:00
|
|
|
};
|
|
|
|
|
2012-06-20 23:19:43 -07:00
|
|
|
struct _E_Binding_Acpi
|
2010-05-29 12:57:13 -07:00
|
|
|
{
|
|
|
|
E_Binding_Context ctxt;
|
|
|
|
int type, status;
|
|
|
|
const char *action, *params;
|
|
|
|
};
|
|
|
|
|
Introduce gesture recognition
This is currently using libinputs gesture recognition. And offers a
config screen to setup new gestures.
1. No default gesture bindings are setup
2. When libinput is not available the module is not going to be loaded,
and nothing is recognited.+
3. Only swipe gestures are recognized yet.
4. For now, you are required to be part of the input group, otherwise we cannot
get the libinput events. (See Todo 1)
5. The visual representation is not really good. In terms of UI, it is
visually showing a value coming from left to right, which is
indicating a direction, which is not always the direction of the
gesture, which is kind of bad. More improvements needed here.
Some things that still can be done:
1. The whole libinput things should be handled by elput, either with the
input group hack, or logind, or simply by root. The ideal idea would
be that e_sys is creating the elput context, which also listens for new
devices etc.. When all this is done, and it recognizes a new device, it
can simply sent a message from e_sys to e, that there is some new
device, with a opened fd. (However, this all needs to be locked up in a
way that e_sys cannot be abused)
2020-07-02 03:18:42 -07:00
|
|
|
struct _E_Binding_Swipe
|
|
|
|
{
|
|
|
|
E_Binding_Context ctxt;
|
|
|
|
double direction, length, error;
|
|
|
|
unsigned int fingers;
|
|
|
|
const char *action, *params;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2010-11-22 07:21:32 -08:00
|
|
|
EINTERN int e_bindings_init(void);
|
|
|
|
EINTERN int e_bindings_shutdown(void);
|
2005-04-24 20:06:06 -07:00
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void e_bindings_mouse_reset(void);
|
|
|
|
E_API void e_bindings_key_reset(void);
|
|
|
|
E_API void e_bindings_wheel_reset(void);
|
|
|
|
E_API void e_bindings_edge_reset(void);
|
|
|
|
E_API void e_bindings_signal_reset(void);
|
Introduce gesture recognition
This is currently using libinputs gesture recognition. And offers a
config screen to setup new gestures.
1. No default gesture bindings are setup
2. When libinput is not available the module is not going to be loaded,
and nothing is recognited.+
3. Only swipe gestures are recognized yet.
4. For now, you are required to be part of the input group, otherwise we cannot
get the libinput events. (See Todo 1)
5. The visual representation is not really good. In terms of UI, it is
visually showing a value coming from left to right, which is
indicating a direction, which is not always the direction of the
gesture, which is kind of bad. More improvements needed here.
Some things that still can be done:
1. The whole libinput things should be handled by elput, either with the
input group hack, or logind, or simply by root. The ideal idea would
be that e_sys is creating the elput context, which also listens for new
devices etc.. When all this is done, and it recognizes a new device, it
can simply sent a message from e_sys to e, that there is some new
device, with a opened fd. (However, this all needs to be locked up in a
way that e_sys cannot be abused)
2020-07-02 03:18:42 -07:00
|
|
|
E_API void e_bindings_swipe_reset(void);
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API void e_bindings_reset(void);
|
|
|
|
|
|
|
|
E_API void e_bindings_mouse_add(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
|
|
|
|
E_API void e_bindings_mouse_del(E_Binding_Context ctxt, int button, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
|
|
|
|
E_API void e_bindings_mouse_grab(E_Binding_Context ctxt, Ecore_X_Window win);
|
|
|
|
E_API void e_bindings_mouse_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
|
|
|
|
E_API E_Action *e_bindings_mouse_button_find(E_Binding_Context ctxt, E_Binding_Event_Mouse_Button *ev, E_Binding_Mouse **bind_ret);
|
|
|
|
E_API E_Action *e_bindings_mouse_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev);
|
|
|
|
E_API E_Action *e_bindings_mouse_down_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Down *ev);
|
|
|
|
E_API E_Action *e_bindings_mouse_down_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev);
|
|
|
|
E_API E_Action *e_bindings_mouse_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Mouse_Button *ev);
|
|
|
|
E_API E_Action *e_bindings_mouse_up_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Up *ev);
|
|
|
|
E_API E_Action *e_bindings_mouse_up_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Button *ev);
|
2018-02-22 13:16:38 -08:00
|
|
|
E_API char *e_bindings_mouse_action_modifiers_text_generate(E_Binding_Context ctxt, const char *action, unsigned int *modifiers, unsigned int *button);
|
2015-05-07 12:13:10 -07:00
|
|
|
|
|
|
|
E_API void e_bindings_key_add(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
|
|
|
|
E_API void e_bindings_key_del(E_Binding_Context ctxt, const char *key, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
|
|
|
|
E_API E_Binding_Key *e_bindings_key_get(const char *action);
|
|
|
|
E_API E_Binding_Key *e_bindings_key_find(const char *key, E_Binding_Modifier mod, int any_mod);
|
|
|
|
E_API void e_bindings_key_grab(E_Binding_Context ctxt, Ecore_X_Window win);
|
|
|
|
E_API void e_bindings_key_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
|
|
|
|
E_API E_Action *e_bindings_key_down_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev);
|
|
|
|
E_API E_Action *e_bindings_key_up_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Key *ev);
|
2016-01-25 09:38:45 -08:00
|
|
|
E_API E_Action *e_bindings_key_event_find(E_Binding_Context ctxt, Ecore_Event_Key *ev, E_Binding_Key **bind_ret);
|
2015-05-07 12:13:10 -07:00
|
|
|
|
|
|
|
E_API Eina_Bool e_bindings_key_allowed(const char *key);
|
|
|
|
|
|
|
|
E_API void e_bindings_edge_add(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_only, E_Binding_Modifier mod, int any_mod, const char *action, const char *params, float delay);
|
|
|
|
E_API Eina_Bool e_bindings_edge_flippable_get(E_Zone_Edge edge);
|
|
|
|
E_API Eina_Bool e_bindings_edge_non_flippable_get(E_Zone_Edge edge);
|
2016-01-25 09:51:56 -08:00
|
|
|
E_API E_Action *e_bindings_edge_event_find(E_Binding_Context ctxt, E_Event_Zone_Edge *ev, Eina_Bool click, E_Binding_Edge **bind_ret);
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API E_Binding_Edge *e_bindings_edge_get(const char *action, E_Zone_Edge edge, int click);
|
|
|
|
E_API void e_bindings_edge_del(E_Binding_Context ctxt, E_Zone_Edge edge, Eina_Bool drag_only, E_Binding_Modifier mod, int any_mod, const char *action, const char *params, float delay);
|
|
|
|
E_API E_Action *e_bindings_edge_in_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
|
|
|
|
E_API E_Action *e_bindings_edge_out_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
|
|
|
|
E_API E_Action *e_bindings_edge_down_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
|
|
|
|
E_API E_Action *e_bindings_edge_up_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Zone_Edge *ev);
|
|
|
|
|
|
|
|
E_API void e_bindings_signal_add(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
|
|
|
|
E_API void e_bindings_signal_del(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
|
|
|
|
E_API E_Action *e_bindings_signal_find(E_Binding_Context ctxt, const char *sig, const char *src, E_Binding_Signal **bind_ret);
|
|
|
|
E_API E_Action *e_bindings_signal_handle(E_Binding_Context ctxt, E_Object *obj, const char *sig, const char *src);
|
|
|
|
|
|
|
|
E_API void e_bindings_wheel_add(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
|
|
|
|
E_API void e_bindings_wheel_del(E_Binding_Context ctxt, int direction, int z, E_Binding_Modifier mod, int any_mod, const char *action, const char *params);
|
|
|
|
E_API void e_bindings_wheel_grab(E_Binding_Context ctxt, Ecore_X_Window win);
|
|
|
|
E_API void e_bindings_wheel_ungrab(E_Binding_Context ctxt, Ecore_X_Window win);
|
|
|
|
E_API E_Action *e_bindings_wheel_find(E_Binding_Context ctxt, E_Binding_Event_Wheel *ev, E_Binding_Wheel **bind_ret);
|
|
|
|
E_API E_Action *e_bindings_wheel_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Binding_Event_Wheel *ev);
|
|
|
|
E_API E_Action *e_bindings_wheel_evas_event_handle(E_Binding_Context ctxt, E_Object *obj, Evas_Event_Mouse_Wheel *ev);
|
|
|
|
E_API E_Action *e_bindings_wheel_ecore_event_handle(E_Binding_Context ctxt, E_Object *obj, Ecore_Event_Mouse_Wheel *ev);
|
|
|
|
|
|
|
|
E_API void e_bindings_acpi_add(E_Binding_Context ctxt, int type, int status, const char *action, const char *params);
|
|
|
|
E_API void e_bindings_acpi_del(E_Binding_Context ctxt, int type, int status, const char *action, const char *params);
|
|
|
|
E_API E_Action *e_bindings_acpi_find(E_Binding_Context ctxt, E_Event_Acpi *ev, E_Binding_Acpi **bind_ret);
|
|
|
|
E_API E_Action *e_bindings_acpi_event_handle(E_Binding_Context ctxt, E_Object *obj, E_Event_Acpi *ev);
|
|
|
|
|
Introduce gesture recognition
This is currently using libinputs gesture recognition. And offers a
config screen to setup new gestures.
1. No default gesture bindings are setup
2. When libinput is not available the module is not going to be loaded,
and nothing is recognited.+
3. Only swipe gestures are recognized yet.
4. For now, you are required to be part of the input group, otherwise we cannot
get the libinput events. (See Todo 1)
5. The visual representation is not really good. In terms of UI, it is
visually showing a value coming from left to right, which is
indicating a direction, which is not always the direction of the
gesture, which is kind of bad. More improvements needed here.
Some things that still can be done:
1. The whole libinput things should be handled by elput, either with the
input group hack, or logind, or simply by root. The ideal idea would
be that e_sys is creating the elput context, which also listens for new
devices etc.. When all this is done, and it recognizes a new device, it
can simply sent a message from e_sys to e, that there is some new
device, with a opened fd. (However, this all needs to be locked up in a
way that e_sys cannot be abused)
2020-07-02 03:18:42 -07:00
|
|
|
typedef struct {
|
|
|
|
const char *name;
|
|
|
|
double acceptance; //0 to 1
|
|
|
|
} E_Binding_Swipe_Candidate;
|
|
|
|
|
|
|
|
typedef void (*E_Bindings_Swipe_Live_Update)(void *data, Eina_Bool end, double direction, double length, double error, unsigned int fingers);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Direction is in radiens, 0 is pointing to the right. Going clockwise. (Only positive range)
|
|
|
|
*/
|
|
|
|
E_API Eina_Bool e_bindings_swipe_available(void);
|
|
|
|
E_API void e_bindings_swipe_add(E_Binding_Context ctxt, double direction, double length, unsigned int fingers, double error, const char *action, const char *params);
|
|
|
|
E_API void e_bindings_swipe_del(E_Binding_Context ctxt, double direction, double length, unsigned int fingers, double error, const char *action, const char *params);
|
|
|
|
E_API E_Action* e_bindings_swipe_handle(E_Binding_Context ctxt, E_Object *obj, double direction, double length, unsigned int fingers);
|
|
|
|
E_API Eina_Inarray/*<E_Bindings_Swipe_Candidate>*/* e_bindings_swipe_find_candidates(E_Binding_Context ctxt, double direction, double lenght, unsigned int fingers);
|
|
|
|
E_API void e_bindings_swipe_live_update_hook_set(E_Bindings_Swipe_Live_Update update, void *data);
|
|
|
|
E_API E_Bindings_Swipe_Live_Update e_bindings_swipe_live_update_hook_get(void);
|
|
|
|
E_API void* e_bindings_swipe_live_update_hook_data_get(void);
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int e_bindings_evas_modifiers_convert(Evas_Modifier *modifiers);
|
|
|
|
E_API int e_bindings_modifiers_to_ecore_convert(E_Binding_Modifier modifiers);
|
|
|
|
E_API void e_bindings_evas_event_mouse_button_convert(const Evas_Event_Mouse_Down *ev, E_Binding_Event_Mouse_Button *event);
|
|
|
|
E_API void e_bindings_evas_event_mouse_wheel_convert(const Evas_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event);
|
|
|
|
E_API void e_bindings_ecore_event_mouse_button_convert(const Ecore_Event_Mouse_Button *ev, E_Binding_Event_Mouse_Button *event);
|
|
|
|
E_API void e_bindings_ecore_event_mouse_wheel_convert(const Ecore_Event_Mouse_Wheel *ev, E_Binding_Event_Wheel *event);
|
2013-02-07 05:20:07 -08:00
|
|
|
|
2017-08-04 13:23:39 -07:00
|
|
|
E_API int e_bindings_context_match(E_Binding_Context bctxt, E_Binding_Context ctxt);
|
2017-09-21 10:31:04 -07:00
|
|
|
E_API E_Binding_Modifier e_bindings_modifiers_from_ecore(unsigned int modifiers);
|
2016-01-22 09:41:43 -08:00
|
|
|
|
|
|
|
E_API void e_bindings_disabled_set(Eina_Bool disabled);
|
2005-04-24 20:06:06 -07:00
|
|
|
#endif
|
|
|
|
#endif
|