Changeset View
Changeset View
Standalone View
Standalone View
src/lib/elementary/elm_pan_eo.h
- This file was added.
1 | #ifndef _ELM_PAN_EO_H_ | ||||
---|---|---|---|---|---|
2 | #define _ELM_PAN_EO_H_ | ||||
3 | | ||||
4 | #ifndef _ELM_PAN_EO_CLASS_TYPE | ||||
5 | #define _ELM_PAN_EO_CLASS_TYPE | ||||
6 | | ||||
7 | typedef Eo Elm_Pan; | ||||
8 | | ||||
9 | #endif | ||||
10 | | ||||
11 | #ifndef _ELM_PAN_EO_TYPES | ||||
12 | #define _ELM_PAN_EO_TYPES | ||||
13 | | ||||
14 | | ||||
15 | #endif | ||||
16 | /** Elementary pan class | ||||
17 | * | ||||
18 | * @ingroup Elm_Pan | ||||
19 | */ | ||||
20 | #define ELM_PAN_CLASS elm_pan_class_get() | ||||
21 | | ||||
22 | EWAPI const Efl_Class *elm_pan_class_get(void); | ||||
23 | | ||||
24 | /** | ||||
25 | * @brief Position | ||||
26 | * | ||||
27 | * @param[in] obj The object. | ||||
28 | * @param[in] x X coordinate | ||||
29 | * @param[in] y Y coordinate | ||||
30 | * | ||||
31 | * @ingroup Elm_Pan | ||||
32 | */ | ||||
33 | EOAPI void elm_obj_pan_pos_set(Eo *obj, int x, int y); | ||||
34 | | ||||
35 | /** | ||||
36 | * @brief Position | ||||
37 | * | ||||
38 | * @param[in] obj The object. | ||||
39 | * @param[out] x X coordinate | ||||
40 | * @param[out] y Y coordinate | ||||
41 | * | ||||
42 | * @ingroup Elm_Pan | ||||
43 | */ | ||||
44 | EOAPI void elm_obj_pan_pos_get(const Eo *obj, int *x, int *y); | ||||
45 | | ||||
46 | /** | ||||
47 | * @brief Content size | ||||
48 | * | ||||
49 | * @param[in] obj The object. | ||||
50 | * @param[out] w Width | ||||
51 | * @param[out] h Height | ||||
52 | * | ||||
53 | * @ingroup Elm_Pan | ||||
54 | */ | ||||
55 | EOAPI void elm_obj_pan_content_size_get(const Eo *obj, int *w, int *h); | ||||
56 | | ||||
57 | /** | ||||
58 | * @brief Minimal position | ||||
59 | * | ||||
60 | * @param[in] obj The object. | ||||
61 | * @param[out] x X coordinate | ||||
62 | * @param[out] y Y coordinate | ||||
63 | * | ||||
64 | * @ingroup Elm_Pan | ||||
65 | */ | ||||
66 | EOAPI void elm_obj_pan_pos_min_get(const Eo *obj, int *x, int *y); | ||||
67 | | ||||
68 | /** | ||||
69 | * @brief Maximal position | ||||
70 | * | ||||
71 | * @param[in] obj The object. | ||||
72 | * @param[out] x X coordinate | ||||
73 | * @param[out] y Y coordinate | ||||
74 | * | ||||
75 | * @ingroup Elm_Pan | ||||
76 | */ | ||||
77 | EOAPI void elm_obj_pan_pos_max_get(const Eo *obj, int *x, int *y); | ||||
78 | | ||||
79 | EWAPI extern const Efl_Event_Description _ELM_PAN_EVENT_CHANGED; | ||||
80 | | ||||
81 | /** Called when pan object changed | ||||
82 | * | ||||
83 | * @ingroup Elm_Pan | ||||
84 | */ | ||||
85 | #define ELM_PAN_EVENT_CHANGED (&(_ELM_PAN_EVENT_CHANGED)) | ||||
86 | | ||||
87 | #endif |