summaryrefslogtreecommitdiff
path: root/navit/osd.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-04-28 15:18:17 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-04-28 15:18:17 +0000
commitfe57f914b4ab318c3dd41607e3c6c8bb5bf407de (patch)
tree3e4e90ad0969e251b941f49f50f0b5ca6ffa4f09 /navit/osd.h
parent25c3ba43b0dc899af1ce9691a964b4647016380d (diff)
downloadnavit-fe57f914b4ab318c3dd41607e3c6c8bb5bf407de.tar.gz
Add:Core:Improved osd interface
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5455 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/osd.h')
-rw-r--r--navit/osd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/navit/osd.h b/navit/osd.h
index 1e0f981ef..f30b62b59 100644
--- a/navit/osd.h
+++ b/navit/osd.h
@@ -25,8 +25,9 @@ struct attr;
struct osd_methods {
void (*osd_destroy)(struct osd_priv *osd);
- void (*set_attr)(struct osd_priv *osd, struct attr* attr);
+ int (*set_attr)(struct osd_priv *osd, struct attr* attr);
void (*destroy)(struct osd_priv *osd);
+ int (*get_attr)(struct osd_priv *osd, enum attr_type type, struct attr* attr);
};
#define osd_draw_cast(x) (void (*)(struct osd_priv *osd, struct navit *navit, struct vehicle *v))(x)
@@ -61,6 +62,7 @@ struct attr;
struct navit;
struct osd;
struct osd *osd_new(struct attr *parent, struct attr **attrs);
+int osd_set_methods(struct osd_methods *in, int in_size, struct osd_methods *out);
void osd_wrap_point(struct point *p, struct navit *nav);
void osd_std_click(struct osd_item *this, struct navit *nav, int pressed, int button, struct point *p);
void osd_set_std_attr(struct attr **attrs, struct osd_item *item, int flags);