gtkpaned.h 3.5 KB
Newer Older
Cody Russell's avatar
Cody Russell committed
1
/* GTK - The GIMP Toolkit
Elliot Lee's avatar
Elliot Lee committed
2
3
4
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * This library is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU Lesser General Public
Elliot Lee's avatar
Elliot Lee committed
6
7
8
9
10
11
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 * Lesser General Public License for more details.
Elliot Lee's avatar
Elliot Lee committed
13
 *
14
 * You should have received a copy of the GNU Lesser General Public
Javier Jardón's avatar
Javier Jardón committed
15
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
Elliot Lee's avatar
Elliot Lee committed
16
 */
17
18

/*
19
 * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
20
21
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
22
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23
24
 */

25
26
27
#ifndef __GTK_PANED_H__
#define __GTK_PANED_H__

28
#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
29
30
31
#error "Only <gtk/gtk.h> can be included directly."
#endif

Matthias Clasen's avatar
Matthias Clasen committed
32
#include <gtk/gtkwidget.h>
Elliot Lee's avatar
Elliot Lee committed
33

34
G_BEGIN_DECLS
Elliot Lee's avatar
Elliot Lee committed
35

36
#define GTK_TYPE_PANED                  (gtk_paned_get_type ())
Manish Singh's avatar
Manish Singh committed
37
38
#define GTK_PANED(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PANED, GtkPaned))
#define GTK_IS_PANED(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PANED))
Elliot Lee's avatar
Elliot Lee committed
39

Matthias Clasen's avatar
Matthias Clasen committed
40
typedef struct _GtkPaned GtkPaned;
Elliot Lee's avatar
Elliot Lee committed
41

42
GDK_AVAILABLE_IN_ALL
43
GType       gtk_paned_get_type     (void) G_GNUC_CONST;
44
GDK_AVAILABLE_IN_ALL
45
GtkWidget * gtk_paned_new          (GtkOrientation orientation);
46
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
47
48
void        gtk_paned_set_start_child (GtkPaned       *paned,
                                       GtkWidget      *child);
49
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
50
GtkWidget * gtk_paned_get_start_child (GtkPaned       *paned);
51
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
52
53
void        gtk_paned_set_resize_start_child (GtkPaned *paned,
                                              gboolean  resize);
54
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
55
gboolean    gtk_paned_get_resize_start_child (GtkPaned *paned);
56

57
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
58
59
void        gtk_paned_set_end_child   (GtkPaned       *paned,
                                       GtkWidget      *child);
60
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
61
62
63
64
65
66
67
GtkWidget * gtk_paned_get_end_child   (GtkPaned       *paned);

GDK_AVAILABLE_IN_ALL
void        gtk_paned_set_shrink_start_child (GtkPaned *paned,
                                              gboolean  resize);
GDK_AVAILABLE_IN_ALL
gboolean    gtk_paned_get_shrink_start_child (GtkPaned *paned);
68

69
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
70
71
72
73
74
void        gtk_paned_set_resize_end_child (GtkPaned *paned,
                                              gboolean  resize);
GDK_AVAILABLE_IN_ALL
gboolean    gtk_paned_get_resize_end_child (GtkPaned *paned);

75
GDK_AVAILABLE_IN_ALL
Matthias Clasen's avatar
Matthias Clasen committed
76
77
78
79
80
81
void        gtk_paned_set_shrink_end_child (GtkPaned *paned,
                                              gboolean  resize);
GDK_AVAILABLE_IN_ALL
gboolean    gtk_paned_get_shrink_end_child (GtkPaned *paned);

GDK_AVAILABLE_IN_ALL
Benjamin Otte's avatar
Benjamin Otte committed
82
int         gtk_paned_get_position (GtkPaned       *paned);
Matthias Clasen's avatar
Matthias Clasen committed
83
84
GDK_AVAILABLE_IN_ALL
void        gtk_paned_set_position (GtkPaned       *paned,
Benjamin Otte's avatar
Benjamin Otte committed
85
                                    int             position);
86

Matthias Clasen's avatar
Matthias Clasen committed
87
GDK_AVAILABLE_IN_ALL
88
89
void        gtk_paned_set_wide_handle (GtkPaned    *paned,
                                       gboolean     wide);
Matthias Clasen's avatar
Matthias Clasen committed
90
GDK_AVAILABLE_IN_ALL
91
92
gboolean    gtk_paned_get_wide_handle (GtkPaned    *paned);

93

94
G_END_DECLS
Elliot Lee's avatar
Elliot Lee committed
95
96

#endif /* __GTK_PANED_H__ */