Changeset View
Changeset View
Standalone View
Standalone View
src/lib/elementary/elm_pan_eo.c
- This file was added.
1 | EWAPI const Efl_Event_Description _ELM_PAN_EVENT_CHANGED = | ||||
---|---|---|---|---|---|
2 | EFL_EVENT_DESCRIPTION("changed"); | ||||
3 | | ||||
4 | void _elm_pan_pos_set(Eo *obj, Elm_Pan_Smart_Data *pd, int x, int y); | ||||
5 | | ||||
6 | EOAPI EFL_VOID_FUNC_BODYV(elm_obj_pan_pos_set, EFL_FUNC_CALL(x, y), int x, int y); | ||||
7 | | ||||
8 | void _elm_pan_pos_get(const Eo *obj, Elm_Pan_Smart_Data *pd, int *x, int *y); | ||||
9 | | ||||
10 | EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_pan_pos_get, EFL_FUNC_CALL(x, y), int *x, int *y); | ||||
11 | | ||||
12 | void _elm_pan_content_size_get(const Eo *obj, Elm_Pan_Smart_Data *pd, int *w, int *h); | ||||
13 | | ||||
14 | EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_pan_content_size_get, EFL_FUNC_CALL(w, h), int *w, int *h); | ||||
15 | | ||||
16 | void _elm_pan_pos_min_get(const Eo *obj, Elm_Pan_Smart_Data *pd, int *x, int *y); | ||||
17 | | ||||
18 | EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_pan_pos_min_get, EFL_FUNC_CALL(x, y), int *x, int *y); | ||||
19 | | ||||
20 | void _elm_pan_pos_max_get(const Eo *obj, Elm_Pan_Smart_Data *pd, int *x, int *y); | ||||
21 | | ||||
22 | EOAPI EFL_VOID_FUNC_BODYV_CONST(elm_obj_pan_pos_max_get, EFL_FUNC_CALL(x, y), int *x, int *y); | ||||
23 | | ||||
24 | Efl_Object *_elm_pan_efl_object_constructor(Eo *obj, Elm_Pan_Smart_Data *pd); | ||||
25 | | ||||
26 | | ||||
27 | void _elm_pan_efl_gfx_entity_visible_set(Eo *obj, Elm_Pan_Smart_Data *pd, Eina_Bool v); | ||||
28 | | ||||
29 | | ||||
30 | void _elm_pan_efl_gfx_entity_position_set(Eo *obj, Elm_Pan_Smart_Data *pd, Eina_Position2D pos); | ||||
31 | | ||||
32 | | ||||
33 | void _elm_pan_efl_gfx_entity_size_set(Eo *obj, Elm_Pan_Smart_Data *pd, Eina_Size2D size); | ||||
34 | | ||||
35 | | ||||
36 | static Eina_Bool | ||||
37 | _elm_pan_class_initializer(Efl_Class *klass) | ||||
38 | { | ||||
39 | const Efl_Object_Ops *opsp = NULL; | ||||
40 | | ||||
41 | const Efl_Object_Property_Reflection_Ops *ropsp = NULL; | ||||
42 | | ||||
43 | #ifndef ELM_PAN_EXTRA_OPS | ||||
44 | #define ELM_PAN_EXTRA_OPS | ||||
45 | #endif | ||||
46 | | ||||
47 | EFL_OPS_DEFINE(ops, | ||||
48 | EFL_OBJECT_OP_FUNC(elm_obj_pan_pos_set, _elm_pan_pos_set), | ||||
49 | EFL_OBJECT_OP_FUNC(elm_obj_pan_pos_get, _elm_pan_pos_get), | ||||
50 | EFL_OBJECT_OP_FUNC(elm_obj_pan_content_size_get, _elm_pan_content_size_get), | ||||
51 | EFL_OBJECT_OP_FUNC(elm_obj_pan_pos_min_get, _elm_pan_pos_min_get), | ||||
52 | EFL_OBJECT_OP_FUNC(elm_obj_pan_pos_max_get, _elm_pan_pos_max_get), | ||||
53 | EFL_OBJECT_OP_FUNC(efl_constructor, _elm_pan_efl_object_constructor), | ||||
54 | EFL_OBJECT_OP_FUNC(efl_gfx_entity_visible_set, _elm_pan_efl_gfx_entity_visible_set), | ||||
55 | EFL_OBJECT_OP_FUNC(efl_gfx_entity_position_set, _elm_pan_efl_gfx_entity_position_set), | ||||
56 | EFL_OBJECT_OP_FUNC(efl_gfx_entity_size_set, _elm_pan_efl_gfx_entity_size_set), | ||||
57 | ELM_PAN_EXTRA_OPS | ||||
58 | ); | ||||
59 | opsp = &ops; | ||||
60 | | ||||
61 | return efl_class_functions_set(klass, opsp, ropsp); | ||||
62 | } | ||||
63 | | ||||
64 | static const Efl_Class_Description _elm_pan_class_desc = { | ||||
65 | EO_VERSION, | ||||
66 | "Elm.Pan", | ||||
67 | EFL_CLASS_TYPE_REGULAR, | ||||
68 | sizeof(Elm_Pan_Smart_Data), | ||||
69 | _elm_pan_class_initializer, | ||||
70 | _elm_pan_class_constructor, | ||||
71 | NULL | ||||
72 | }; | ||||
73 | | ||||
74 | EFL_DEFINE_CLASS(elm_pan_class_get, &_elm_pan_class_desc, EFL_CANVAS_GROUP_CLASS, NULL); | ||||
75 | | ||||
76 | #include "elm_pan_eo.legacy.c" |