Debian Codegraph @

gtk/src/eventbox.hg

raw
1 /* Copyright (C) 1998-2002 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 #include <gtkmm/bin.h>
18 _DEFS(gtkmm,gtk)
19 _PINCLUDE(gtkmm/private/bin_p.h)
20
21 namespace Gtk
22 {
23
24 /** Event capturing box.
25 *
26 * This widget adds an X Window where one does not
27 * normally appear, allowing you to capture events.
28 * It will receive any event which is specified
29 * with set_events().
30 *
31 * This widget is generally used to add Gtk::Tooltip, button presses,
32 * and clipping to widgets derived from Gtk::Misc.
33 *
34 * @ingroup Widgets
35 */
36 class GTKMM_API EventBox : public Bin
37 {
38 _CLASS_GTKOBJECT(EventBox,GtkEventBox,GTK_EVENT_BOX,Gtk::Bin,GtkBin,,,GTKMM_API)
39 public:
40 _CTOR_DEFAULT()
41
42 _WRAP_METHOD(bool get_visible_window() const, gtk_event_box_get_visible_window)
43 _WRAP_METHOD(void set_visible_window(bool visible_window = true), gtk_event_box_set_visible_window)
44 _WRAP_METHOD(bool get_above_child() const, gtk_event_box_get_above_child)
45 _WRAP_METHOD(void set_above_child(bool above_child = true), gtk_event_box_set_above_child)
46
47 _WRAP_PROPERTY("visible-window", bool)
48 _WRAP_PROPERTY("above-child", bool)
49 };
50
51 } //namespace Gtk