summaryrefslogtreecommitdiff
path: root/src/lib/elm_mapbuf_eo.h
blob: 3107d6fa0bbf376494f68cbbf60727c6e9e71f8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/**
 * @ingroup Mapbuf
 *
 * @{
 */
#define ELM_OBJ_MAPBUF_CLASS elm_obj_mapbuf_class_get()

const Eo_Class *elm_obj_mapbuf_class_get(void) EINA_CONST;

extern EAPI Eo_Op ELM_OBJ_MAPBUF_BASE_ID;

enum
{
   ELM_OBJ_MAPBUF_SUB_ID_ENABLED_SET,
   ELM_OBJ_MAPBUF_SUB_ID_ENABLED_GET,
   ELM_OBJ_MAPBUF_SUB_ID_SMOOTH_SET,
   ELM_OBJ_MAPBUF_SUB_ID_SMOOTH_GET,
   ELM_OBJ_MAPBUF_SUB_ID_ALPHA_SET,
   ELM_OBJ_MAPBUF_SUB_ID_ALPHA_GET,
   ELM_OBJ_MAPBUF_SUB_ID_AUTO_SET,
   ELM_OBJ_MAPBUF_SUB_ID_AUTO_GET,
   ELM_OBJ_MAPBUF_SUB_ID_POINT_COLOR_SET,
   ELM_OBJ_MAPBUF_SUB_ID_POINT_COLOR_GET,
   ELM_OBJ_MAPBUF_SUB_ID_LAST
};

#define ELM_OBJ_MAPBUF_ID(sub_id) (ELM_OBJ_MAPBUF_BASE_ID + sub_id)


/**
 * @def elm_obj_mapbuf_enabled_set
 * @since 1.8
 *
 * Enable or disable the map.
 *
 * @param[in] enabled
 *
 * @see elm_mapbuf_enabled_set
 */
#define elm_obj_mapbuf_enabled_set(enabled) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_ENABLED_SET), EO_TYPECHECK(Eina_Bool, enabled)

/**
 * @def elm_obj_mapbuf_enabled_get
 * @since 1.8
 *
 * Get a value whether map is enabled or not.
 *
 * @param[out] ret
 *
 * @see elm_mapbuf_enabled_get
 */
#define elm_obj_mapbuf_enabled_get(ret) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_ENABLED_GET), EO_TYPECHECK(Eina_Bool *, ret)

/**
 * @def elm_obj_mapbuf_smooth_set
 * @since 1.8
 *
 * Enable or disable smooth map rendering.
 *
 * @param[in] smooth
 *
 * @see elm_mapbuf_smooth_set
 */
#define elm_obj_mapbuf_smooth_set(smooth) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_SMOOTH_SET), EO_TYPECHECK(Eina_Bool, smooth)

/**
 * @def elm_obj_mapbuf_smooth_get
 * @since 1.8
 *
 * Get a value whether smooth map rendering is enabled or not.
 *
 * @param[out] ret
 *
 * @see elm_mapbuf_smooth_get
 */
#define elm_obj_mapbuf_smooth_get(ret) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_SMOOTH_GET), EO_TYPECHECK(Eina_Bool *, ret)

/**
 * @def elm_obj_mapbuf_alpha_set
 * @since 1.8
 *
 * Set or unset alpha flag for map rendering.
 *
 * @param[in] alpha
 *
 * @see elm_mapbuf_alpha_set
 */
#define elm_obj_mapbuf_alpha_set(alpha) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_ALPHA_SET), EO_TYPECHECK(Eina_Bool, alpha)

/**
 * @def elm_obj_mapbuf_alpha_get
 * @since 1.8
 *
 * Get a value whether alpha blending is enabled or not.
 *
 * @param[out] ret
 *
 * @see elm_mapbuf_alpha_get
 */
#define elm_obj_mapbuf_alpha_get(ret) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_ALPHA_GET), EO_TYPECHECK(Eina_Bool *, ret)

/**
 * @def elm_obj_mapbuf_auto_set
 * @since 1.8
 *
 * Set or unset automatic flag for map rendering.
 *
 * @param[in] on
 *
 * @see elm_mapbuf_auto_set
 */
#define elm_obj_mapbuf_auto_set(on) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_AUTO_SET), EO_TYPECHECK(Eina_Bool, on)

/**
 * @def elm_obj_mapbuf_auto_get
 * @since 1.8
 *
 * Get a value automatic map mode is enabled ore not.
 *
 * @param[out] ret
 *
 * @see elm_mapbuf_auto_get
 */
#define elm_obj_mapbuf_auto_get(ret) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_AUTO_GET), EO_TYPECHECK(Eina_Bool *, ret)

/**
 * @def elm_obj_mapbuf_point_color_set
 * @since 1.9
 *
 * Set a vertex color of the mapbuf
 *
 * @param[in] idx
 * @param[in] r
 * @param[in] g 
 * @param[in] b
 * @param[in] a
 *
 * @see elm_mapbuf_point_color_set
 */
#define elm_obj_mapbuf_point_color_set(idx, r, g, b, a) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_POINT_COLOR_SET), EO_TYPECHECK(int, idx), EO_TYPECHECK(int, r), EO_TYPECHECK(int, g), EO_TYPECHECK(int, b), EO_TYPECHECK(int, a)

/**
 * @def elm_obj_mapbuf_point_color_get
 * @since 1.9
 *
 * get a vertex color of the mapbuf
 *
 * @param[in] idx
 * @param[out] r
 * @param[out] g 
 * @param[out] b
 * @param[out] a
 *
 * @see elm_mapbuf_point_color_get
 */
#define elm_obj_mapbuf_point_color_get(idx, r, g, b, a) ELM_OBJ_MAPBUF_ID(ELM_OBJ_MAPBUF_SUB_ID_POINT_COLOR_GET), EO_TYPECHECK(int, idx), EO_TYPECHECK(int *, r), EO_TYPECHECK(int *, g), EO_TYPECHECK(int *, b), EO_TYPECHECK(int *, a)

/**
 * @}
 */