From dac859aea4fdfbb74185ecbc4025d321a9b02bfc Mon Sep 17 00:00:00 2001 From: tegzed Date: Sat, 16 Apr 2011 15:38:04 +0000 Subject: 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 --- navit/osd.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'navit/osd.h') 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 -- cgit v1.2.1