2008-08-08 Alberto Garcia <agarcia@igalia.com>
[hildon] / src / hildon-gtk.h
1 /*
2  * This file is a part of hildon
3  *
4  * Copyright (C) 2008 Nokia Corporation, all rights reserved.
5  *
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.
9  *
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.
14  *
15  */
16
17 #ifndef                                         __HILDON_GTK_H__
18 #define                                         __HILDON_GTK_H__
19
20 #include                                        <gtk/gtk.h>
21
22 G_BEGIN_DECLS
23
24 typedef enum {
25    HILDON_SIZE_AUTO_WIDTH                       = 0 << 0, /* set to automatic width */
26    HILDON_SIZE_HALFSCREEN_WIDTH                 = 1 << 0, /* set to 50% screen width */
27    HILDON_SIZE_FULLSCREEN_WIDTH                 = 2 << 0, /* set to 100% screen width */
28    HILDON_SIZE_AUTO_HEIGHT                      = 0 << 2, /* set to automatic height */
29    HILDON_SIZE_FINGER_HEIGHT                    = 1 << 2, /* set to finger height */
30    HILDON_SIZE_THUMB_HEIGHT                     = 2 << 2, /* set to thumb height */
31    HILDON_SIZE_AUTO                             = (HILDON_SIZE_AUTO_WIDTH | HILDON_SIZE_AUTO_HEIGHT)
32 }                                               HildonSizeType;
33
34 void
35 hildon_gtk_widget_set_theme_size                (GtkWidget      *widget,
36                                                  HildonSizeType  size);
37
38 GtkWidget *
39 hildon_gtk_button_new                           (HildonSizeType size);
40
41 GtkWidget *
42 hildon_gtk_toggle_button_new                    (HildonSizeType size);
43
44 GtkWidget *
45 hildon_gtk_check_button_new                     (HildonSizeType size);
46
47 GtkWidget *
48 hildon_gtk_radio_button_new                     (HildonSizeType  size,
49                                                  GSList         *group);
50
51 GtkWidget *
52 hildon_gtk_radio_button_new_from_widget         (HildonSizeType  size,
53                                                  GtkRadioButton *radio_group_member);
54
55 GtkWidget *
56 hildon_gtk_tree_view_new                        (HildonUIMode mode);
57
58 GtkWidget *
59 hildon_gtk_tree_view_new_with_model             (HildonUIMode  mode,
60                                                  GtkTreeModel *model);
61
62 GtkWidget *
63 hildon_gtk_icon_view_new                        (HildonUIMode mode);
64
65 GtkWidget *
66 hildon_gtk_icon_view_new_with_model             (HildonUIMode  mode,
67                                                  GtkTreeModel *model);
68
69 G_END_DECLS
70
71 #endif /* __HILDON_GTK_H__ */