Gtk.Bin - Classes - Gtk 3.0 (original) (raw)
g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container
Subclasses:
Gtk.ActionBar, Gtk.Alignment, Gtk.Button, Gtk.ComboBox, Gtk.EventBox, Gtk.Expander, Gtk.FlowBoxChild, Gtk.Frame, Gtk.HandleBox, Gtk.ListBoxRow, Gtk.MenuItem, Gtk.Overlay, Gtk.Popover, Gtk.Revealer, Gtk.ScrolledWindow, Gtk.SearchBar, Gtk.StackSidebar, Gtk.ToolItem, Gtk.Viewport, Gtk.Window
Methods¶
Inherited:
Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
get_child () |
---|
Virtual Methods¶
Inherited:
Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)
Properties¶
Inherited:
Gtk.Container (3), Gtk.Widget (39)
Style Properties¶
Inherited:
Signals¶
Inherited:
Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Fields¶
Inherited:
Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name | Type | Access | Description |
---|---|---|---|
container | Gtk.Container | r |
Class Details¶
class Gtk.Bin(**kwargs)¶
Bases:
Abstract:
Yes
Structure:
The 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, including Gtk.Window,Gtk.Button, Gtk.Frame, Gtk.HandleBox or Gtk.ScrolledWindow.
Returns:
the child of self, or None if it does not have a child.
Return type:
Gtk.Widget or None
Gets the child of the Gtk.Bin, or None if the bin contains no child widget. The returned widget does not have a reference added, so you do not need to unref it.