1 /* $Id: eventbox.hg,v 1.2 2003/10/12 09:38:11 murrayc Exp $ */
5 * Copyright (C) 1998-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)
29 /** Event capturing box.
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
36 * This widget is generally used to add Gtk::Tooltips, button presses,
37 * and clipping to widgets derived from Gtk::Misc.
41 class EventBox : public Bin
43 _CLASS_GTKOBJECT(EventBox,GtkEventBox,GTK_EVENT_BOX,Gtk::Bin,GtkBin)
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)
52 _WRAP_PROPERTY("visible-window", bool)
53 _WRAP_PROPERTY("above-child", bool)