add new sigc++2 directory
[ardour.git] / libs / gtkmm2 / gtk / src / viewport.hg
1 /* $Id: viewport.hg,v 1.3 2006/04/12 11:11:25 murrayc Exp $ */
2
3 /* viewport.h
4  * 
5  * Copyright (C) 2002 The gtkmm Development Team
6  *
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.
11  *
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.
16  *
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.
20  */
21
22 #include <gtkmm/bin.h>
23 _DEFS(gtkmm,gtk)
24 _PINCLUDE(gtkmm/private/bin_p.h)
25
26
27 namespace Gtk {
28 class Adjustment;
29
30 /** An adapter which makes widgets scrollable.
31  * 
32  * @ingroup Widgets
33  * @ingroup Containers
34  */
35 class Viewport : public Bin
36 {
37   _CLASS_GTKOBJECT(Viewport,GtkViewport,GTK_VIEWPORT,Gtk::Bin,GtkBin)
38 public:
39
40   _WRAP_CTOR(Viewport(Adjustment& hadjustment, Adjustment& vadjustment), gtk_viewport_new)
41
42
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)
47
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)
52
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)
57
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)
62
63   _WRAP_METHOD(void set_shadow_type(ShadowType type),
64                gtk_viewport_set_shadow_type)
65
66   _WRAP_METHOD(ShadowType get_shadow_type() const,
67                gtk_viewport_get_shadow_type)
68
69   _WRAP_SIGNAL(void set_scroll_adjustments(Gtk::Adjustment* hadjustment,
70                                            Gtk::Adjustment* vadjustment),
71                "set_scroll_adjustments")
72
73   _WRAP_PROPERTY("hadjustment", Gtk::Adjustment*)
74   _WRAP_PROPERTY("vadjustment", Gtk::Adjustment*)
75   _WRAP_PROPERTY("shadow_type", ShadowType)
76 };
77
78 }  /* namespace Gtk */
79