The Gtk.Bin.Gtk_Bin 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 Gtk.Bin.Gtk_Bin, including Gtk.Window.Gtk_Window, Gtk.Button.Gtk_Button, Gtk.Frame.Gtk_Frame, Gtk.Handle_Box.Gtk_Handle_Box or Gtk.Scrolled_Window.Gtk_Scrolled_Window.
<group>Abstract base classes</group>
function "+"
(Widget : access Gtk_Bin_Record'Class)
return Gtk.Buildable.Gtk_Buildable
function "-"
(Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Bin
function Get_Child
(Bin : not null access Gtk_Bin_Record) return Gtk.Widget.Gtk_Widget
Gets the child of the Gtk.Bin.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.
the child of Bin, or null if it does not have a child.
function Get_Type return Glib.GType
type Gtk_Bin is access all Gtk_Bin_Record'Class;
type Gtk_Bin_Record is new Gtk_Container_Record with null record;
package Implements_Gtk_Buildable is new Glib.Types.Implements
(Gtk.Buildable.Gtk_Buildable, Gtk_Bin_Record, Gtk_Bin);