Basics
Guides
API Reference
Basics
Guides
API Reference
[16:7] extends: object
Manages up to three children. The start widget is allocated at the start of the layout (left in left-to-right locales and right in right-to-left ones), and the end widget at the end. The center widget is centered regarding the full width of the layout's.
CenterLayout ()
Creates a new
GtkCenterLayout.
toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asLayoutManager ()
Wraps this handle as
LayoutManager.
A LayoutManager object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setShrinkcenterlast (bool Value)
Whether to shrink the center widget after other children. By default, when there's no space to give all three children their natural widths, the start and end widgets start shrinking and the center child keeps natural width until they reach minimum width. If set to
FALSE, start and end widgets keep natural width and the center widget starts shrinking instead.
Value is the new property value.None.get_baseline_position ()
Returns the baseline position of the layout.
get_center_widget ()
Returns the center widget of the layout.
get_end_widget ()
Returns the end widget of the layout.
get_orientation ()
Gets the current orienration of the layout manager.
get_shrink_center_last ()
Gets whether @self shrinks the center widget after other children.
get_start_widget ()
Returns the start widget of the layout.
set_baseline_position (string baseline_position)
Sets the new baseline position of @self
baseline_position is the new baseline position.None.set_center_widget (object widget)
Sets the new center widget of @self. To remove the existing center widget, pass %NULL.
widget is the new center widget.None.set_end_widget (object widget)
Sets the new end widget of @self. To remove the existing center widget, pass %NULL.
widget is the new end widget.None.set_orientation (string orientation)
Sets the orientation of @self.
orientation is the new orientation.None.set_shrink_center_last (bool shrink_center_last)
Sets whether to shrink the center widget after other children. By default, when there's no space to give all three children their natural widths, the start and end widgets start shrinking and the center child keeps natural width until they reach minimum width. If set to
FALSE, start and end widgets keep natural width and the center widget starts shrinking instead.
shrink_center_last is whether to shrink the center widget after others.None.set_start_widget (object widget)
Sets the new start widget of @self. To remove the existing start widget, pass %NULL.
widget is the new start widget.None.[262:14] static extends: object
Generated metadata helpers for CenterLayout class surfaces.
properties ()
Returns property metadata for
CenterLayout.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.