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(GtkEventBox* gtkEventBox, bool ownedRef)

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

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_set_above_child() for details.

getEventBoxStruct
GtkEventBox* getEventBoxStruct()

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 gtk_event_box_set_visible_window() 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.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
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()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
GType getType()
getChild
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.

Meta