Gtk.Bin

Entities

Tagged Types

Access Types

Subprograms

Generic Instantiations

Description

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
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Bin
Parameters
Interf
Return Value

Get_Child

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.

Parameters
Bin
Return Value

the child of Bin, or null if it does not have a child.

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Bin

type Gtk_Bin is access all Gtk_Bin_Record'Class;

Gtk_Bin_Record

type Gtk_Bin_Record is new Gtk_Container_Record with null record;

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Bin_Record, Gtk_Bin);