Reference Manual

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

# scrollbar.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
    00023
    00024 #ifndef INTI_GTK_SCROLLBAR_H
    00025 #define INTI_GTK_SCROLLBAR_H
    00026
    00027 #ifndef INTI_GTK_RANGE_H
    00028 #include <inti/gtk/range.h>
    00029 #endif
    00030
    00031 #ifndef __GTK_HSCROLLBAR_H__
    00032 #include <gtk/gtkhscrollbar.h>
    00033 #endif
    00034
    00035 #ifndef __GTK_VSCROLLBAR_H__
    00036 #include <gtk/gtkvscrollbar.h>
    00037 #endif
    00038
    00039 namespace Inti {
    00040
    00041 namespace Gtk {
    00042
    00043 class ScrollbarClass;
    00044 class HScrollbarClass;
    00045 class VScrollbarClass;
    00046
    00058
    00059 class Scrollbar : public Range
    00060 {
    00061         friend class G::Object;
    00062         friend class ScrollbarClass;
    00063
    00064         Scrollbar(const Scrollbar&);
    00065         Scrollbar& operator=(const Scrollbar&);
    00066
    00067 protected:
    00070
    00071         explicit Scrollbar(GtkScrollbar *scrollbar, bool reference = false);
    00078
    00079         virtual ~Scrollbar() = 0;
    00081
    00083
    00084 public:
    00087
    00088         GtkScrollbar* gtk_scrollbar() const { return (GtkScrollbar*)instance; }
    00090
    00091         GtkScrollbarClass* gtk_scrollbar_class() const;
    00093
    00094         operator GtkScrollbar* () const;
    00096
    00098 };
    00099
    00106
    00107 class HScrollbar : public Scrollbar
    00108 {
    00109         friend class G::Object;
    00110         friend class HScrollbarClass;
    00111
    00112         HScrollbar(const HScrollbar&);
    00113         HScrollbar& operator=(const HScrollbar&);
    00114
    00115 protected:
    00118
    00119         explicit HScrollbar(GtkHScrollbar *hscrollbar, bool reference = false);
    00126
    00128
    00129 public:
    00132
    00133         HScrollbar();
    00135
    00136         explicit HScrollbar(Adjustment& adjustment);
    00139
    00140         virtual ~HScrollbar();
    00142
    00145
    00146         GtkHScrollbar* gtk_hscrollbar() const { return (GtkHScrollbar*)instance; }
    00148
    00149         GtkHScrollbarClass* gtk_hscrollbar_class() const;
    00151
    00152         operator GtkHScrollbar* () const;
    00154
    00156 };
    00157
    00164
    00165 class VScrollbar : public Scrollbar
    00166 {
    00167         friend class G::Object;
    00168         friend class VScrollbarClass;
    00169
    00170         VScrollbar(const VScrollbar&);
    00171         VScrollbar& operator=(const VScrollbar&);
    00172
    00173 protected:
    00176
    00177         explicit VScrollbar(GtkVScrollbar *vscrollbar, bool reference = false);
    00184
    00186
    00187 public:
    00190
    00191         VScrollbar();
    00193
    00194         explicit VScrollbar(Adjustment& adjustment);
    00197
    00198         virtual ~VScrollbar();
    00200
    00204
    00205         GtkVScrollbar* gtk_vscrollbar() const { return (GtkVScrollbar*)instance; }
    00207
    00208         GtkVScrollbarClass* gtk_vscrollbar_class() const;
    00210
    00211         operator GtkVScrollbar* () const;
    00213
    00215 };
    00216
    00217 } // namespace Gtk
    00218
    00219 } // namespace Inti
    00220
    00221 #endif // INTI_GTK_SCROLLBAR_H
    00222

Main Page - Footer