CenterLayout

open class CenterLayout(pointer: <Error class: unknown class><<Error class: unknown class>>) : LayoutManager

GtkCenterLayout is a layout manager that 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.

Constructors

Link copied to clipboard
constructor()

Creates a new GtkCenterLayout.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkCenterLayoutPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkLayoutManagerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

Whether to shrink the center widget after other children.

Functions

Link copied to clipboard
open fun allocate(widget: Widget, width: Int, height: Int, baseline: Int)

Assigns the given @width, @height, and @baseline to a @widget, and computes the position and sizes of the children of the @widget using the layout management policy of @manager.

Link copied to clipboard

Returns the baseline position of the layout.

Link copied to clipboard
open fun getCenterWidget(): Widget?

Returns the center widget of the layout.

Link copied to clipboard
open fun getEndWidget(): Widget?

Returns the end widget of the layout.

Link copied to clipboard

Retrieves a GtkLayoutChild instance for the GtkLayoutManager, creating one if necessary.

Link copied to clipboard

Gets the current orienration of the layout manager.

Link copied to clipboard

Retrieves the request mode of @manager.

Link copied to clipboard

Gets whether @self shrinks the center widget after other children.

Link copied to clipboard
open fun getStartWidget(): Widget?

Returns the start widget of the layout.

Link copied to clipboard
open fun getWidget(): Widget?

Retrieves the GtkWidget using the given GtkLayoutManager.

Link copied to clipboard
open fun layoutChanged()

Queues a resize on the GtkWidget using @manager, if any.

Link copied to clipboard
open fun setBaselinePosition(baselinePosition: BaselinePosition)

Sets the new baseline position of @self

Link copied to clipboard
open fun setCenterWidget(widget: Widget? = null)

Sets the new center widget of @self.

Link copied to clipboard
open fun setEndWidget(widget: Widget? = null)

Sets the new end widget of @self.

Link copied to clipboard
open fun setOrientation(orientation: Orientation)

Sets the orientation of @self.

Link copied to clipboard
open fun setShrinkCenterLast(shrinkCenterLast: Boolean)

Sets whether to shrink the center widget after other children.

Link copied to clipboard
open fun setStartWidget(widget: Widget? = null)

Sets the new start widget of @self.