1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
19 * GtkLayout: Widget for scrolling of arbitrary-sized areas.
21 * Copyright Owen Taylor, 1998
25 * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
26 * file for a list of people on the GTK+ Team. See the ChangeLog
27 * files for a list of changes. These files are distributed with
28 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
31 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
32 #error "Only <gtk/gtk.h> can be included directly."
35 #ifndef __GTK_LAYOUT_H__
36 #define __GTK_LAYOUT_H__
39 #include <gtk/gtkcontainer.h>
40 #include <gtk/gtkadjustment.h>
45 #define GTK_TYPE_LAYOUT (gtk_layout_get_type ())
46 #define GTK_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LAYOUT, GtkLayout))
47 #define GTK_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LAYOUT, GtkLayoutClass))
48 #define GTK_IS_LAYOUT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LAYOUT))
49 #define GTK_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LAYOUT))
50 #define GTK_LAYOUT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LAYOUT, GtkLayoutClass))
53 typedef struct _GtkLayout GtkLayout;
54 typedef struct _GtkLayoutPrivate GtkLayoutPrivate;
55 typedef struct _GtkLayoutClass GtkLayoutClass;
59 GtkContainer container;
62 GtkLayoutPrivate *priv;
65 struct _GtkLayoutClass
67 GtkContainerClass parent_class;
69 /* Padding for future expansion */
70 void (*_gtk_reserved1) (void);
71 void (*_gtk_reserved2) (void);
72 void (*_gtk_reserved3) (void);
73 void (*_gtk_reserved4) (void);
76 GType gtk_layout_get_type (void) G_GNUC_CONST;
77 GtkWidget* gtk_layout_new (GtkAdjustment *hadjustment,
78 GtkAdjustment *vadjustment);
79 GdkWindow* gtk_layout_get_bin_window (GtkLayout *layout);
80 void gtk_layout_put (GtkLayout *layout,
81 GtkWidget *child_widget,
85 void gtk_layout_move (GtkLayout *layout,
86 GtkWidget *child_widget,
90 void gtk_layout_set_size (GtkLayout *layout,
93 void gtk_layout_get_size (GtkLayout *layout,
97 #if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
99 GtkAdjustment* gtk_layout_get_hadjustment (GtkLayout *layout);
100 GtkAdjustment* gtk_layout_get_vadjustment (GtkLayout *layout);
101 void gtk_layout_set_hadjustment (GtkLayout *layout,
102 GtkAdjustment *adjustment);
103 void gtk_layout_set_vadjustment (GtkLayout *layout,
104 GtkAdjustment *adjustment);
110 #endif /* __GTK_LAYOUT_H__ */