Remove HILDON_ENABLE_UNSTABLE_API.
[hildon] / src / hildon-defines.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
5  *
6  * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation; version 2.1 of
11  * the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24
25 /* FIXME: Add documentation for the macros here */
26
27 #ifndef                                         __HILDON_DEFINES_H__
28 #define                                         __HILDON_DEFINES_H__
29
30 #include                                        <gtk/gtk.h>
31 #include                                        <gdk/gdkkeysyms.h>
32
33 G_BEGIN_DECLS
34
35 #define                                         HILDON_ICON_SIZE_SMALL \
36                                                 gtk_icon_size_from_name ("gtk-menu")
37
38 #define                                         HILDON_ICON_SIZE_TOOLBAR \
39                                                 gtk_icon_size_from_name ("gtk-menu")
40
41 #define                                         HILDON_ICON_SIZE_WIZARD \
42                                                 gtk_icon_size_from_name ("gtk-dialog")
43
44 #define                                         HILDON_ICON_SIZE_BIG_NOTE \
45                                                 gtk_icon_size_from_name ("gtk-dialog")
46
47 #define                                         HILDON_ICON_SIZE_NOTE \
48                                                 gtk_icon_size_from_name ("gtk-menu")
49
50 /* Actual icon sizes */
51
52 #define                                         HILDON_ICON_PIXEL_SIZE_SMALL \
53                                                 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_SMALL)
54
55 #define                                         HILDON_ICON_PIXEL_SIZE_TOOLBAR \
56                                                 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_TOOLBAR)
57
58 #define                                         HILDON_ICON_PIXEL_SIZE_WIZARD \
59                                                 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_WIZARD)
60
61 #define                                         HILDON_ICON_PIXEL_SIZE_BIG_NOTE \
62                                                 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_BIG_NOTE)
63
64 #define                                         HILDON_ICON_PIXEL_SIZE_NOTE \
65                                                 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_NOTE)
66
67 /* Margins */
68
69 #define                                         HILDON_MARGIN_HALF 3
70
71 #define                                         HILDON_MARGIN_DEFAULT 6
72
73 #define                                         HILDON_MARGIN_DOUBLE 12
74
75 #define                                         HILDON_MARGIN_TRIPLE 18
76
77 /* Hard keys */
78
79 #define                                         HILDON_HARDKEY_UP GDK_Up
80
81 #define                                         HILDON_HARDKEY_LEFT GDK_Left
82
83 #define                                         HILDON_HARDKEY_RIGHT GDK_Right
84
85 #define                                         HILDON_HARDKEY_DOWN GDK_Down
86
87 #define                                         HILDON_HARDKEY_SELECT GDK_Return
88
89 #define                                         HILDON_HARDKEY_MENU GDK_F4
90
91 #define                                         HILDON_HARDKEY_HOME GDK_F5
92
93 #define                                         HILDON_HARDKEY_ESC GDK_Escape
94
95 #define                                         HILDON_HARDKEY_FULLSCREEN GDK_F6
96
97 #define                                         HILDON_HARDKEY_INCREASE GDK_F7
98
99 #define                                         HILDON_HARDKEY_DECREASE GDK_F8
100
101 gint
102 hildon_get_icon_pixel_size                      (GtkIconSize size);
103
104 G_END_DECLS
105
106 #endif                                          /* HILDON_DEFINES_H */