diff options
author | tinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-03-30 14:09:24 +0000 |
---|---|---|
committer | tinloaf <tinloaf@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-03-30 14:09:24 +0000 |
commit | 7597154c412335eec39210f004178cfc572833b1 (patch) | |
tree | 50d5afd4e1ac0b2ea3d922ef85e46e4cd78e7136 /navit/osd.h | |
parent | 95ee7e85772b939c96223e659efa8692a1e02c00 (diff) | |
download | navit-7597154c412335eec39210f004178cfc572833b1.tar.gz |
Add:Core:Adding relative sizes and positions for OSDs
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2174 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/osd.h')
-rw-r--r-- | navit/osd.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/navit/osd.h b/navit/osd.h index 2df822dbf..99b760dd4 100644 --- a/navit/osd.h +++ b/navit/osd.h @@ -23,18 +23,25 @@ struct osd_priv; struct osd_methods { - void (*osd_destroy)(struct osd_priv *osd); + void (*osd_destroy)(struct osd_priv *osd); }; +struct osd_item_methods { + void (*draw)(struct osd_priv *osd, struct navit *navit, struct vehicle *v); +}; struct osd_item { struct point p; + struct osd_item_methods meth; int flags, attr_flags, w, h, fg_line_width, font_size, osd_configuration, configured; + int rel_w, rel_h, rel_x, rel_y; struct color color_bg, color_white, text_color; + struct navit *navit; struct graphics *gr; struct graphics_gc *graphic_bg, *graphic_fg_white, *graphic_fg_text; struct graphics_font *font; struct callback *cb; + struct callback *resize_cb; int pressed; char *command; }; @@ -48,7 +55,7 @@ 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); void osd_std_config(struct osd_item *item, struct navit *navit); -void osd_set_std_graphic(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); /* end of prototypes */ |