GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

table.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-2004 The GFC Development Team. 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Library General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Library General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00024 00025 #ifndef GFC_GTK_TABLE_HH 00026 #define GFC_GTK_TABLE_HH 00027 00028 #ifndef GFC_GTK_CONTAINER_HH 00029 #include <gfc/gtk/container.hh> 00030 #endif 00031 00032 #ifndef __GTK_TABLE_H__ 00033 #include <gtk/gtktable.h> 00034 #endif 00035 00036 namespace GFC { 00037 00038 namespace Gtk { 00039 00052 00053 class Table : public Container 00054 { 00055 friend class G::Object; 00056 00057 Table(const Table&); 00058 Table& operator=(const Table&); 00059 00060 protected: 00063 00064 explicit Table(GtkTable *table, bool owns_reference = false); 00071 00073 00074 public: 00077 00078 Table(unsigned int rows, unsigned int columns, bool homogeneous = false); 00087 00088 virtual ~Table(); 00090 00094 00095 GtkTable* gtk_table() const; 00097 00098 operator GtkTable* () const; 00100 00101 unsigned int get_row_spacing(unsigned int row) const; 00105 00106 unsigned int get_column_spacing(unsigned int column) const; 00111 00112 unsigned int get_default_row_spacing() const; 00117 00118 unsigned int get_default_col_spacing() const; 00123 00124 bool get_homogeneous() const; 00127 00131 00132 void resize(unsigned int rows, unsigned int columns); 00137 00138 void attach 00139 ( 00140 Widget& child, 00141 unsigned int left_attach, 00142 unsigned int right_attach, 00143 unsigned int top_attach, 00144 unsigned int bottom_attach, 00145 AttachOptionsField xoptions = EXPAND | FILL, 00146 AttachOptionsField yoptions = EXPAND | FILL, 00147 unsigned int xpadding = 0, 00148 unsigned int ypadding = 0 00149 ); 00165 00166 void set_row_spacing(unsigned int row, unsigned int spacing); 00170 00171 void set_col_spacing(unsigned int column, unsigned int spacing); 00175 00176 void set_row_spacings(unsigned int spacing); 00179 00180 void set_col_spacings(unsigned int spacing); 00183 00184 void set_spacings(unsigned int row_spacing, unsigned int col_spacing); 00189 00190 void set_homogeneous(bool homogeneous); 00193 00195 }; 00196 00197 } // namespace Gtk 00198 00199 } // namespace GFC 00200 00201 #include <gfc/gtk/inline/table.inl> 00202 00203 #endif // GFC_GTK_TABLE_HH 00204

Generated on Tue Aug 24 00:34:32 2004 for GFC-UI by doxygen 1.3.8