Forum und email

GtkBin

A container widget with only one child.

オブジェクトの階層

GObject
`-- GtkObject
       `-- GtkWidget
              `-- GtkContainer
                     `-- GtkBin

Direct Subclasses

説明

The GtkBin widget is a container that is capable of holding only one child. It is not very useful on its own, but is often used for deriving subclasses, since it provides code for needed for handling a single widget child. All widgets derived from GtkBin therefore can only contain one immediate child, although this child may itself contain multiple widgets.

Since GtkBin is an abstract base class, there is no constructor for it. However, many useful widgets are subclasses of GtkBin, including GtkButton, GtkFrame, GtkHandleBox and GtkWindow. You can use get_child() to get the child object.

メソッド

get_child()
  Returns the child of the GtkBin.

フィールド

child:
  The child widget