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

paned.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_PANED_HH 00026 #define GFC_GTK_PANED_HH 00027 00028 #ifndef GFC_GTK_CONTAINER_HH 00029 #include <gfc/gtk/container.hh> 00030 #endif 00031 00032 #ifndef __GTK_HPANED_H__ 00033 #include <gtk/gtkhpaned.h> 00034 #endif 00035 00036 #ifndef __GTK_VPANED_H__ 00037 #include <gtk/gtkvpaned.h> 00038 #endif 00039 00040 namespace GFC { 00041 00042 namespace Gtk { 00043 00080 00081 class Paned : public Container 00082 { 00083 friend class G::Object; 00084 00085 Paned(const Paned&); 00086 Paned& operator=(const Paned&); 00087 00088 protected: 00091 00092 Paned(); 00094 00095 explicit Paned(GtkPaned *paned, bool owns_reference = false); 00102 00103 virtual ~Paned() = 0; 00105 00107 00108 public: 00111 00112 GtkPaned* gtk_paned() const; 00114 00115 operator GtkPaned* () const; 00117 00118 Gdk::Window* handle() const; 00120 00121 int get_position() const; 00123 00124 Widget* get_child1() const; 00127 00128 Widget* get_child2() const; 00131 00135 00136 void add1(Widget& child); 00141 00142 void add2(Widget& child); 00147 00148 void pack1(Widget& child, bool resize = false, bool shrink = true); 00153 00154 void pack2(Widget& child, bool resize = true, bool shrink = true); 00159 00160 void set_position(int position); 00163 00165 }; 00166 00173 00174 class HPaned : public Paned 00175 { 00176 friend class G::Object; 00177 00178 HPaned(const HPaned&); 00179 HPaned& operator=(const HPaned&); 00180 00181 protected: 00184 00185 explicit HPaned(GtkHPaned *hpaned, bool owns_reference = false); 00192 00194 00195 public: 00198 00199 HPaned(); 00201 00202 virtual ~HPaned(); 00204 00208 00209 GtkHPaned* gtk_hpaned() const; 00211 00212 operator GtkHPaned* () const; 00214 00216 }; 00217 00224 00225 class VPaned : public Paned 00226 { 00227 friend class G::Object; 00228 00229 VPaned(const VPaned&); 00230 VPaned& operator=(const VPaned&); 00231 00232 protected: 00235 00236 explicit VPaned(GtkVPaned *vpaned, bool owns_reference = false); 00243 00245 00246 public: 00249 00250 VPaned(); 00252 00253 virtual ~VPaned(); 00255 00259 00260 GtkVPaned* gtk_vpaned() const; 00262 00263 operator GtkVPaned* () const; 00265 00267 }; 00268 00269 } // namespace Gtk 00270 00271 } // namespace GFC 00272 00273 #include <gfc/gtk/inline/paned.inl> 00274 00275 #endif // GFC_GTK_PANED_HH 00276

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