1 /* $Id: viewport.hg,v 1.3 2006/04/12 11:11:25 murrayc Exp $ */
5 * Copyright (C) 2002 The gtkmm Development Team
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <gtkmm/bin.h>
24 _PINCLUDE(gtkmm/private/bin_p.h)
30 /** An adapter which makes widgets scrollable.
35 class Viewport : public Bin
37 _CLASS_GTKOBJECT(Viewport,GtkViewport,GTK_VIEWPORT,Gtk::Bin,GtkBin)
40 _WRAP_CTOR(Viewport(Adjustment& hadjustment, Adjustment& vadjustment), gtk_viewport_new)
43 _WRAP_METHOD(Gtk::Adjustment* get_hadjustment(),
44 gtk_viewport_get_hadjustment)
45 _WRAP_METHOD(const Gtk::Adjustment* get_hadjustment() const,
46 gtk_viewport_get_hadjustment, constversion)
48 _WRAP_METHOD(Gtk::Adjustment* get_vadjustment(),
49 gtk_viewport_get_vadjustment)
50 _WRAP_METHOD(const Gtk::Adjustment* get_vadjustment() const,
51 gtk_viewport_get_vadjustment, constversion)
53 _WRAP_METHOD(void set_hadjustment(Gtk::Adjustment* adjustment=0),
54 gtk_viewport_set_hadjustment)
55 _WRAP_METHOD(void set_hadjustment(Gtk::Adjustment& adjustment),
56 gtk_viewport_set_hadjustment)
58 _WRAP_METHOD(void set_vadjustment(Gtk::Adjustment* adjustment=0),
59 gtk_viewport_set_vadjustment)
60 _WRAP_METHOD(void set_vadjustment(Gtk::Adjustment& adjustment),
61 gtk_viewport_set_vadjustment)
63 _WRAP_METHOD(void set_shadow_type(ShadowType type),
64 gtk_viewport_set_shadow_type)
66 _WRAP_METHOD(ShadowType get_shadow_type() const,
67 gtk_viewport_get_shadow_type)
69 _WRAP_SIGNAL(void set_scroll_adjustments(Gtk::Adjustment* hadjustment,
70 Gtk::Adjustment* vadjustment),
71 "set_scroll_adjustments")
73 _WRAP_PROPERTY("hadjustment", Gtk::Adjustment*)
74 _WRAP_PROPERTY("vadjustment", Gtk::Adjustment*)
75 _WRAP_PROPERTY("shadow_type", ShadowType)