EventBox

The gtk.EventBox widget is a subclass of gtk.Bin 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(GtkEventBox* gtkEventBox, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new gtk.EventBox

Members

Functions

getAboveChild
bool getAboveChild()

Returns whether the event box window is above or below the windows of its child. See Event.boxSetAboveChild for details.

getEventBoxStruct
GtkEventBox* getEventBoxStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getVisibleWindow
bool getVisibleWindow()

Returns whether the event box has a visible window. See Event.boxSetVisibleWindow for details.

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.

Static functions

getType
GType getType()

Variables

gtkEventBox
GtkEventBox* gtkEventBox;

the main Gtk struct

Inherited Members

From Bin

gtkBin
GtkBin* gtkBin;

the main Gtk struct

getBinStruct
GtkBin* getBinStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getChild
Widget getChild()

Gets the child of the gtk.Bin, 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.