GFC Logo GFC Title Logo
Reference Manual
Main Page  |  Namespace List  |  Alphabetical List  |  Class List  |  File List

scrollbar.hh

Go to the documentation of this file.
00001 /* GFC-UI: GTK+ Foundation Classes (User Interface Library) 00002 * Copyright (C) 2002-2004 The GFC 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 GFC_GTK_SCROLLBAR_HH 00025 #define GFC_GTK_SCROLLBAR_HH 00026 00027 #ifndef GFC_GTK_RANGE_HH 00028 #include <gfc/gtk/range.hh> 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 GFC { 00040 00041 namespace Gtk { 00042 00054 00055 class Scrollbar : public Range 00056 { 00057 friend class G::Object; 00058 00059 Scrollbar(const Scrollbar&); 00060 Scrollbar& operator=(const Scrollbar&); 00061 00062 protected: 00065 00066 explicit Scrollbar(GtkScrollbar *scrollbar, bool owns_reference = false); 00073 00074 virtual ~Scrollbar() = 0; 00076 00078 00079 public: 00082 00083 GtkScrollbar* gtk_scrollbar() const; 00085 00086 operator GtkScrollbar* () const; 00088 00090 }; 00091 00098 00099 class HScrollbar : public Scrollbar 00100 { 00101 friend class G::Object; 00102 00103 HScrollbar(const HScrollbar&); 00104 HScrollbar& operator=(const HScrollbar&); 00105 00106 protected: 00109 00110 explicit HScrollbar(GtkHScrollbar *hscrollbar, bool owns_reference = false); 00117 00119 00120 public: 00123 00124 HScrollbar(); 00126 00127 explicit HScrollbar(Adjustment& adjustment); 00130 00131 virtual ~HScrollbar(); 00133 00136 00137 GtkHScrollbar* gtk_hscrollbar() const; 00139 00140 operator GtkHScrollbar* () const; 00142 00144 }; 00145 00152 00153 class VScrollbar : public Scrollbar 00154 { 00155 friend class G::Object; 00156 00157 VScrollbar(const VScrollbar&); 00158 VScrollbar& operator=(const VScrollbar&); 00159 00160 protected: 00163 00164 explicit VScrollbar(GtkVScrollbar *vscrollbar, bool owns_reference = false); 00171 00173 00174 public: 00177 00178 VScrollbar(); 00180 00181 explicit VScrollbar(Adjustment& adjustment); 00184 00185 virtual ~VScrollbar(); 00187 00191 00192 GtkVScrollbar* gtk_vscrollbar() const; 00194 00195 operator GtkVScrollbar* () const; 00197 00199 }; 00200 00201 } // namespace Gtk 00202 00203 } // namespace GFC 00204 00205 #include <gfc/gtk/inline/scrollbar.inl> 00206 00207 #endif // GFC_GTK_SCROLLBAR_HH 00208

Generated on Tue Aug 24 00:34:32 2004 for GFC-UI by doxygen 1.3.8