package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Bin_Record, Gtk_Bin);
type Gtk_Bin_Record is new Gtk_Container_Record with null record;
type Gtk_Bin is access all Gtk_Bin_Record'Class;
function Get_Type return Glib.GType;
function Get_Child
( | Bin | : not null access Gtk_Bin_Record) return Gtk.Widget.Gtk_Widget; |
function "+"
( | Widget | : access Gtk_Bin_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Bin renames Implements_Gtk_Buildable.To_Object; |
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.