Ardour  9.0-pre0-582-g084a23a80d
viewport.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 // Generated by gmmproc 2.45.3 -- DO NOT MODIFY!
3 #ifndef _GTKMM_VIEWPORT_H
4 #define _GTKMM_VIEWPORT_H
5 
6 
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
9 
10 /* $Id: viewport.hg,v 1.3 2006/04/12 11:11:25 murrayc Exp $ */
11 
12 /* viewport.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/bin.h>
32 
33 
34 #ifndef DOXYGEN_SHOULD_SKIP_THIS
35 typedef struct _GtkViewport GtkViewport;
36 typedef struct _GtkViewportClass GtkViewportClass;
37 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
38 
39 
40 namespace Gtk
41 { class Viewport_Class; } // namespace Gtk
42 namespace Gtk {
43 class Adjustment;
44 
51 class Viewport : public Bin
52 {
53  public:
54 #ifndef DOXYGEN_SHOULD_SKIP_THIS
55  typedef Viewport CppObjectType;
56  typedef Viewport_Class CppClassType;
57  typedef GtkViewport BaseObjectType;
58  typedef GtkViewportClass BaseClassType;
59 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
60 
61  virtual ~Viewport();
62 
63 #ifndef DOXYGEN_SHOULD_SKIP_THIS
64 
65 private:
66  friend class Viewport_Class;
67  static CppClassType viewport_class_;
68 
69  // noncopyable
70  Viewport(const Viewport&);
71  Viewport& operator=(const Viewport&);
72 
73 protected:
74  explicit Viewport(const Glib::ConstructParams& construct_params);
75  explicit Viewport(GtkViewport* castitem);
76 
77 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
78 
79 public:
80 #ifndef DOXYGEN_SHOULD_SKIP_THIS
81  static GType get_type() G_GNUC_CONST;
82 
83 
84  static GType get_base_type() G_GNUC_CONST;
85 #endif
86 
88  GtkViewport* gobj() { return reinterpret_cast<GtkViewport*>(gobject_); }
89 
91  const GtkViewport* gobj() const { return reinterpret_cast<GtkViewport*>(gobject_); }
92 
93 
94 public:
95  //C++ methods used to invoke GTK+ virtual functions:
96 
97 protected:
98  //GTK+ Virtual Functions (override these to change behaviour):
99 
100  //Default Signal Handlers::
102  virtual void on_set_scroll_adjustments(Gtk::Adjustment* hadjustment, Gtk::Adjustment* vadjustment);
103 
104 
105 private:
106 
107 public:
108 
109  explicit Viewport(Adjustment& hadjustment, Adjustment& vadjustment);
110 
111 
117 
123 
124 
130 
136 
137 
142  void set_hadjustment(Gtk::Adjustment* adjustment = 0);
143 
148  void set_hadjustment(Gtk::Adjustment& adjustment);
149 
150 
155  void set_vadjustment(Gtk::Adjustment* adjustment = 0);
156 
161  void set_vadjustment(Gtk::Adjustment& adjustment);
162 
163 
169 
170 
177 
178 
183  Glib::RefPtr<Gdk::Window> get_bin_window();
184 
189  Glib::RefPtr<const Gdk::Window> get_bin_window() const;
190 
191 
196  Glib::RefPtr<Gdk::Window> get_view_window();
197 
202  Glib::RefPtr<const Gdk::Window> get_view_window() const;
203 
204 
211  Glib::SignalProxy2< void,Gtk::Adjustment*,Gtk::Adjustment* > signal_set_scroll_adjustments();
212 
213 
219  Glib::PropertyProxy< Gtk::Adjustment* > property_hadjustment() ;
220 
226  Glib::PropertyProxy_ReadOnly< Gtk::Adjustment* > property_hadjustment() const;
227 
233  Glib::PropertyProxy< Gtk::Adjustment* > property_vadjustment() ;
234 
240  Glib::PropertyProxy_ReadOnly< Gtk::Adjustment* > property_vadjustment() const;
241 
247  Glib::PropertyProxy< ShadowType > property_shadow_type() ;
248 
254  Glib::PropertyProxy_ReadOnly< ShadowType > property_shadow_type() const;
255 
256 
257 };
258 
259 } /* namespace Gtk */
260 
261 
262 namespace Glib
263 {
272  Gtk::Viewport* wrap(GtkViewport* object, bool take_copy = false);
273 } //namespace Glib
274 
275 
276 #endif /* _GTKMM_VIEWPORT_H */
277 
Definition: bin.h:55
void set_vadjustment(Gtk::Adjustment *adjustment=0)
Glib::PropertyProxy_ReadOnly< Gtk::Adjustment * > property_hadjustment() const
Glib::PropertyProxy< ShadowType > property_shadow_type()
const Gtk::Adjustment * get_vadjustment() const
const GtkViewport * gobj() const
Provides access to the underlying C GtkObject.
Definition: viewport.h:91
virtual ~Viewport()
Viewport(Adjustment &hadjustment, Adjustment &vadjustment)
Gtk::Viewport * wrap(GtkViewport *object, bool take_copy=false)
Gtk::Adjustment * get_vadjustment()
Glib::PropertyProxy_ReadOnly< Gtk::Adjustment * > property_vadjustment() const
void set_hadjustment(Gtk::Adjustment &adjustment)
Glib::RefPtr< Gdk::Window > get_bin_window()
Glib::SignalProxy2< void, Gtk::Adjustment *, Gtk::Adjustment * > signal_set_scroll_adjustments()
Glib::RefPtr< const Gdk::Window > get_bin_window() const
const Gtk::Adjustment * get_hadjustment() const
Glib::PropertyProxy_ReadOnly< ShadowType > property_shadow_type() const
void set_vadjustment(Gtk::Adjustment &adjustment)
void set_hadjustment(Gtk::Adjustment *adjustment=0)
Glib::PropertyProxy< Gtk::Adjustment * > property_hadjustment()
void set_shadow_type(ShadowType type)
Glib::PropertyProxy< Gtk::Adjustment * > property_vadjustment()
GtkViewport * gobj()
Provides access to the underlying C GtkObject.
Definition: viewport.h:88
ShadowType get_shadow_type() const
Glib::RefPtr< Gdk::Window > get_view_window()
Gtk::Adjustment * get_hadjustment()
virtual void on_set_scroll_adjustments(Gtk::Adjustment *hadjustment, Gtk::Adjustment *vadjustment)
This is a default handler for the signal signal_set_scroll_adjustments().
Glib::RefPtr< const Gdk::Window > get_view_window() const
Definition: ardour_ui.h:188