| 1 | /* GTK - The GIMP Toolkit | 
| 2 |  * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald | 
| 3 |  * | 
| 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. | 
| 8 |  * | 
| 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. | 
| 13 |  * | 
| 14 |  * You should have received a copy of the GNU Lesser General Public | 
| 15 |  * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 
| 16 |  * | 
| 17 |  * GtkLayout: Widget for scrolling of arbitrary-sized areas. | 
| 18 |  * | 
| 19 |  * Copyright Owen Taylor, 1998 | 
| 20 |  */ | 
| 21 |  | 
| 22 | /* | 
| 23 |  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS | 
| 24 |  * file for a list of people on the GTK+ Team.  See the ChangeLog | 
| 25 |  * files for a list of changes.  These files are distributed with | 
| 26 |  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. | 
| 27 |  */ | 
| 28 |  | 
| 29 | #ifndef __GTK_LAYOUT_H__ | 
| 30 | #define __GTK_LAYOUT_H__ | 
| 31 |  | 
| 32 |  | 
| 33 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) | 
| 34 | #error "Only <gtk/gtk.h> can be included directly." | 
| 35 | #endif | 
| 36 |  | 
| 37 | #include <gtk/gtkcontainer.h> | 
| 38 |  | 
| 39 |  | 
| 40 | G_BEGIN_DECLS | 
| 41 |  | 
| 42 | #define GTK_TYPE_LAYOUT            (gtk_layout_get_type ()) | 
| 43 | #define GTK_LAYOUT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_LAYOUT, GtkLayout)) | 
| 44 | #define GTK_LAYOUT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_LAYOUT, GtkLayoutClass)) | 
| 45 | #define GTK_IS_LAYOUT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_LAYOUT)) | 
| 46 | #define GTK_IS_LAYOUT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_LAYOUT)) | 
| 47 | #define GTK_LAYOUT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_LAYOUT, GtkLayoutClass)) | 
| 48 |  | 
| 49 |  | 
| 50 | typedef struct _GtkLayout              GtkLayout; | 
| 51 | typedef struct _GtkLayoutPrivate       GtkLayoutPrivate; | 
| 52 | typedef struct _GtkLayoutClass         GtkLayoutClass; | 
| 53 |  | 
| 54 | struct _GtkLayout | 
| 55 | { | 
| 56 |   GtkContainer container; | 
| 57 |  | 
| 58 |   /*< private >*/ | 
| 59 |   GtkLayoutPrivate *priv; | 
| 60 | }; | 
| 61 |  | 
| 62 | struct _GtkLayoutClass | 
| 63 | { | 
| 64 |   GtkContainerClass parent_class; | 
| 65 |  | 
| 66 |   /* Padding for future expansion */ | 
| 67 |   void (*_gtk_reserved1) (void); | 
| 68 |   void (*_gtk_reserved2) (void); | 
| 69 |   void (*_gtk_reserved3) (void); | 
| 70 |   void (*_gtk_reserved4) (void); | 
| 71 | }; | 
| 72 |  | 
| 73 | GDK_AVAILABLE_IN_ALL | 
| 74 | GType          gtk_layout_get_type        (void) G_GNUC_CONST; | 
| 75 | GDK_AVAILABLE_IN_ALL | 
| 76 | GtkWidget*     gtk_layout_new             (GtkAdjustment *hadjustment, | 
| 77 | 				           GtkAdjustment *vadjustment); | 
| 78 | GDK_AVAILABLE_IN_ALL | 
| 79 | GdkWindow*     gtk_layout_get_bin_window  (GtkLayout     *layout); | 
| 80 | GDK_AVAILABLE_IN_ALL | 
| 81 | void           gtk_layout_put             (GtkLayout     *layout, | 
| 82 | 		                           GtkWidget     *child_widget, | 
| 83 | 		                           gint           x, | 
| 84 | 		                           gint           y); | 
| 85 |  | 
| 86 | GDK_AVAILABLE_IN_ALL | 
| 87 | void           gtk_layout_move            (GtkLayout     *layout, | 
| 88 | 		                           GtkWidget     *child_widget, | 
| 89 | 		                           gint           x, | 
| 90 | 		                           gint           y); | 
| 91 |  | 
| 92 | GDK_AVAILABLE_IN_ALL | 
| 93 | void           gtk_layout_set_size        (GtkLayout     *layout, | 
| 94 | 			                   guint          width, | 
| 95 | 			                   guint          height); | 
| 96 | GDK_AVAILABLE_IN_ALL | 
| 97 | void           gtk_layout_get_size        (GtkLayout     *layout, | 
| 98 | 					   guint         *width, | 
| 99 | 					   guint         *height); | 
| 100 |  | 
| 101 | GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_hadjustment) | 
| 102 | GtkAdjustment* gtk_layout_get_hadjustment (GtkLayout     *layout); | 
| 103 | GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_get_vadjustment) | 
| 104 | GtkAdjustment* gtk_layout_get_vadjustment (GtkLayout     *layout); | 
| 105 | GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_hadjustment) | 
| 106 | void           gtk_layout_set_hadjustment (GtkLayout     *layout, | 
| 107 |                                            GtkAdjustment *adjustment); | 
| 108 | GDK_DEPRECATED_IN_3_0_FOR(gtk_scrollable_set_vadjustment) | 
| 109 | void           gtk_layout_set_vadjustment (GtkLayout     *layout, | 
| 110 |                                            GtkAdjustment *adjustment); | 
| 111 |  | 
| 112 |  | 
| 113 | G_END_DECLS | 
| 114 |  | 
| 115 | #endif /* __GTK_LAYOUT_H__ */ | 
| 116 |  |