Main Page - Header
Author: The Inti Development Team

Reference Manual

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

# arrow.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_ARROW_H
    00026 #define INTI_GTK_ARROW_H
    00027
    00028 #ifndef INTI_GTK_MISC_H
    00029 #include <inti/gtk/misc.h>
    00030 #endif
    00031
    00032 #ifndef __GTK_ARROW_H__
    00033 #include <gtk/gtkarrow.h>
    00034 #endif
    00035
    00036 namespace Inti {
    00037
    00038 namespace Gtk {
    00039
    00040 class ArrowClass;
    00041
    00052
    00053 class Arrow : public Misc
    00054 {
    00055         friend class G::Object;
    00056         friend class ArrowClass;
    00057
    00058         Arrow(const Arrow&);
    00059         Arrow& operator=(const Arrow&);
    00060
    00061 protected:
    00064
    00065         explicit Arrow(GtkArrow *arrow, bool reference = false);
    00072
    00074 //  Properties
    00075
    00076         typedef G::Property<ArrowType, int> ArrowTypePropertyType;
    00077         typedef G::PropertyProxy<G::Object, ArrowTypePropertyType> ArrowTypePropertyProxy;
    00078         static const ArrowTypePropertyType arrow_type_property;
    00079
    00080         typedef G::Property<ShadowType, int> ShadowTypePropertyType;
    00081         typedef G::PropertyProxy<G::Object, ShadowTypePropertyType> ShadowTypePropertyProxy;
    00082         static const ShadowTypePropertyType shadow_type_property;
    00083
    00084 public:
    00087
    00088         Arrow();
    00090
    00091         Arrow(ArrowType arrow_type, ShadowType shadow_type);
    00095
    00096         virtual ~Arrow();
    00098
    00102
    00103         GtkArrow* gtk_arrow() const { return (GtkArrow*)instance; }
    00105
    00106         GtkArrowClass* gtk_arrow_class() const;
    00108
    00109         operator GtkArrow* () const;
    00111
    00115
    00116         void set(ArrowType arrow_type, ShadowType shadow_type);
    00120
    00124
    00125         const ArrowTypePropertyProxy prop_arrow_type()
    00126         {
    00127                 return ArrowTypePropertyProxy(this, &arrow_type_property);
    00128         }
    00130
    00131
    00132         const ShadowTypePropertyProxy prop_shadow_type()
    00133         {
    00134                 return ShadowTypePropertyProxy(this, &shadow_type_property);
    00135         }
    00137
    00139 };
    00140
    00141 } // namespace Gtk
    00142
    00143 } // namespace Inti
    00144
    00145 #endif // INTI_GTK_ARROW_H
    00146

Main Page - Footer