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

scrolledwindow.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 00024 00025 #ifndef GFC_GTK_SCROLLED_WINDOW_HH 00026 #define GFC_GTK_SCROLLED_WINDOW_HH 00027 00028 #ifndef GFC_GTK_BIN_HH 00029 #include <gfc/gtk/bin.hh> 00030 #endif 00031 00032 #ifndef GFC_GTK_ADJUSTMENT_HH 00033 #include <gfc/gtk/adjustment.hh> 00034 #endif 00035 00036 #ifndef __GTK_SCROLLED_WINDOW_H__ 00037 #include <gtk/gtkscrolledwindow.h> 00038 #endif 00039 00040 namespace GFC { 00041 00042 namespace Gtk { 00043 00044 class HScrollbar; 00045 class VScrollbar; 00046 00077 00078 class ScrolledWindow : public Bin 00079 { 00080 friend class G::Object; 00081 00082 ScrolledWindow(const ScrolledWindow&); 00083 ScrolledWindow& operator=(const ScrolledWindow&); 00084 00085 protected: 00088 00089 explicit ScrolledWindow(GtkScrolledWindow *scrolled_window, bool owns_reference = false); 00096 00098 00099 public: 00102 00103 ScrolledWindow(); 00106 00107 ScrolledWindow(Adjustment *hadjustment, Adjustment *vadjustment); 00115 00116 virtual ~ScrolledWindow(); 00118 00122 00123 GtkScrolledWindow* gtk_scrolled_window() const; 00125 00126 operator GtkScrolledWindow* () const; 00128 00129 HScrollbar* hscrollbar() const; 00131 00132 VScrollbar* vscrollbar() const; 00134 00135 Adjustment* get_hadjustment() const; 00139 00140 Adjustment* get_vadjustment() const; 00144 00145 void get_policy(PolicyType *hscrollbar_policy, PolicyType *vscrollbar_policy) const; 00149 00150 CornerType get_placement() const; 00153 00154 ShadowType get_shadow_type() const; 00157 00161 00162 void set_hadjustment(Adjustment *hadjustment); 00165 00166 void set_vadjustment(Adjustment *vadjustment); 00169 00170 void set_policy(PolicyType hscrollbar_policy, PolicyType vscrollbar_policy); 00180 00181 void set_policy_automatic(); 00184 00185 void set_placement(CornerType window_placement); 00192 00193 void set_shadow_type(ShadowType type); 00196 00197 void add_with_viewport(Widget& child); 00212 00214 }; 00215 00216 } // namespace Gtk 00217 00218 } // namespace GFC 00219 00220 #include <gfc/gtk/inline/scrolledwindow.inl> 00221 00222 #endif // GFC_GTK_SCROLLED_WINDOW_HH 00223

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