Bin

The GtkBin widget is a container with just one child. It is not very useful itself, but it is useful for deriving subclasses, since it provides common code needed for handling a single child widget.

Many GTK+ widgets are subclasses of GtkBin, including GtkWindow, GtkButton, GtkFrame, GtkHandleBox or GtkScrolledWindow

Constructors

this
this(GtkBin* gtkBin, bool ownedRef = false)

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

Members

Functions

getBinStruct
GtkBin* getBinStruct(bool transferOwnership = false)

Get the main Gtk struct

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.

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkBin
GtkBin* gtkBin;

the main Gtk struct