Contents of /trunk/src/style.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22 - (show annotations)
Wed Dec 17 16:43:46 2008 UTC (15 years, 4 months ago) by harbaum
File MIME type: text/plain
File size: 2079 byte(s)
Color system cleaned up, desktop fullscreen
1 /*
2 * Copyright (C) 2008 Till Harbaum <till@harbaum.org>.
3 *
4 * This file is part of OSM2Go.
5 *
6 * OSM2Go is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * OSM2Go is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with OSM2Go. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef STYLE_H
21 #define STYLE_H
22
23 typedef struct style_s {
24 icon_t **iconP; // pointer to global list of icons
25 char *name;
26
27 struct {
28 gboolean enable;
29 float scale; // how big the icon is drawn
30 char *path_prefix;
31 } icon;
32
33 struct {
34 elemstyle_color_t color;
35 elemstyle_color_t gps_color;
36 float width;
37 } track;
38
39 struct {
40 elemstyle_color_t color;
41 float width;
42 float zoom_max;
43 } way;
44
45 struct {
46 gboolean has_border_color;
47 elemstyle_color_t border_color;
48 float border_width;
49 elemstyle_color_t color;
50 float zoom_max;
51 } area;
52
53 struct {
54 float mult;
55 elemstyle_color_t color;
56
57 struct {
58 gboolean present;
59 float width;
60 elemstyle_color_t color;
61 } border;
62 } frisket;
63
64 struct {
65 float radius, border_radius;
66 elemstyle_color_t fill_color, color;
67 gboolean show_untagged;
68 float zoom_max;
69 } node;
70
71 struct {
72 elemstyle_color_t color, node_color, touch_color, arrow_color;
73 float width, arrow_limit;
74 } highlight;
75
76 struct {
77 elemstyle_color_t color;
78 } background;
79
80 union {
81 char *elemstyles_filename;
82 elemstyle_t *elemstyles;
83 };
84 } style_t;
85
86 style_t *style_load(appdata_t *appdata, char *name);
87 void style_free(style_t *style);
88 void style_select(GtkWidget *parent, appdata_t *appdata);
89
90 #endif // STYLE_H