2 * This file is a part of hildon
4 * Copyright (C) 2008, 2009 Nokia Corporation, all rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser Public License as published by
8 * the Free Software Foundation; version 2 of the license.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser Public License for more details.
17 #ifndef __HILDON_GTK_H__
18 #define __HILDON_GTK_H__
25 hildon_gtk_menu_new (void);
28 hildon_gtk_button_new (HildonSizeType size);
31 hildon_gtk_toggle_button_new (HildonSizeType size);
34 hildon_gtk_radio_button_new (HildonSizeType size,
38 hildon_gtk_radio_button_new_from_widget (HildonSizeType size,
39 GtkRadioButton *radio_group_member);
43 hildon_gtk_tree_view_new (HildonUIMode mode);
46 hildon_gtk_tree_view_new_with_model (HildonUIMode mode,
50 hildon_gtk_tree_view_set_ui_mode (GtkTreeView *treeview,
54 hildon_gtk_icon_view_new (HildonUIMode mode);
57 hildon_gtk_icon_view_new_with_model (HildonUIMode mode,
61 hildon_gtk_icon_view_set_ui_mode (GtkIconView *iconview,
63 #endif /* MAEMO_GTK */
66 hildon_gtk_window_set_progress_indicator (GtkWindow *window,
70 hildon_gtk_window_set_do_not_disturb (GtkWindow *window,
74 * HildonPortraitFlags:
76 * These flags are used to tell the window manager whether the current
77 * window needs to be in portrait or landscape mode.
79 * If no flags are set then the window is meant to be used in
80 * landscape mode only.
82 * If %HILDON_PORTRAIT_MODE_REQUEST is set then the window is meant to
83 * be used in portrait mode only.
85 * If only %HILDON_PORTRAIT_MODE_SUPPORT is set then the current
86 * orientation will be kept, no matter if it's portrait or landscape.
88 * It is important to note that, while these flags can be used to
89 * change between portrait and landscape according to the physical
90 * orientation of the display, Hildon does not provide any method to
91 * obtain this information.
94 HILDON_PORTRAIT_MODE_REQUEST = 1 << 0,
95 HILDON_PORTRAIT_MODE_SUPPORT = 1 << 1
96 } HildonPortraitFlags;
99 hildon_gtk_window_set_portrait_flags (GtkWindow *window,
100 HildonPortraitFlags portrait_flags);
103 hildon_gtk_window_take_screenshot (GtkWindow *window,
106 hildon_gtk_hscale_new (void);
109 hildon_gtk_vscale_new (void);
113 #endif /* __HILDON_GTK_H__ */