forked from enlightenment/enlightenment
parent
e793c4d769
commit
a0c418c132
|
@ -1,8 +1,8 @@
|
||||||
#ifdef E_TYPEDEFS
|
#ifdef E_TYPEDEFS
|
||||||
|
|
||||||
typedef struct _E_Action E_Action;
|
typedef struct _E_Action E_Action;
|
||||||
typedef struct _E_Action_Description E_Action_Description;
|
typedef struct _E_Action_Description E_Action_Description;
|
||||||
typedef struct _E_Action_Group E_Action_Group;
|
typedef struct _E_Action_Group E_Action_Group;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#ifndef E_ACTIONS_H
|
#ifndef E_ACTIONS_H
|
||||||
|
@ -12,22 +12,22 @@ typedef struct _E_Action_Group E_Action_Group;
|
||||||
|
|
||||||
struct _E_Action
|
struct _E_Action
|
||||||
{
|
{
|
||||||
E_Object e_obj_inherit;
|
E_Object e_obj_inherit;
|
||||||
|
|
||||||
const char *name;
|
const char *name;
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
void (*go) (E_Object *obj, const char *params);
|
void (*go)(E_Object *obj, const char *params);
|
||||||
void (*go_mouse) (E_Object *obj, const char *params, Ecore_Event_Mouse_Button *ev);
|
void (*go_mouse)(E_Object *obj, const char *params, Ecore_Event_Mouse_Button *ev);
|
||||||
void (*go_wheel) (E_Object *obj, const char *params, Ecore_Event_Mouse_Wheel *ev);
|
void (*go_wheel)(E_Object *obj, const char *params, Ecore_Event_Mouse_Wheel *ev);
|
||||||
void (*go_edge) (E_Object *obj, const char *params, E_Event_Zone_Edge *ev);
|
void (*go_edge)(E_Object *obj, const char *params, E_Event_Zone_Edge *ev);
|
||||||
void (*go_key) (E_Object *obj, const char *params, Ecore_Event_Key *ev);
|
void (*go_key)(E_Object *obj, const char *params, Ecore_Event_Key *ev);
|
||||||
void (*go_signal) (E_Object *obj, const char *params, const char *sig, const char *src);
|
void (*go_signal)(E_Object *obj, const char *params, const char *sig, const char *src);
|
||||||
void (*go_acpi) (E_Object *obj, const char *params, E_Event_Acpi *ev);
|
void (*go_acpi)(E_Object *obj, const char *params, E_Event_Acpi *ev);
|
||||||
void (*end) (E_Object *obj, const char *params);
|
void (*end)(E_Object *obj, const char *params);
|
||||||
void (*end_mouse) (E_Object *obj, const char *params, Ecore_Event_Mouse_Button *ev);
|
void (*end_mouse)(E_Object *obj, const char *params, Ecore_Event_Mouse_Button *ev);
|
||||||
void (*end_key) (E_Object *obj, const char *params, Ecore_Event_Key *ev);
|
void (*end_key)(E_Object *obj, const char *params, Ecore_Event_Key *ev);
|
||||||
} func;
|
} func;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _E_Action_Description
|
struct _E_Action_Description
|
||||||
|
@ -36,28 +36,28 @@ struct _E_Action_Description
|
||||||
const char *act_cmd;
|
const char *act_cmd;
|
||||||
const char *act_params;
|
const char *act_params;
|
||||||
const char *param_example;
|
const char *param_example;
|
||||||
int editable;
|
int editable;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _E_Action_Group
|
struct _E_Action_Group
|
||||||
{
|
{
|
||||||
const char *act_grp;
|
const char *act_grp;
|
||||||
Eina_List *acts;
|
Eina_List *acts;
|
||||||
};
|
};
|
||||||
|
|
||||||
EINTERN int e_actions_init(void);
|
EINTERN int e_actions_init(void);
|
||||||
EINTERN int e_actions_shutdown(void);
|
EINTERN int e_actions_shutdown(void);
|
||||||
|
|
||||||
EAPI Eina_List *e_action_name_list(void);
|
EAPI Eina_List *e_action_name_list(void);
|
||||||
EAPI E_Action *e_action_add(const char *name);
|
EAPI E_Action *e_action_add(const char *name);
|
||||||
/* e_action_del allows, for example, modules to define their own actions dynamically. */
|
/* e_action_del allows, for example, modules to define their own actions dynamically. */
|
||||||
EAPI void e_action_del(const char *name);
|
EAPI void e_action_del(const char *name);
|
||||||
EAPI E_Action *e_action_find(const char *name);
|
EAPI E_Action *e_action_find(const char *name);
|
||||||
|
|
||||||
EAPI const char *e_action_predef_label_get(const char *action, const char *params);
|
EAPI const char *e_action_predef_label_get(const char *action, const char *params);
|
||||||
EAPI void e_action_predef_name_set(const char *act_grp, const char *act_name, const char *act_cmd, const char *act_params, const char *param_example, int editable);
|
EAPI void e_action_predef_name_set(const char *act_grp, const char *act_name, const char *act_cmd, const char *act_params, const char *param_example, int editable);
|
||||||
EAPI void e_action_predef_name_del(const char *act_grp, const char *act_name);
|
EAPI void e_action_predef_name_del(const char *act_grp, const char *act_name);
|
||||||
EAPI void e_action_predef_name_all_del(void);
|
EAPI void e_action_predef_name_all_del(void);
|
||||||
EAPI Eina_List *e_action_groups_get(void);
|
EAPI Eina_List *e_action_groups_get(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue