EventBox

The #GtkEventBox widget is a subclass of #GtkBin which also has its own window. It is useful since it allows you to catch events for widgets which do not have their own window.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GtkEventBox.

Members

Functions

getAboveChild
bool getAboveChild()

Returns whether the event box window is above or below the windows of its child. See gtk.event_box.EventBox.setAboveChild for details.

getVisibleWindow
bool getVisibleWindow()

Returns whether the event box has a visible window. See gtk.event_box.EventBox.setVisibleWindow for details.

self
EventBox self()

Returns this, for use in with statements.

setAboveChild
void setAboveChild(bool aboveChild)

Set whether the event box window is positioned above the windows of its child, as opposed to below it. If the window is above, all events inside the event box will go to the event box. If the window is below, events in windows of child widgets will first got to that widget, and then to its parents.

setVisibleWindow
void setVisibleWindow(bool visibleWindow)

Set whether the event box uses a visible or invisible child window. The default is to use visible windows.

Properties

_gType
GType _gType [@property getter]
aboveChild
bool aboveChild [@property getter]
aboveChild
bool aboveChild [@property setter]
visibleWindow
bool visibleWindow [@property getter]
visibleWindow
bool visibleWindow [@property setter]

Static functions

_getGType
GType _getGType()
builder
EventBoxGidBuilder builder()

Get builder for gtk.event_box.EventBox

Inherited Members

From Bin

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Bin self()

Returns this, for use in with statements.

builder
BinGidBuilder builder()

Get builder for gtk.bin.Bin

getChild
gtk.widget.Widget getChild()

Gets the child of the #GtkBin, or null if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.