Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

sizegroup.h

Go to the documentation of this file.
00001 /*  Inti: Integrated Foundation Classes
00002  *  Copyright (C) 2002 The Inti 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  
00025 
00026 #ifndef INTI_GTK_SIZE_GROUP_H
00027 #define INTI_GTK_SIZE_GROUP_H
00028 
00029 #ifndef INTI_G_OBJECT_H
00030 #include <inti/glib/object.h>
00031 #endif
00032 
00033 #ifndef INTI_GTK_ENUMS_H
00034 #include <inti/gtk/enums.h>
00035 #endif
00036 
00037 namespace Inti {
00038 
00039 namespace Gtk {
00040 
00041 class SizeGroupClass;
00042 class Widget;
00043 
00071 
00072 class SizeGroup : public G::Object
00073 {
00074         friend class G::Object;
00075         friend class SizeGroupClass;
00076 
00077         SizeGroup(const SizeGroup&);
00078         SizeGroup& operator=(const SizeGroup&);
00079         
00080 protected:
00083 
00084         explicit SizeGroup(GtkSizeGroup *size_group, bool reference = true);
00091 
00093 //  Properties
00094 
00095         typedef G::Property<SizeGroupMode, int> ModePropertyType;
00096         typedef G::PropertyProxy<G::Object, ModePropertyType> ModePropertyProxy;
00097         static const ModePropertyType mode_property;
00098 
00099 public:
00102 
00103         explicit SizeGroup(SizeGroupMode mode = SIZE_GROUP_HORIZONTAL);
00106         
00107         virtual ~SizeGroup();
00109         
00113 
00114         GtkSizeGroup* gtk_size_group() const { return (GtkSizeGroup*)instance; }
00116 
00117         GtkSizeGroupClass* gtk_size_group_class() const;
00119 
00120         operator GtkSizeGroup* () const;
00122 
00123         SizeGroupMode get_mode() const;
00126 
00130 
00131         void set_mode(SizeGroupMode mode);
00139 
00140         void add_widget(Widget& widget);
00148 
00149         void remove_widget(Widget& widget);
00152         
00156 
00157         const ModePropertyProxy prop_mode()
00158         {
00159                 return ModePropertyProxy(this, &mode_property);
00160         }
00163         
00165 };
00166 
00167 } // namespace Gtk
00168 
00169 } // namespace Inti
00170 
00171 #endif // INTI_GTK_SIZE_GROUP_H
00172 
Main Page - Footer


Generated on Sun Sep 14 20:08:04 2003 for Inti by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002