Contents of /trunk/src/icons.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 293 - (show annotations)
Tue Aug 17 19:00:06 2010 UTC (13 years, 9 months ago) by harbaum
File MIME type: text/plain
File size: 1284 byte(s)
Attribute icon handling
1 /*
2 * Copyright (C) 2008 Till Harbaum <till@harbaum.org>.
3 *
4 * This file is part of GPXView.
5 *
6 * GPXView 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 * GPXView 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 GPXView. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef ICONS_H
21 #define ICONS_H
22
23 /* icon families */
24 enum {
25 ICON_CACHE_TYPE = 0,
26 ICON_CACHE_TYPE_SEMI,
27 ICON_CACHE_TYPE_1_5X,
28 ICON_CACHE_TYPE_2X,
29 ICON_CACHE_SIZE,
30 ICON_STARS,
31 ICON_LOG,
32 ICON_HEADING,
33 ICON_WPT,
34 ICON_TB,
35 ICON_MISC,
36 ICON_POS,
37 ICON_FILE,
38 ICON_ATT
39 };
40
41 void icons_init(void);
42 void icons_free(void);
43
44 GdkPixbuf *icon_bearing(pos_t from, pos_t to);
45 GdkPixbuf *icon_get(int type, int num);
46 GtkWidget *icon_get_widget(int type, int num);
47 GtkWidget *icon_get_widget_ovl(int type, int num, int ovl);
48
49 #endif // ICONS_H