summaryrefslogtreecommitdiff
path: root/eel/eel-wrap-table.h
diff options
context:
space:
mode:
Diffstat (limited to 'eel/eel-wrap-table.h')
-rw-r--r--eel/eel-wrap-table.h97
1 files changed, 97 insertions, 0 deletions
diff --git a/eel/eel-wrap-table.h b/eel/eel-wrap-table.h
new file mode 100644
index 000000000..ab04e2b2e
--- /dev/null
+++ b/eel/eel-wrap-table.h
@@ -0,0 +1,97 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+
+/* eel-wrap-table.h - A table that can wrap its contents as needed.
+
+ Copyright (C) 2000 Eazel, Inc.
+
+ The Gnome 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.
+
+ The Gnome 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 the Gnome Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Authors: Ramiro Estrugo <ramiro@eazel.com>
+*/
+
+#ifndef EEL_WRAP_TABLE_H
+#define EEL_WRAP_TABLE_H
+
+#include <glib.h>
+#include <gtk/gtk.h>
+
+G_BEGIN_DECLS
+
+#define EEL_TYPE_WRAP_TABLE (eel_wrap_table_get_type ())
+#define EEL_WRAP_TABLE(obj) (GTK_CHECK_CAST ((obj), EEL_TYPE_WRAP_TABLE, EelWrapTable))
+#define EEL_WRAP_TABLE_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EEL_TYPE_WRAP_TABLE, EelWrapTableClass))
+#define EEL_IS_WRAP_TABLE(obj) (GTK_CHECK_TYPE ((obj), EEL_TYPE_WRAP_TABLE))
+#define EEL_IS_WRAP_TABLE_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), EEL_TYPE_WRAP_TABLE))
+
+typedef struct EelWrapTable EelWrapTable;
+typedef struct EelWrapTableClass EelWrapTableClass;
+typedef struct EelWrapTableDetails EelWrapTableDetails;
+
+struct EelWrapTable
+{
+ /* Superclass */
+ GtkContainer container;
+
+ /* Private things */
+ EelWrapTableDetails *details;
+};
+
+struct EelWrapTableClass
+{
+ GtkContainerClass parent_class;
+};
+
+typedef enum
+{
+ EEL_JUSTIFICATION_BEGINNING,
+ EEL_JUSTIFICATION_MIDDLE,
+ EEL_JUSTIFICATION_END
+} EelJustification;
+
+/* Public GtkWrapTable methods */
+GtkType eel_wrap_table_get_type (void);
+GtkWidget * eel_wrap_table_new (gboolean homogeneous);
+void eel_wrap_table_set_x_spacing (EelWrapTable *wrap_table,
+ guint x_spacing);
+guint eel_wrap_table_get_x_spacing (const EelWrapTable *wrap_table);
+void eel_wrap_table_set_y_spacing (EelWrapTable *wrap_table,
+ guint y_spacing);
+guint eel_wrap_table_get_y_spacing (const EelWrapTable *wrap_table);
+GtkWidget * eel_wrap_table_find_child_at_event_point (const EelWrapTable *wrap_table,
+ int x,
+ int y);
+void eel_wrap_table_set_x_justification (EelWrapTable *wrap_table,
+ EelJustification justification);
+EelJustification eel_wrap_table_get_x_justification (const EelWrapTable *wrap_table);
+void eel_wrap_table_set_y_justification (EelWrapTable *wrap_table,
+ EelJustification justification);
+EelJustification eel_wrap_table_get_y_justification (const EelWrapTable *wrap_table);
+void eel_wrap_table_set_homogeneous (EelWrapTable *wrap_table,
+ gboolean homogeneous);
+gboolean eel_wrap_table_get_homogeneous (const EelWrapTable *wrap_table);
+void eel_wrap_table_reorder_child (EelWrapTable *wrap_table,
+ GtkWidget *child,
+ int position);
+guint eel_wrap_table_get_num_children (const EelWrapTable *wrap_table);
+
+GtkWidget * eel_scrolled_wrap_table_new (gboolean homogenous,
+ GtkWidget **wrap_table_out);
+
+G_END_DECLS
+
+#endif /* EEL_WRAP_TABLE_H */
+
+