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

misc.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  
00024 
00025 #ifndef INTI_GTK_MISC_H
00026 #define INTI_GTK_MISC_H
00027 
00028 #ifndef INTI_GTK_WIDGET_H
00029 #include <inti/gtk/widget.h>
00030 #endif
00031 
00032 #ifndef __GTK_MISC_H__
00033 #include <gtk/gtkmisc.h>
00034 #endif
00035 
00036 namespace Inti {
00037 
00038 namespace Gtk {
00039 
00040 class MiscClass;
00041 
00052 
00053 class Misc : public Widget
00054 {
00055         friend class G::Object;
00056         friend class MiscClass;
00057 
00058         Misc(const Misc&);
00059         Misc& operator=(const Misc&);
00060         
00061 protected:
00064 
00065         Misc();
00067 
00068         explicit Misc(GtkMisc *misc, bool reference = false);
00075 
00077 //  Properties
00078 
00079         typedef G::Property<float> XAlignPropertyType;
00080         typedef G::PropertyProxy<G::Object, XAlignPropertyType> XAlignPropertyProxy;
00081         static const XAlignPropertyType xalign_property;
00082 
00083         typedef G::Property<float> YAlignPropertyType;
00084         typedef G::PropertyProxy<G::Object, YAlignPropertyType> YAlignPropertyProxy;
00085         static const YAlignPropertyType yalign_property;
00086 
00087         typedef G::Property<int> XPadPropertyType;
00088         typedef G::PropertyProxy<G::Object, XPadPropertyType> XPadPropertyProxy;
00089         static const XPadPropertyType xpad_property;
00090 
00091         typedef G::Property<int> YPadPropertyType;
00092         typedef G::PropertyProxy<G::Object, YPadPropertyType> YPadPropertyProxy;
00093         static const YPadPropertyType ypad_property;
00094 
00095 public:
00098 
00099         virtual ~Misc();
00101         
00105 
00106         GtkMisc* gtk_misc() const { return (GtkMisc*)instance; }
00108 
00109         GtkMiscClass* gtk_misc_class() const;
00111 
00112         operator GtkMisc* () const;
00114 
00115         void get_alignment(float *xalign, float *yalign);
00119 
00120         void get_padding(int *xpad, int *ypad);
00124 
00128 
00129         void set_alignment(float xalign, float yalign);
00133 
00134         void set_padding(int xpad, int ypad);
00138 
00142         
00143         const XAlignPropertyProxy prop_xalign()
00144         {
00145                 return XAlignPropertyProxy(this, &xalign_property);
00146         }
00148 
00149         const YAlignPropertyProxy prop_yalign()
00150         {
00151                 return YAlignPropertyProxy(this, &yalign_property);
00152         }
00154 
00155         const XPadPropertyProxy prop_xpad()
00156         {
00157                 return XPadPropertyProxy(this, &xpad_property);
00158         }
00160 
00161         const YPadPropertyProxy prop_ypad()
00162         {
00163                 return YPadPropertyProxy(this, &ypad_property);
00164         }
00166 
00168 };
00169 
00170 } // namespace Gtk
00171 
00172 } // namespace Inti
00173 
00174 #endif // INTI_GTK_MISC_H
00175 
Main Page - Footer


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