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#include "attr_type_def.h"
29
30struct point;
31struct vehicle_priv;
32struct attr;
33
35 void (*destroy)(struct vehicle_priv *priv);
36 int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr);
37 int (*set_attr)(struct vehicle_priv *priv, struct attr *attr);
38};
39
40/* prototypes */
41enum attr_type;
42struct attr;
43struct attr_iter;
44struct cursor;
45struct graphics;
46struct point;
47struct vehicle;
48
49struct vehicle *vehicle_new(struct attr *parent, struct attr **attrs);
50void vehicle_destroy(struct vehicle *this_);
51struct attr_iter *vehicle_attr_iter_new(void *unused);
53int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
54int vehicle_set_attr(struct vehicle *this_, struct attr *attr);
55int vehicle_add_attr(struct vehicle *this_, struct attr *attr);
56int vehicle_remove_attr(struct vehicle *this_, struct attr *attr);
57void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite);
58void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int angle, int speed);
59int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed);
60void vehicle_log_gpx_add_tag(char *tag, char **logstr);
61struct vehicle *vehicle_ref(struct vehicle *this_);
62void vehicle_unref(struct vehicle *this_);
63/* end of prototypes */
64
65#ifdef __cplusplus
66}
67#endif
68
69#endif
attr_type
Definition attr_type_def.h:11
char type[3]
Definition garmin_img.c:2
struct navit struct traffic_methods struct attr ** attrs
Definition plugin_def.h:36
Definition config_.c:45
void * iter
Definition config_.c:46
Definition attr.h:138
Definition layout.h:117
graphics object A graphics object serves as the target for drawing operations. It encapsulates variou...
Definition graphics.c:78
Definition gpx2navit_txt.h:50
Definition point.h:23
Definition vehicle.h:34
int(* set_attr)(struct vehicle_priv *priv, struct attr *attr)
Definition vehicle.h:37
int(* position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
Definition vehicle.h:36
void(* destroy)(struct vehicle_priv *priv)
Definition vehicle.h:35
Definition vehicle_android.c:43
Definition vehicle.c:60
struct vehicle * vehicle_ref(struct vehicle *this_)
int vehicle_set_attr(struct vehicle *this_, struct attr *attr)
Definition vehicle.c:226
void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite)
Definition vehicle.c:306
int vehicle_remove_attr(struct vehicle *this_, struct attr *attr)
Generic remove function.
Definition vehicle.c:279
void vehicle_attr_iter_destroy(struct attr_iter *iter)
Definition vehicle.c:191
void vehicle_log_gpx_add_tag(char *tag, char **logstr)
Definition vehicle.c:498
int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed)
Definition vehicle.c:405
struct attr_iter * vehicle_attr_iter_new(void *unused)
Definition vehicle.c:182
struct vehicle * vehicle_new(struct attr *parent, struct attr **attrs)
Creates a new vehicle.
Definition vehicle.c:105
void vehicle_destroy(struct vehicle *this_)
Destroys a vehicle.
Definition vehicle.c:162
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:205
void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int angle, int speed)
Definition vehicle.c:346
int vehicle_add_attr(struct vehicle *this_, struct attr *attr)
Definition vehicle.c:250