Dazzle.CenteringBin

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Dazzle.CenteringBin Dazzle.CenteringBin 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.Bin->Dazzle.CenteringBin Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new ()

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

max-width-request

int

r/w

Max Width Request

Style Properties

Inherited:

Gtk.Widget (17)

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

parent_instance

Gtk.Bin

r

Class Details

class Dazzle.CenteringBin(**kwargs)
Bases:

Gtk.Bin

Abstract:

No

Structure:

Dazzle.CenteringBinClass

First off, you probably want to use Gtk.Box 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).

classmethod new()
Return type:

Gtk.Widget

Property Details

Dazzle.CenteringBin.props.max_width_request
Name:

max-width-request

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE

Max Width Request