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

layout.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 00026 00027 #ifndef GFC_GTK_LAYOUT_HH 00028 #define GFC_GTK_LAYOUT_HH 00029 00030 #ifndef GFC_GTK_CONTAINER_HH 00031 #include <gfc/gtk/container.hh> 00032 #endif 00033 00034 #ifndef __GTK_LAYOUT_H__ 00035 #include <gtk/gtklayout.h> 00036 #endif 00037 00038 namespace GFC { 00039 00040 namespace Gtk { 00041 00052 00053 class Layout : public Container 00054 { 00055 friend class G::Object; 00056 00057 Layout(const Layout&); 00058 Layout& operator=(const Layout&); 00059 00060 protected: 00063 00064 explicit Layout(GtkLayout *layout, bool owns_reference = false); 00071 00075 00076 typedef G::Signal<void, Adjustment*, Adjustment*> SetScrollAdjustmentsSignalType; 00077 typedef G::SignalProxy<TypeInstance, SetScrollAdjustmentsSignalType> SetScrollAdjustmentsSignalProxy; 00078 static const SetScrollAdjustmentsSignalType set_scroll_adjustments_signal; 00085 00087 00088 public: 00091 00092 Layout(); 00094 00095 Layout(Adjustment *hadjustment, Adjustment *vadjustment); 00099 00100 virtual ~Layout(); 00102 00106 00107 GtkLayout* gtk_layout() const; 00109 00110 operator GtkLayout* () const; 00112 00113 Gdk::Window* bin_window() const; 00116 00117 void get_size(unsigned int *width, unsigned int *height); 00122 00123 Adjustment* get_hadjustment() const; 00130 00131 Adjustment* get_vadjustment() const; 00138 00142 00143 void put(Widget& child_widget, int x, int y); 00149 00150 void move(Widget& child_widget, int x, int y); 00155 00156 void set_size(unsigned int width, unsigned int height); 00160 00161 void set_hadjustment(Adjustment *adjustment); 00166 00167 void set_vadjustment(Adjustment *adjustment); 00172 00176 00177 const SetScrollAdjustmentsSignalProxy sig_set_scroll_adjustments(); 00180 00182 }; 00183 00184 } // namespace Gtk 00185 00186 } // namespace GFC 00187 00188 #include <gfc/gtk/inline/layout.inl> 00189 00190 #endif // GFC_GTK_LAYOUT_HH 00191

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