2 * Navit, a modular navigation system.
3 * Copyright (C) 2005-2008 Navit Team
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public License
7 * version 2 as published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
27 void (*osd_destroy)(struct osd_priv *osd);
28 void (*set_attr)(struct osd_priv *osd, struct attr* attr);
31 #define osd_draw_cast(x) (void (*)(struct osd_priv *osd, struct navit *navit, struct vehicle *v))(x)
33 struct osd_item_methods {
34 void (*draw)(struct osd_priv *osd, struct navit *navit, struct vehicle *v);
39 struct osd_item_methods meth;
40 int flags, attr_flags, w, h, fg_line_width, font_size, osd_configuration, configured;
41 int rel_w, rel_h, rel_x, rel_y;
42 struct color color_bg, color_white, text_color;
45 struct graphics_gc *graphic_bg, *graphic_fg_white, *graphic_fg_text;
46 struct graphics_font *font;
49 struct callback *resize_cb;
50 struct callback *reconfig_cb;
51 struct callback *keypress_cb;
54 struct command_saved *enable_cs;
62 struct osd *osd_new(struct attr *parent, struct attr **attrs);
63 void osd_wrap_point(struct point *p, struct navit *nav);
64 void osd_std_click(struct osd_item *this, struct navit *nav, int pressed, int button, struct point *p);
65 void osd_set_std_attr(struct attr **attrs, struct osd_item *item, int flags);
66 void osd_std_config(struct osd_item *item, struct navit *navit);
67 void osd_set_std_config(struct navit *nav, struct osd_item *item);
68 void osd_set_std_graphic(struct navit *nav, struct osd_item *item, struct osd_priv *priv);
69 void osd_std_resize(struct osd_item *item);
70 void osd_std_draw(struct osd_item *item);
71 int osd_set_attr(struct osd *osd, struct attr* attr);
72 int osd_get_attr(struct osd *this_, enum attr_type type, struct attr *attr, struct attr_iter *iter);
73 /* end of prototypes */