Merged revisions 6293,6296-6306,6308 via svnmerge from
[ardour.git] / libs / gtkmm2 / gtk / src / eventbox.hg
1 /* $Id: eventbox.hg,v 1.2 2003/10/12 09:38:11 murrayc Exp $ */
2
3 /* eventbox.h
4  * 
5  * Copyright (C) 1998-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 namespace Gtk
27 {
28
29 /** Event capturing box.
30  *
31  * This widget adds an X Window where one does not
32  * normally appear, allowing you to capture events.
33  * It will receive any event which is specified
34  * with set_events().
35  *
36  * This widget is generally used to add Gtk::Tooltips, button presses,
37  * and clipping to widgets derived from Gtk::Misc.
38  *
39  * @ingroup Widgets
40  */
41 class EventBox : public Bin
42 {
43   _CLASS_GTKOBJECT(EventBox,GtkEventBox,GTK_EVENT_BOX,Gtk::Bin,GtkBin)
44 public:
45   _CTOR_DEFAULT()
46
47   _WRAP_METHOD(bool get_visible_window() const, gtk_event_box_get_visible_window)
48   _WRAP_METHOD(void set_visible_window(bool visible_window = true), gtk_event_box_set_visible_window)
49   _WRAP_METHOD(bool get_above_child() const, gtk_event_box_get_above_child)
50   _WRAP_METHOD(void set_above_child(bool above_child = true), gtk_event_box_set_above_child)
51
52   _WRAP_PROPERTY("visible-window", bool) 
53   _WRAP_PROPERTY("above-child", bool) 
54 };
55
56 } /* namespace Gtk */
57