navit 0.5.3-trunk
Loading...
Searching...
No Matches
vehicle.h
Go to the documentation of this file.
1
20#ifndef NAVIT_VEHICLE_H
21#define NAVIT_VEHICLE_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include "attr.h"
28
29struct point;
30struct vehicle_priv;
31
33 void (*destroy)(struct vehicle_priv *priv);
34 int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr);
35 int (*set_attr)(struct vehicle_priv *priv, struct attr *attr);
36};
37
38/* prototypes */
39enum attr_type;
40struct attr;
41struct attr_iter;
42struct cursor;
43struct graphics;
44struct point;
45struct vehicle;
46struct vehicle *vehicle_new(struct attr *parent, struct attr **attrs);
47void vehicle_destroy(struct vehicle *this_);
48struct attr_iter *vehicle_attr_iter_new(void * unused);
50int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
51int vehicle_set_attr(struct vehicle *this_, struct attr *attr);
52int vehicle_add_attr(struct vehicle *this_, struct attr *attr);
53int vehicle_remove_attr(struct vehicle *this_, struct attr *attr);
54void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite);
55void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int angle, int speed);
56int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed);
57void vehicle_log_gpx_add_tag(char *tag, char **logstr);
58struct vehicle * vehicle_ref(struct vehicle *this_);
59void vehicle_unref(struct vehicle *this_);
60/* end of prototypes */
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif
67
attr_type
Definition attr_type_def.h:11
char type[3]
Definition garmin_img.c:2
Definition config_.c:47
void * iter
Definition config_.c:48
Definition attr.h:136
Definition layout.h:106
graphics object A graphics object serves as the target for drawing operations. It encapsulates variou...
Definition graphics.c:78
Definition gpx2navit_txt.h:51
Definition point.h:23
Definition vehicle.h:32
int(* set_attr)(struct vehicle_priv *priv, struct attr *attr)
Definition vehicle.h:35
int(* position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
Definition vehicle.h:34
void(* destroy)(struct vehicle_priv *priv)
Definition vehicle.h:33
Definition vehicle_android.c:43
Definition vehicle.c:56
struct vehicle * vehicle_ref(struct vehicle *this_)
int vehicle_set_attr(struct vehicle *this_, struct attr *attr)
Definition vehicle.c:222
void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite)
Definition vehicle.c:302
int vehicle_remove_attr(struct vehicle *this_, struct attr *attr)
Generic remove function.
Definition vehicle.c:275
void vehicle_attr_iter_destroy(struct attr_iter *iter)
Definition vehicle.c:187
void vehicle_log_gpx_add_tag(char *tag, char **logstr)
Definition vehicle.c:494
int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed)
Definition vehicle.c:401
struct attr_iter * vehicle_attr_iter_new(void *unused)
Definition vehicle.c:178
struct vehicle * vehicle_new(struct attr *parent, struct attr **attrs)
Creates a new vehicle.
Definition vehicle.c:101
void vehicle_destroy(struct vehicle *this_)
Destroys a vehicle.
Definition vehicle.c:158
void vehicle_unref(struct vehicle *this_)
int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition vehicle.c:201
void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int angle, int speed)
Definition vehicle.c:342
int vehicle_add_attr(struct vehicle *this_, struct attr *attr)
Definition vehicle.c:246