diff options
author | seralph <seralph@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-10-14 12:05:48 +0000 |
---|---|---|
committer | seralph <seralph@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-10-14 12:05:48 +0000 |
commit | d5310034de132ebbc37e97969266e9732858a8dd (patch) | |
tree | f90804e754f65f2d06cebe78302339123dd3161d /navit/vehicle.h | |
parent | 3dee96744c8684f9159bc0037c7861d686db75bd (diff) | |
download | navit-d5310034de132ebbc37e97969266e9732858a8dd.tar.gz |
Add:Core:Add the possibility to define cursors in layout
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2667 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/vehicle.h')
-rw-r--r-- | navit/vehicle.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/navit/vehicle.h b/navit/vehicle.h index f9d65b3d5..9edd647cc 100644 --- a/navit/vehicle.h +++ b/navit/vehicle.h @@ -1,6 +1,6 @@ /** * Navit, a modular navigation system. - * Copyright (C) 2005-2008 Navit Team + * Copyright (C) 2005-2009 Navit Team * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public License @@ -24,25 +24,28 @@ extern "C" { #endif +struct point; struct vehicle_priv; struct vehicle_methods { void (*destroy)(struct vehicle_priv *priv); int (*position_attr_get)(struct vehicle_priv *priv, enum attr_type type, struct attr *attr); int (*set_attr)(struct vehicle_priv *priv, struct attr *attr, struct attr **attrs); - }; - /* prototypes */ struct vehicle *vehicle_new(struct attr *parent, struct attr **attrs); +void vehicle_destroy(struct vehicle *this_); struct attr_iter *vehicle_attr_iter_new(void); +void vehicle_attr_iter_destroy(struct attr_iter *iter); + int vehicle_get_attr(struct vehicle *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter); int vehicle_set_attr(struct vehicle *this_, struct attr *attr, struct attr **attrs); int vehicle_add_attr(struct vehicle *this_, struct attr *attr); int vehicle_remove_attr(struct vehicle *this_, struct attr *attr); -void vehicle_destroy(struct vehicle *this_); -void vehicle_attr_iter_destroy(struct attr_iter *iter); + +void vehicle_set_cursor(struct vehicle *this_, struct cursor *cursor); +void vehicle_draw(struct vehicle *this_, struct graphics *gra, struct point *pnt, int lazy, int angle, int speed); /* end of prototypes */ #ifdef __cplusplus |