navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
vehicle.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_VEHICLE_H
21 #define NAVIT_VEHICLE_H
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 struct point;
28 struct vehicle_priv;
29 
31  void (*destroy)(struct vehicle_priv *priv);
32  int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr);
33  int (*set_attr)(struct vehicle_priv *priv, struct attr *attr);
34 };
35 
36 /* prototypes */
37 enum attr_type;
38 struct attr;
39 struct attr_iter;
40 struct cursor;
41 struct graphics;
42 struct point;
43 struct vehicle;
44 struct vehicle *vehicle_new(struct attr *parent, struct attr **attrs);
45 void vehicle_destroy(struct vehicle *this_);
46 struct attr_iter *vehicle_attr_iter_new(void);
48 int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
49 int vehicle_set_attr(struct vehicle *this_, struct attr *attr);
50 int vehicle_add_attr(struct vehicle *this_, struct attr *attr);
51 int vehicle_remove_attr(struct vehicle *this_, struct attr *attr);
52 void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite);
53 void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int angle, int speed);
54 int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed);
55 void vehicle_log_gpx_add_tag(char *tag, char **logstr);
56 struct vehicle * vehicle_ref(struct vehicle *this_);
57 void vehicle_unref(struct vehicle *this_);
58 /* end of prototypes */
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif
65 
attr_type
Definition: attr.h:34
void vehicle_attr_iter_destroy(struct attr_iter *iter)
Definition: vehicle.c:198
int vehicle_get_cursor_data(struct vehicle *this_, struct point *pnt, int *angle, int *speed)
Definition: vehicle.c:401
tuple iter
Definition: eval.py:8
Definition: gpx2navit_txt.h:51
struct vehicle * vehicle_ref(struct vehicle *this_)
Definition: vehicle_android.c:43
void vehicle_log_gpx_add_tag(char *tag, char **logstr)
Definition: vehicle.c:501
int vehicle_remove_attr(struct vehicle *this_, struct attr *attr)
Generic remove function.
Definition: vehicle.c:295
Definition: vehicle.c:58
int(* position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr)
Definition: vehicle.h:32
int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter)
Definition: vehicle.c:215
int vehicle_set_attr(struct vehicle *this_, struct attr *attr)
Definition: vehicle.c:238
void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int angle, int speed)
Definition: vehicle.c:373
graphics object A graphics object serves as the target for drawing operations. It encapsulates variou...
Definition: graphics.c:70
Definition: config_.c:48
Definition: layout.h:87
void(* destroy)(struct vehicle_priv *priv)
Definition: vehicle.h:31
Definition: attr.h:156
int(* set_attr)(struct vehicle_priv *priv, struct attr *attr)
Definition: vehicle.h:33
void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor, int overwrite)
Definition: vehicle.c:326
struct vehicle * vehicle_new(struct attr *parent, struct attr **attrs)
Creates a new vehicle.
Definition: vehicle.c:103
Definition: point.h:23
void vehicle_unref(struct vehicle *this_)
void vehicle_destroy(struct vehicle *this_)
Destroys a vehicle.
Definition: vehicle.c:165
typedef int(WINAPI *FP_SetStretchBltMode)(HDC dc
char type[3]
Definition: garmin_img.c:130
int vehicle_add_attr(struct vehicle *this_, struct attr *attr)
Definition: vehicle.c:264
Definition: vehicle.h:30
struct attr_iter * vehicle_attr_iter_new(void)
Definition: vehicle.c:187