CenteringBin


Object Hierarchy:

Dazzle.CenteringBin Dazzle.CenteringBin Dazzle.CenteringBin Gtk.Bin Gtk.Bin Gtk.Bin->Dazzle.CenteringBin Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Dazzle.CenteringBin Atk.Implementor->Gtk.Bin Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Dazzle.CenteringBin Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget

Description:

[ CCode ( type_id = "dzl_centering_bin_get_type ()" ) ]
public class CenteringBin : Bin, Implementor, Buildable

First off, you probably want to use GtkBox with a center widget instead of this widget.

However, the case where this widget is useful is when you cannot control your layout within the width of the toplevel, but still want your child centered within the toplevel.

This is done by translating coordinates of the widget with respect to the toplevel and anchoring the child at TRUE_CENTER-(alloc.width/2).


Namespace: Dazzle
Package: libdazzle-1.0

Content:

Properties:

Creation methods:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor