CenterLayout

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

this
this(GtkCenterLayout* gtkCenterLayout, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new GtkCenterLayout.

Members

Functions

getBaselinePosition
GtkBaselinePosition getBaselinePosition()

Returns the baseline position of the layout.

getCenterLayoutStruct
GtkCenterLayout* getCenterLayoutStruct(bool transferOwnership)

Get the main Gtk struct

getCenterWidget
Widget getCenterWidget()

Returns the center widget of the layout.

getEndWidget
Widget getEndWidget()

Returns the end widget of the layout.

getOrientation
GtkOrientation getOrientation()

Gets the current orienration of the layout manager.

getStartWidget
Widget getStartWidget()

Returns the start widget fo the layout.

getStruct
void* getStruct()

the main Gtk struct as a void*

setBaselinePosition
void setBaselinePosition(GtkBaselinePosition baselinePosition)

Sets the new baseline position of @self

setCenterWidget
void setCenterWidget(Widget widget)

Sets the new center widget of @self.

setEndWidget
void setEndWidget(Widget widget)

Sets the new end widget of @self.

setOrientation
void setOrientation(GtkOrientation orientation)

Sets the orientation of @self.

setStartWidget
void setStartWidget(Widget widget)

Sets the new start widget of @self.

Static functions

getType
GType getType()

Variables

gtkCenterLayout
GtkCenterLayout* gtkCenterLayout;

the main Gtk struct

Inherited Members

From LayoutManager

gtkLayoutManager
GtkLayoutManager* gtkLayoutManager;

the main Gtk struct

getLayoutManagerStruct
GtkLayoutManager* getLayoutManagerStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
allocate
void allocate(Widget widget, int width, int height, int baseline)

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.

getLayoutChild
LayoutChild getLayoutChild(Widget child)

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

getRequestMode
GtkSizeRequestMode getRequestMode()

Retrieves the request mode of @manager.

getWidget
Widget getWidget()

Retrieves the GtkWidget using the given GtkLayoutManager.

layoutChanged
void layoutChanged()

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

measure
void measure(Widget widget, GtkOrientation orientation, int forSize, int minimum, int natural, int minimumBaseline, int naturalBaseline)

Measures the size of the @widget using @manager, for the given @orientation and size.

Meta