Blame gtk/gtktable.h

Packit 98cdb6
/* GTK - The GIMP Toolkit
Packit 98cdb6
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
Packit 98cdb6
 *
Packit 98cdb6
 * This library is free software; you can redistribute it and/or
Packit 98cdb6
 * modify it under the terms of the GNU Lesser General Public
Packit 98cdb6
 * License as published by the Free Software Foundation; either
Packit 98cdb6
 * version 2 of the License, or (at your option) any later version.
Packit 98cdb6
 *
Packit 98cdb6
 * This library is distributed in the hope that it will be useful,
Packit 98cdb6
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 98cdb6
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
Packit 98cdb6
 * Lesser General Public License for more details.
Packit 98cdb6
 *
Packit 98cdb6
 * You should have received a copy of the GNU Lesser General Public
Packit 98cdb6
 * License along with this library; if not, write to the
Packit 98cdb6
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Packit 98cdb6
 * Boston, MA 02111-1307, USA.
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
/*
Packit 98cdb6
 * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
Packit 98cdb6
 * file for a list of people on the GTK+ Team.  See the ChangeLog
Packit 98cdb6
 * files for a list of changes.  These files are distributed with
Packit 98cdb6
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
Packit 98cdb6
 */
Packit 98cdb6
Packit 98cdb6
#ifndef __GTK_TABLE_H__
Packit 98cdb6
#define __GTK_TABLE_H__
Packit 98cdb6
Packit 98cdb6
Packit 98cdb6
#if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
Packit 98cdb6
#error "Only <gtk/gtk.h> can be included directly."
Packit 98cdb6
#endif
Packit 98cdb6
Packit 98cdb6
#include <gtk/gtkcontainer.h>
Packit 98cdb6
Packit 98cdb6
Packit 98cdb6
G_BEGIN_DECLS
Packit 98cdb6
Packit 98cdb6
#define GTK_TYPE_TABLE			(gtk_table_get_type ())
Packit 98cdb6
#define GTK_TABLE(obj)			(G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_TABLE, GtkTable))
Packit 98cdb6
#define GTK_TABLE_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_TABLE, GtkTableClass))
Packit 98cdb6
#define GTK_IS_TABLE(obj)		(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_TABLE))
Packit 98cdb6
#define GTK_IS_TABLE_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TABLE))
Packit 98cdb6
#define GTK_TABLE_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TABLE, GtkTableClass))
Packit 98cdb6
Packit 98cdb6
Packit 98cdb6
typedef struct _GtkTable	GtkTable;
Packit 98cdb6
typedef struct _GtkTableClass	GtkTableClass;
Packit 98cdb6
typedef struct _GtkTableChild	GtkTableChild;
Packit 98cdb6
typedef struct _GtkTableRowCol	GtkTableRowCol;
Packit 98cdb6
Packit 98cdb6
struct _GtkTable
Packit 98cdb6
{
Packit 98cdb6
  GtkContainer container;
Packit 98cdb6
Packit 98cdb6
  GList *GSEAL (children);
Packit 98cdb6
  GtkTableRowCol *GSEAL (rows);
Packit 98cdb6
  GtkTableRowCol *GSEAL (cols);
Packit 98cdb6
  guint16 GSEAL (nrows);
Packit 98cdb6
  guint16 GSEAL (ncols);
Packit 98cdb6
  guint16 GSEAL (column_spacing);
Packit 98cdb6
  guint16 GSEAL (row_spacing);
Packit 98cdb6
  guint GSEAL (homogeneous) : 1;
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
struct _GtkTableClass
Packit 98cdb6
{
Packit 98cdb6
  GtkContainerClass parent_class;
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
struct _GtkTableChild
Packit 98cdb6
{
Packit 98cdb6
  GtkWidget *widget;
Packit 98cdb6
  guint16 left_attach;
Packit 98cdb6
  guint16 right_attach;
Packit 98cdb6
  guint16 top_attach;
Packit 98cdb6
  guint16 bottom_attach;
Packit 98cdb6
  guint16 xpadding;
Packit 98cdb6
  guint16 ypadding;
Packit 98cdb6
  guint xexpand : 1;
Packit 98cdb6
  guint yexpand : 1;
Packit 98cdb6
  guint xshrink : 1;
Packit 98cdb6
  guint yshrink : 1;
Packit 98cdb6
  guint xfill : 1;
Packit 98cdb6
  guint yfill : 1;
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
struct _GtkTableRowCol
Packit 98cdb6
{
Packit 98cdb6
  guint16 requisition;
Packit 98cdb6
  guint16 allocation;
Packit 98cdb6
  guint16 spacing;
Packit 98cdb6
  guint need_expand : 1;
Packit 98cdb6
  guint need_shrink : 1;
Packit 98cdb6
  guint expand : 1;
Packit 98cdb6
  guint shrink : 1;
Packit 98cdb6
  guint empty : 1;
Packit 98cdb6
};
Packit 98cdb6
Packit 98cdb6
Packit 98cdb6
GType	   gtk_table_get_type	      (void) G_GNUC_CONST;
Packit 98cdb6
GtkWidget* gtk_table_new	      (guint		rows,
Packit 98cdb6
				       guint		columns,
Packit 98cdb6
				       gboolean		homogeneous);
Packit 98cdb6
void	   gtk_table_resize	      (GtkTable	       *table,
Packit 98cdb6
				       guint            rows,
Packit 98cdb6
				       guint            columns);
Packit 98cdb6
void	   gtk_table_attach	      (GtkTable	       *table,
Packit 98cdb6
				       GtkWidget       *child,
Packit 98cdb6
				       guint		left_attach,
Packit 98cdb6
				       guint		right_attach,
Packit 98cdb6
				       guint		top_attach,
Packit 98cdb6
				       guint		bottom_attach,
Packit 98cdb6
				       GtkAttachOptions xoptions,
Packit 98cdb6
				       GtkAttachOptions yoptions,
Packit 98cdb6
				       guint		xpadding,
Packit 98cdb6
				       guint		ypadding);
Packit 98cdb6
void	   gtk_table_attach_defaults  (GtkTable	       *table,
Packit 98cdb6
				       GtkWidget       *widget,
Packit 98cdb6
				       guint		left_attach,
Packit 98cdb6
				       guint		right_attach,
Packit 98cdb6
				       guint		top_attach,
Packit 98cdb6
				       guint		bottom_attach);
Packit 98cdb6
void	   gtk_table_set_row_spacing  (GtkTable	       *table,
Packit 98cdb6
				       guint		row,
Packit 98cdb6
				       guint		spacing);
Packit 98cdb6
guint      gtk_table_get_row_spacing  (GtkTable        *table,
Packit 98cdb6
				       guint            row);
Packit 98cdb6
void	   gtk_table_set_col_spacing  (GtkTable	       *table,
Packit 98cdb6
				       guint		column,
Packit 98cdb6
				       guint		spacing);
Packit 98cdb6
guint      gtk_table_get_col_spacing  (GtkTable        *table,
Packit 98cdb6
				       guint            column);
Packit 98cdb6
void	   gtk_table_set_row_spacings (GtkTable	       *table,
Packit 98cdb6
				       guint		spacing);
Packit 98cdb6
guint      gtk_table_get_default_row_spacing (GtkTable        *table);
Packit 98cdb6
void	   gtk_table_set_col_spacings (GtkTable	       *table,
Packit 98cdb6
				       guint		spacing);
Packit 98cdb6
guint      gtk_table_get_default_col_spacing (GtkTable        *table);
Packit 98cdb6
void	   gtk_table_set_homogeneous  (GtkTable	       *table,
Packit 98cdb6
				       gboolean		homogeneous);
Packit 98cdb6
gboolean   gtk_table_get_homogeneous  (GtkTable        *table);
Packit 98cdb6
void       gtk_table_get_size         (GtkTable        *table,
Packit 98cdb6
                                       guint           *rows,
Packit 98cdb6
                                       guint           *columns);
Packit 98cdb6
Packit 98cdb6
Packit 98cdb6
G_END_DECLS
Packit 98cdb6
Packit 98cdb6
#endif /* __GTK_TABLE_H__ */