… | |
… | |
226 | enum projection; |
226 | enum projection; |
227 | struct attr; |
227 | struct attr; |
228 | struct attr_iter; |
228 | struct attr_iter; |
229 | struct callback; |
229 | struct callback; |
230 | struct item; |
230 | struct item; |
|
|
231 | |
|
|
232 | /** |
|
|
233 | * @brief Holds information about a map |
|
|
234 | * |
|
|
235 | * This structure holds information about a map. |
|
|
236 | */ |
231 | struct map; |
237 | struct map { |
|
|
238 | struct map_methods meth; /**< Structure with pointers to the map plugin's functions */ |
|
|
239 | struct map_priv *priv; /**< Private data of the map, only known to the map plugin */ |
|
|
240 | struct attr **attrs; /**< Attributes of this map */ |
|
|
241 | struct callback_list *attr_cbl; /**< List of callbacks that are called when attributes change */ |
|
|
242 | int refcount; |
|
|
243 | }; |
|
|
244 | |
|
|
245 | /** |
|
|
246 | * @brief Describes a rectangular extract of a map |
|
|
247 | * |
|
|
248 | * This structure describes a rectangular extract of a map. |
|
|
249 | */ |
|
|
250 | struct map_rect { |
|
|
251 | struct map *m; /**< The map this extract is from */ |
|
|
252 | struct map_rect_priv *priv; /**< Private data of this map rect, only known to the map plugin */ |
|
|
253 | }; |
|
|
254 | |
232 | struct map_priv; |
255 | struct map_priv; |
233 | struct map_rect; |
256 | |
234 | struct map_search; |
257 | struct map_search; |
235 | struct map_selection; |
258 | struct map_selection; |
236 | struct pcoord; |
259 | struct pcoord; |
237 | struct map *map_new(struct attr *parent, struct attr **attrs); |
260 | struct map *map_new(struct attr *parent, struct attr **attrs); |
238 | void map_ref(struct map* m); |
261 | void map_ref(struct map* m); |