diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-03-20 20:10:28 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2009-03-20 20:10:28 +0000 |
commit | fb6b8255c3e8dac0842b1703db113f145664ba3d (patch) | |
tree | 554b636a55d8c9d346dcb2cee1aecf6d9e3033b9 /navit/osd.h | |
parent | d21b93d55297aa7a9de5c59240e57ce55b16a1bd (diff) | |
download | navit-svn-fb6b8255c3e8dac0842b1703db113f145664ba3d.tar.gz |
Fix:Core:Moved general functions from osd_core to main module
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@2152 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/osd.h')
-rw-r--r-- | navit/osd.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/navit/osd.h b/navit/osd.h index a65224af..2df822db 100644 --- a/navit/osd.h +++ b/navit/osd.h @@ -20,15 +20,37 @@ #ifndef NAVIT_OSD_H #define NAVIT_OSD_H +struct osd_priv; + struct osd_methods { void (*osd_destroy)(struct osd_priv *osd); }; + +struct osd_item { + struct point p; + int flags, attr_flags, w, h, fg_line_width, font_size, osd_configuration, configured; + struct color color_bg, color_white, text_color; + struct graphics *gr; + struct graphics_gc *graphic_bg, *graphic_fg_white, *graphic_fg_text; + struct graphics_font *font; + struct callback *cb; + int pressed; + char *command; +}; + /* prototypes */ struct attr; struct navit; struct osd; struct osd *osd_new(struct attr *parent, struct attr **attrs); +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_std_resize(struct osd_item *item); +void osd_std_draw(struct osd_item *item); /* end of prototypes */ #endif |