summaryrefslogtreecommitdiff
path: root/navit/osd.h
diff options
context:
space:
mode:
authortegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-16 15:38:04 +0000
committertegzed <tegzed@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-04-16 15:38:04 +0000
commitdac859aea4fdfbb74185ecbc4025d321a9b02bfc (patch)
tree66e5f2e6e60ae4a484e0fc4cadcdbb7f3ec53b96 /navit/osd.h
parentd4d7a2dafd58dcd093eb9783bce11993a56149ce (diff)
downloadnavit-dac859aea4fdfbb74185ecbc4025d321a9b02bfc.tar.gz
Add:osd/core:
- added the possibility to set attributes of OSDs runtime - added navit command for setting attribute of a named osd - added the possibility to set src attribute (background image) of osd buttons runtime - created "command interface" osd type to be able to access command system accessible data (for example route_status) and display it either as text or image (see Ticket #815 for details) git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4432 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/osd.h')
-rw-r--r--navit/osd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/navit/osd.h b/navit/osd.h
index af0c14daf..675283b2f 100644
--- a/navit/osd.h
+++ b/navit/osd.h
@@ -21,9 +21,11 @@
#define NAVIT_OSD_H
struct osd_priv;
+struct attr;
struct osd_methods {
void (*osd_destroy)(struct osd_priv *osd);
+ void (*set_attr)(struct osd_priv *osd, struct attr* attr);
};
#define osd_draw_cast(x) (void (*)(struct osd_priv *osd, struct navit *navit, struct vehicle *v))(x)
@@ -66,6 +68,7 @@ void osd_set_std_config(struct navit *nav, struct osd_item *item);
void osd_set_std_graphic(struct navit *nav, struct osd_item *item, struct osd_priv *priv);
void osd_std_resize(struct osd_item *item);
void osd_std_draw(struct osd_item *item);
+struct osd* osd_get_osd_by_name(char *name);
/* end of prototypes */
#endif