summaryrefslogtreecommitdiff
path: root/navit/osd.h
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-20 20:10:28 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2009-03-20 20:10:28 +0000
commitce7c726eec11f054b7711e02f9ced78f8d0d4870 (patch)
tree554b636a55d8c9d346dcb2cee1aecf6d9e3033b9 /navit/osd.h
parent2d52d5c0a497dc67e6466b9dc05305b13fb83fd1 (diff)
downloadnavit-ce7c726eec11f054b7711e02f9ced78f8d0d4870.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.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/navit/osd.h b/navit/osd.h
index a65224afd..2df822dbf 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