---
name: "Gtk2::EventBox"
section: "3pm"
platform: "linux"
package: "libgtk2-perl-doc"
version: "2:1.24992-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/Gtk2::EventBox"
---

# Gtk2::EventBox(3pm)

wrapper for GtkEventBox

## NAME

Gtk2::EventBox - wrapper for GtkEventBox

## HIERARCHY

```
  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Bin
                           +----Gtk2::EventBox
```

## INTERFACES

```
  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
```

## METHODS

### widget = Gtk2::EventBox-\>new

### boolean = $event\_box-\>get\_above\_child

Since: gtk+ 2.4

### $event\_box-\>set\_above\_child ($above\_child)

- •

  `$above_child` (boolean)

Since: gtk+ 2.4

### boolean = $event\_box-\>get\_visible\_window

Since: gtk+ 2.4

### $event\_box-\>set\_visible\_window ($visible\_window)

- •

  `$visible_window` (boolean)

Since: gtk+ 2.4

## PROPERTIES

- 'above-child' (boolean : default false : readable / writable / private)

  Whether the event-trapping window of the eventbox is above the window of the child widget as opposed to below it.

- 'visible-window' (boolean : default true : readable / writable / private)

  Whether the event box is visible, as opposed to invisible and only used to trap events.

## SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Gtk2 for a full notice.
