2 * This file is a part of hildon
4 * Copyright (C) 2005, 2006 Nokia Corporation, all rights reserved.
6 * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
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.
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.
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
25 /* FIXME: Add documentation for the macros here */
27 #ifndef __HILDON_DEFINES_H__
28 #define __HILDON_DEFINES_H__
31 #include <gdk/gdkkeysyms.h>
35 #define HILDON_ICON_SIZE_SMALL \
36 gtk_icon_size_from_name ("gtk-menu")
38 #define HILDON_ICON_SIZE_TOOLBAR \
39 gtk_icon_size_from_name ("gtk-menu")
41 #define HILDON_ICON_SIZE_WIZARD \
42 gtk_icon_size_from_name ("gtk-dialog")
44 #define HILDON_ICON_SIZE_BIG_NOTE \
45 gtk_icon_size_from_name ("gtk-dialog")
47 #define HILDON_ICON_SIZE_NOTE \
48 gtk_icon_size_from_name ("gtk-menu")
50 /* Actual icon sizes */
52 #define HILDON_ICON_PIXEL_SIZE_SMALL \
53 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_SMALL)
55 #define HILDON_ICON_PIXEL_SIZE_TOOLBAR \
56 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_TOOLBAR)
58 #define HILDON_ICON_PIXEL_SIZE_WIZARD \
59 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_WIZARD)
61 #define HILDON_ICON_PIXEL_SIZE_BIG_NOTE \
62 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_BIG_NOTE)
64 #define HILDON_ICON_PIXEL_SIZE_NOTE \
65 hildon_get_icon_pixel_size (HILDON_ICON_SIZE_NOTE)
69 #define HILDON_MARGIN_HALF 3
71 #define HILDON_MARGIN_DEFAULT 6
73 #define HILDON_MARGIN_DOUBLE 12
75 #define HILDON_MARGIN_TRIPLE 18
79 #define HILDON_HARDKEY_UP GDK_Up
81 #define HILDON_HARDKEY_LEFT GDK_Left
83 #define HILDON_HARDKEY_RIGHT GDK_Right
85 #define HILDON_HARDKEY_DOWN GDK_Down
87 #define HILDON_HARDKEY_SELECT GDK_Return
89 #define HILDON_HARDKEY_MENU GDK_F4
91 #define HILDON_HARDKEY_HOME GDK_F5
93 #define HILDON_HARDKEY_ESC GDK_Escape
95 #define HILDON_HARDKEY_FULLSCREEN GDK_F6
97 #define HILDON_HARDKEY_INCREASE GDK_F7
99 #define HILDON_HARDKEY_DECREASE GDK_F8
102 hildon_get_icon_pixel_size (GtkIconSize size);
106 #endif /* HILDON_DEFINES_H */