Some documenting thingies.
[irreco.git] / irreco / trunk / src / core / irreco_scrolled_window.h
blobe42b1832b1107308dadf0b15fb667453643b2eea
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi)
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
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 General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
22 /* Typedef */
23 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
25 * Make sure that typedefs are available before we include anything elese.
27 * This makes sure that whatever other structures that depend on structures
28 * defined in this file will compile OK recardles of header inclusion order.
30 #ifndef __IRRECO_SCROLLED_WINDOW_H_TYPEDEF__
31 #define __IRRECO_SCROLLED_WINDOW_H_TYPEDEF__
33 typedef struct _IrrecoScrolledWindow IrrecoScrolledWindow;
34 typedef struct _IrrecoScrolledWindowClass IrrecoScrolledWindowClass;
36 #define IRRECO_TYPE_SCROLLED_WINDOW irreco_scrolled_window_get_type()
38 #define IRRECO_SCROLLED_WINDOW(obj) \
39 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
40 IRRECO_TYPE_SCROLLED_WINDOW, IrrecoScrolledWindow))
42 #define IRRECO_SCROLLED_WINDOW_CLASS(klass) \
43 (G_TYPE_CHECK_CLASS_CAST ((klass), \
44 IRRECO_TYPE_SCROLLED_WINDOW, IrrecoScrolledWindowClass))
46 #define IRRECO_IS_SCROLLED_WINDOW(obj) \
47 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
48 IRRECO_TYPE_SCROLLED_WINDOW))
50 #define IRRECO_IS_SCROLLED_WINDOW_CLASS(klass) \
51 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
52 IRRECO_TYPE_SCROLLED_WINDOW))
54 #define IRRECO_SCROLLED_WINDOW_GET_CLASS(obj) \
55 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
56 IRRECO_TYPE_SCROLLED_WINDOW, IrrecoScrolledWindowClass))
58 #endif /* __IRRECO_SCROLLED_WINDOW_H_TYPEDEF__ */
62 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
63 /* Include */
64 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
65 #ifndef __IRRECO_SCROLLED_WINDOW_H__
66 #define __IRRECO_SCROLLED_WINDOW_H__
67 #include "irreco.h"
71 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
72 /* Datatypes */
73 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
74 struct _IrrecoScrolledWindow {
75 GtkScrolledWindow parent;
76 GtkWidget *alignment;
77 GtkWidget *child;
79 gint width_min;
80 gint width_max;
81 gint height_min;
82 gint height_max;
85 struct _IrrecoScrolledWindowClass {
86 GtkScrolledWindowClass parent_class;
90 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
91 /* Macro */
92 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
96 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
97 /* Prototypes */
98 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
99 GType irreco_scrolled_window_get_type (void);
100 GtkWidget* irreco_scrolled_window_new (void);
101 GtkWidget* irreco_scrolled_window_new_with_autoresize(gint width_min,
102 gint width_max,
103 gint height_min,
104 gint height_max);
105 void irreco_scrolled_window_set_autoresize(IrrecoScrolledWindow *self,
106 gint width_min,
107 gint width_max,
108 gint height_min,
109 gint height_max);
110 void irreco_scrolled_window_add(IrrecoScrolledWindow *self,
111 GtkWidget *widget);
112 #endif /* __IRRECO_SCROLLED_WINDOW_H__ */