Ardour  8.7-14-g57a6773833
tk/ytkmm/ytkmm/gtkmm/layout.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_LAYOUT_H
4 #define _GTKMM_LAYOUT_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: layout.hg,v 1.4 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* layout.h
13  *
14  * Copyright (C) 2002 The gtkmm Development Team
15  *
16  * This library is free software; you can redistribute it and/or
17  * modify it under the terms of the GNU Lesser General Public
18  * License as published by the Free Software Foundation; either
19  * version 2.1 of the License, or (at your option) any later version.
20  *
21  * This library is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24  * Lesser General Public License for more details.
25  *
26  * You should have received a copy of the GNU Lesser General Public
27  * License along with this library; if not, write to the Free
28  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29  */
30 
31 #include <gtkmm/container.h>
32 #include <gtkmm/adjustment.h>
33 #include <gdkmm/window.h>
34 
35 
36 #ifndef DOXYGEN_SHOULD_SKIP_THIS
37 typedef struct _GtkLayout GtkLayout;
38 typedef struct _GtkLayoutClass GtkLayoutClass;
39 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
40 
41 
42 namespace Gtk
43 { class Layout_Class; } // namespace Gtk
44 namespace Gtk
45 {
46 
64 class Layout : public Container
65 {
66  public:
67 #ifndef DOXYGEN_SHOULD_SKIP_THIS
68  typedef Layout CppObjectType;
69  typedef Layout_Class CppClassType;
70  typedef GtkLayout BaseObjectType;
71  typedef GtkLayoutClass BaseClassType;
72 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
73 
74  virtual ~Layout();
75 
76 #ifndef DOXYGEN_SHOULD_SKIP_THIS
77 
78 private:
79  friend class Layout_Class;
80  static CppClassType layout_class_;
81 
82  // noncopyable
83  Layout(const Layout&);
84  Layout& operator=(const Layout&);
85 
86 protected:
87  explicit Layout(const Glib::ConstructParams& construct_params);
88  explicit Layout(GtkLayout* castitem);
89 
90 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
91 
92 public:
93 #ifndef DOXYGEN_SHOULD_SKIP_THIS
94  static GType get_type() G_GNUC_CONST;
95 
96 
97  static GType get_base_type() G_GNUC_CONST;
98 #endif
99 
101  GtkLayout* gobj() { return reinterpret_cast<GtkLayout*>(gobject_); }
102 
104  const GtkLayout* gobj() const { return reinterpret_cast<GtkLayout*>(gobject_); }
105 
106 
107 public:
108  //C++ methods used to invoke GTK+ virtual functions:
109 
110 protected:
111  //GTK+ Virtual Functions (override these to change behaviour):
112 
113  //Default Signal Handlers::
115  virtual void on_set_scroll_adjustments(Adjustment* hadj, Adjustment* vadj);
116 
117 
118 private:
119 
120 
121 public:
123  Layout(Adjustment& hadjustment, Adjustment& vadjustment);
124 
125 
130  Glib::RefPtr<Gdk::Window> get_bin_window();
131 
136  Glib::RefPtr<const Gdk::Window> get_bin_window() const;
137 
138 
146  void put(Widget& child_widget, int x, int y);
147 
154  void move(Widget& child_widget, int x, int y);
155 
161  void set_size(guint width, guint height);
162 
170  void get_size(guint& width, guint& height) const;
171 
172 
179  void set_hadjustment(Adjustment& adjustment);
180 
183 
194 
204  const Adjustment* get_hadjustment() const;
205 
212  void set_vadjustment(Adjustment& adjustment);
213 
216 
227 
237  const Adjustment* get_vadjustment() const;
238 
239  // See Gtk::Widget::set_scroll_adjustments()
240 
247  Glib::SignalProxy2< void,Adjustment*,Adjustment* > signal_set_scroll_adjustments();
248 
249 
255  Glib::PropertyProxy< Adjustment* > property_hadjustment() ;
256 
262  Glib::PropertyProxy_ReadOnly< Adjustment* > property_hadjustment() const;
263 
269  Glib::PropertyProxy< Adjustment* > property_vadjustment() ;
270 
276  Glib::PropertyProxy_ReadOnly< Adjustment* > property_vadjustment() const;
277 
283  Glib::PropertyProxy< guint > property_width() ;
284 
290  Glib::PropertyProxy_ReadOnly< guint > property_width() const;
291 
297  Glib::PropertyProxy< guint > property_height() ;
298 
304  Glib::PropertyProxy_ReadOnly< guint > property_height() const;
305 
306 
307 };
308 
309 } /* namespace Gtk */
310 
311 
312 namespace Glib
313 {
322  Gtk::Layout* wrap(GtkLayout* object, bool take_copy = false);
323 } //namespace Glib
324 
325 
326 #endif /* _GTKMM_LAYOUT_H */
327 
const Adjustment * get_hadjustment() const
Glib::SignalProxy2< void, Adjustment *, Adjustment * > signal_set_scroll_adjustments()
Glib::RefPtr< Gdk::Window > get_bin_window()
Glib::PropertyProxy< guint > property_width()
void set_hadjustment(Adjustment &adjustment)
Glib::PropertyProxy< guint > property_height()
GtkLayout * gobj()
Provides access to the underlying C GtkObject.
Glib::PropertyProxy< Adjustment * > property_vadjustment()
virtual ~Layout()
Glib::PropertyProxy_ReadOnly< Adjustment * > property_hadjustment() const
Glib::PropertyProxy< Adjustment * > property_hadjustment()
const Adjustment * get_vadjustment() const
void set_hadjustment()
Creates the Adjustment.
Glib::PropertyProxy_ReadOnly< guint > property_height() const
void get_size(guint &width, guint &height) const
const GtkLayout * gobj() const
Provides access to the underlying C GtkObject.
void move(Widget &child_widget, int x, int y)
void put(Widget &child_widget, int x, int y)
void set_vadjustment()
Creates the Adjustment.
Adjustment * get_hadjustment()
Gtk::Layout * wrap(GtkLayout *object, bool take_copy=false)
Glib::PropertyProxy_ReadOnly< guint > property_width() const
Glib::PropertyProxy_ReadOnly< Adjustment * > property_vadjustment() const
Adjustment * get_vadjustment()
virtual void on_set_scroll_adjustments(Adjustment *hadj, Adjustment *vadj)
This is a default handler for the signal signal_set_scroll_adjustments().
Glib::RefPtr< const Gdk::Window > get_bin_window() const
void set_vadjustment(Adjustment &adjustment)
void set_size(guint width, guint height)
Layout(Adjustment &hadjustment, Adjustment &vadjustment)
Definition: ardour_ui.h:188
gint height
Definition: xcursors.h:1
gint width
Definition: xcursors.h:1