aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-paned/e-paned.h
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-25 07:00:39 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-25 07:00:39 +0800
commite033af05d726f5307efa12879ad0f6f3e88bb041 (patch)
treec012df66efcbf3536ee3a63a6995ce89a082cff2 /widgets/e-paned/e-paned.h
parent057745cfb6c4b4a0543446b0d7fbe2661d2164f2 (diff)
downloadgsoc2013-evolution-e033af05d726f5307efa12879ad0f6f3e88bb041.tar
gsoc2013-evolution-e033af05d726f5307efa12879ad0f6f3e88bb041.tar.gz
gsoc2013-evolution-e033af05d726f5307efa12879ad0f6f3e88bb041.tar.bz2
gsoc2013-evolution-e033af05d726f5307efa12879ad0f6f3e88bb041.tar.lz
gsoc2013-evolution-e033af05d726f5307efa12879ad0f6f3e88bb041.tar.xz
gsoc2013-evolution-e033af05d726f5307efa12879ad0f6f3e88bb041.tar.zst
gsoc2013-evolution-e033af05d726f5307efa12879ad0f6f3e88bb041.zip
Added widgets/e-paned/Makefile.
2000-05-24 Christopher James Lahey <clahey@helixcode.com> * configure.in: Added widgets/e-paned/Makefile. * tests/ui-tests/message-browser.c: Switched from GtkPaned to EPaned. * widgets/Makefile.am: Added e-paned directory. * widgets/e-paned/, widgets/e-paned/.cvsignore, widgets/e-paned/Makefile.am, widgets/e-paned/e-hpaned.c, widgets/e-paned/e-hpaned.h, widgets/e-paned/e-paned.c, widgets/e-paned/e-paned.h, widgets/e-paned/e-vpaned.c, widgets/e-paned/e-vpaned.h: New widget based completely on GtkPaned from 1.4. This will be more advanced soon. From calendar/ChangeLog: 2000-05-24 Christopher James Lahey <clahey@helixcode.com> * gui/Makefile.am: Added libepaned.a. * gui/gnome-cal.c: Switched from GtkPaned to EPaned. From mail/ChangeLog: 2000-05-24 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added libepaned.a. * folder-browser.c: Switched from GtkPaned to EPaned. From shell/ChangeLog: 2000-05-24 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added libepaned.a. * e-shell-view.c: Switched from GtkPaned to EPaned. From widgets/shortcut-bar/ChangeLog: 2000-05-24 Christopher James Lahey <clahey@helixcode.com> * Makefile.am: Added libepaned.a. * test-shortcut-bar.c: Switched from GtkPaned to EPaned. svn path=/trunk/; revision=3191
Diffstat (limited to 'widgets/e-paned/e-paned.h')
-rw-r--r--widgets/e-paned/e-paned.h124
1 files changed, 124 insertions, 0 deletions
diff --git a/widgets/e-paned/e-paned.h b/widgets/e-paned/e-paned.h
new file mode 100644
index 0000000000..2b07a24bda
--- /dev/null
+++ b/widgets/e-paned/e-paned.h
@@ -0,0 +1,124 @@
+/* EPaned - A slightly more advanced paned widget.
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * Author: Christopher James Lahey <clahey@helixcode.com>
+ *
+ * based on GtkPaned from Gtk+. Gtk+ Copyright notice follows.
+ */
+
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+/*
+ * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS
+ * file for a list of people on the GTK+ Team. See the ChangeLog
+ * files for a list of changes. These files are distributed with
+ * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
+ */
+
+#ifndef __E_PANED_H__
+#define __E_PANED_H__
+
+#include <gtk/gtkcontainer.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+
+#define E_TYPE_PANED (e_paned_get_type ())
+#define E_PANED(obj) (GTK_CHECK_CAST ((obj), E_TYPE_PANED, EPaned))
+#define E_PANED_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), E_TYPE_PANED, EPanedClass))
+#define E_IS_PANED(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_PANED))
+#define E_IS_PANED_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), E_TYPE_PANED))
+#define E_PANED_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), E_TYPE_PANED, EPanedClass))
+
+
+typedef struct _EPaned EPaned;
+typedef struct _EPanedClass EPanedClass;
+
+struct _EPaned
+{
+ GtkContainer container;
+
+ GtkWidget *child1;
+ GtkWidget *child2;
+
+ GdkWindow *handle;
+ GdkGC *xor_gc;
+ GdkCursorType cursor_type;
+
+ /*< public >*/
+ guint16 handle_size;
+
+ /*< private >*/
+ guint16 handle_width;
+ guint16 handle_height;
+
+ gint child1_size;
+ gint last_allocation;
+ gint min_position;
+ gint max_position;
+
+ guint position_set : 1;
+ guint in_drag : 1;
+ guint child1_shrink : 1;
+ guint child1_resize : 1;
+ guint child2_shrink : 1;
+ guint child2_resize : 1;
+
+ gint16 handle_xpos;
+ gint16 handle_ypos;
+};
+
+struct _EPanedClass
+{
+ GtkContainerClass parent_class;
+};
+
+
+GtkType e_paned_get_type (void);
+void e_paned_add1 (EPaned *paned,
+ GtkWidget *child);
+void e_paned_add2 (EPaned *paned,
+ GtkWidget *child);
+void e_paned_pack1 (EPaned *paned,
+ GtkWidget *child,
+ gboolean resize,
+ gboolean shrink);
+void e_paned_pack2 (EPaned *paned,
+ GtkWidget *child,
+ gboolean resize,
+ gboolean shrink);
+gint e_paned_get_position (EPaned *paned);
+void e_paned_set_position (EPaned *paned,
+ gint position);
+void e_paned_set_handle_size (EPaned *paned,
+ guint16 size);
+
+/* Internal function */
+void e_paned_compute_position (EPaned *paned,
+ gint allocation,
+ gint child1_req,
+ gint child2_req);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* __E_PANED_H__ */