2 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #ifndef _GTKMM_VIEWPORT_H
4 #define _GTKMM_VIEWPORT_H
12 * Copyright (C) 2002 The gtkmm Development Team
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Library General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Library General Public License for more details.
24 * You should have received a copy of the GNU Library General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #include <gtkmm/bin.h>
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
33 typedef struct _GtkViewport GtkViewport;
34 typedef struct _GtkViewportClass GtkViewportClass;
35 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
39 { class Viewport_Class; } // namespace Gtk
43 /** An adapter which makes widgets scrollable.
49 class Viewport : public Bin
52 #ifndef DOXYGEN_SHOULD_SKIP_THIS
53 typedef Viewport CppObjectType;
54 typedef Viewport_Class CppClassType;
55 typedef GtkViewport BaseObjectType;
56 typedef GtkViewportClass BaseClassType;
57 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
61 #ifndef DOXYGEN_SHOULD_SKIP_THIS
64 friend class Viewport_Class;
65 static CppClassType viewport_class_;
68 Viewport(const Viewport&);
69 Viewport& operator=(const Viewport&);
72 explicit Viewport(const Glib::ConstructParams& construct_params);
73 explicit Viewport(GtkViewport* castitem);
75 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
78 #ifndef DOXYGEN_SHOULD_SKIP_THIS
79 static GType get_type() G_GNUC_CONST;
80 static GType get_base_type() G_GNUC_CONST;
83 ///Provides access to the underlying C GtkObject.
84 GtkViewport* gobj() { return reinterpret_cast<GtkViewport*>(gobject_); }
86 ///Provides access to the underlying C GtkObject.
87 const GtkViewport* gobj() const { return reinterpret_cast<GtkViewport*>(gobject_); }
91 //C++ methods used to invoke GTK+ virtual functions:
94 //GTK+ Virtual Functions (override these to change behaviour):
96 //Default Signal Handlers::
97 virtual void on_set_scroll_adjustments(Gtk::Adjustment* hadjustment, Gtk::Adjustment* vadjustment);
104 explicit Viewport(Adjustment& hadjustment, Adjustment& vadjustment);
107 /** Returns the horizontal adjustment of the viewport.
108 * @return The horizontal adjustment of @a viewport .
110 Gtk::Adjustment* get_hadjustment();
112 /** Returns the horizontal adjustment of the viewport.
113 * @return The horizontal adjustment of @a viewport .
115 const Gtk::Adjustment* get_hadjustment() const;
118 /** Returns the vertical adjustment of the viewport.
119 * @return The vertical adjustment of @a viewport .
121 Gtk::Adjustment* get_vadjustment();
123 /** Returns the vertical adjustment of the viewport.
124 * @return The vertical adjustment of @a viewport .
126 const Gtk::Adjustment* get_vadjustment() const;
129 /** Sets the horizontal adjustment of the viewport.
130 * @param adjustment A Gtk::Adjustment.
132 void set_hadjustment(Gtk::Adjustment* adjustment=0);
134 /** Sets the horizontal adjustment of the viewport.
135 * @param adjustment A Gtk::Adjustment.
137 void set_hadjustment(Gtk::Adjustment& adjustment);
140 /** Sets the vertical adjustment of the viewport.
141 * @param adjustment A Gtk::Adjustment.
143 void set_vadjustment(Gtk::Adjustment* adjustment=0);
145 /** Sets the vertical adjustment of the viewport.
146 * @param adjustment A Gtk::Adjustment.
148 void set_vadjustment(Gtk::Adjustment& adjustment);
151 /** Sets the shadow type of the viewport.
152 * @param type The new shadow type.
154 void set_shadow_type(ShadowType type);
157 /** Gets the shadow type of the Gtk::Viewport. See
159 * @return The shadow type.
161 ShadowType get_shadow_type() const;
164 Glib::SignalProxy2< void,Gtk::Adjustment*,Gtk::Adjustment* > signal_set_scroll_adjustments();
167 /** The GtkAdjustment that determines the values of the horizontal position for this viewport.
169 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
170 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
171 * the value of the property changes.
173 Glib::PropertyProxy<Gtk::Adjustment*> property_hadjustment() ;
175 /** The GtkAdjustment that determines the values of the horizontal position for this viewport.
177 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
178 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
179 * the value of the property changes.
181 Glib::PropertyProxy_ReadOnly<Gtk::Adjustment*> property_hadjustment() const;
183 /** The GtkAdjustment that determines the values of the vertical position for this viewport.
185 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
186 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
187 * the value of the property changes.
189 Glib::PropertyProxy<Gtk::Adjustment*> property_vadjustment() ;
191 /** The GtkAdjustment that determines the values of the vertical position for this viewport.
193 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
194 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
195 * the value of the property changes.
197 Glib::PropertyProxy_ReadOnly<Gtk::Adjustment*> property_vadjustment() const;
199 /** Determines how the shadowed box around the viewport is drawn.
201 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
202 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
203 * the value of the property changes.
205 Glib::PropertyProxy<ShadowType> property_shadow_type() ;
207 /** Determines how the shadowed box around the viewport is drawn.
209 * You rarely need to use properties because there are get_ and set_ methods for almost all of them.
210 * @return A PropertyProxy that allows you to get or set the property of the value, or receive notification when
211 * the value of the property changes.
213 Glib::PropertyProxy_ReadOnly<ShadowType> property_shadow_type() const;
218 } /* namespace Gtk */
223 /** @relates Gtk::Viewport
224 * @param object The C instance
225 * @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
226 * @result A C++ instance that wraps this C instance.
228 Gtk::Viewport* wrap(GtkViewport* object, bool take_copy = false);
230 #endif /* _GTKMM_VIEWPORT_H */