Reference Manual

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

# fixed.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_FIXED_H
    00026 #define INTI_GTK_FIXED_H
    00027
    00028 #ifndef INTI_GTK_CONTAINER_H
    00029 #include <inti/gtk/container.h>
    00030 #endif
    00031
    00032 #ifndef __GTK_FIXED_H__
    00033 #include <gtk/gtkfixed.h>
    00034 #endif
    00035
    00036 namespace Inti {
    00037
    00038 namespace Gtk {
    00039
    00040 class FixedClass;
    00041
    00074
    00075 class Fixed : public Container
    00076 {
    00077         friend class G::Object;
    00078         friend class FixedClass;
    00079
    00080         Fixed(const Fixed&);
    00081         Fixed& operator=(const Fixed&);
    00082
    00083 protected:
    00086
    00087         explicit Fixed(GtkFixed *fixed, bool reference = false);
    00094
    00096 //  Child properties
    00097
    00098         typedef Gtk::ChildProperty<int> XPropertyType;
    00099         typedef Gtk::ChildPropertyProxy<Container, XPropertyType> XPropertyProxy;
    00100         static const XPropertyType x_property;
    00101
    00102         typedef Gtk::ChildProperty<int> YPropertyType;
    00103         typedef Gtk::ChildPropertyProxy<Container, YPropertyType> YPropertyProxy;
    00104         static const YPropertyType y_property;
    00105
    00106 public:
    00109
    00110         Fixed();
    00112
    00113         virtual ~Fixed();
    00115
    00119
    00120         GtkFixed* gtk_fixed() const { return (GtkFixed*)instance; }
    00122
    00123         GtkFixedClass* gtk_fixed_class() const;
    00125
    00126         operator GtkFixed* () const;
    00128
    00129         bool get_has_window() const;
    00131
    00135
    00136         void put(Widget& widget, int x, int y);
    00141
    00142         void move(Widget& widget, int x, int y);
    00147
    00148         void set_has_window(bool has_window);
    00155
    00159
    00160         const XPropertyProxy prop_x()
    00161         {
    00162                 return XPropertyProxy(this, &x_property);
    00163         }
    00165
    00166         const YPropertyProxy prop_y()
    00167         {
    00168                 return YPropertyProxy(this, &y_property);
    00169         }
    00171
    00173 };
    00174
    00175 } // namespace Gtk
    00176
    00177 } // namespace Inti
    00178
    00179 #endif // INTI_GTK_FIXED_H
    00180

Main Page - Footer