1.26 <GtkCenterLayout>

Class: <GtkCenterLayout>

It derives from <GtkLayoutManager>.

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.

Properties

Property: center-layout:shrink-center-last self

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.

Its value is a boolean.

Set it with (set! (center-layout:shrink-center-last self) value).

Procedures

Method: center-layout:get-baseline-position self ⇒ %return
Method: get-baseline-position self ⇒ %return

Returns the baseline position of the layout.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

%return

Returned: a <GtkBaselinePosition>.

The current baseline position of self.

Method: center-layout:get-center-widget self ⇒ %return
Method: get-center-widget self ⇒ %return

Returns the center widget of the layout.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

%return

Returned: a <GtkWidget>, or #f.

the current center widget of self

Method: center-layout:get-end-widget self ⇒ %return
Method: get-end-widget self ⇒ %return

Returns the end widget of the layout.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

%return

Returned: a <GtkWidget>, or #f.

the current end widget of self

Method: center-layout:get-orientation self ⇒ %return
Method: get-orientation self ⇒ %return

Gets the current orienration of the layout manager.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

%return

Returned: a <GtkOrientation>.

The current orientation of self

Method: center-layout:get-shrink-center-last? self ⇒ %return
Method: get-shrink-center-last? self ⇒ %return

Gets whether self shrinks the center widget after other children.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

%return

Returned: a boolean.

whether to shrink the center widget after others

Method: center-layout:get-start-widget self ⇒ %return
Method: get-start-widget self ⇒ %return

Returns the start widget of the layout.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

%return

Returned: a <GtkWidget>, or #f.

The current start widget of self

Procedure: center-layout:new ⇒ %return

Creates a new <GtkCenterLayout>.

%return

Returned: a <GtkLayoutManager>.

the newly created <GtkCenterLayout>

Method: center-layout:set-baseline-position self baseline-position
Method: set-baseline-position self baseline-position

Sets the new baseline position of self

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

baseline-position

Passed: a <GtkBaselinePosition>, or one of its symbols.

the new baseline position

Method: center-layout:set-center-widget self [widget]
Method: set-center-widget self [widget]

Sets the new center widget of self.

To remove the existing center widget, pass #f.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

widget

Passed, or left out: a <GtkWidget>, or #f.

the new center widget

Method: center-layout:set-end-widget self [widget]
Method: set-end-widget self [widget]

Sets the new end widget of self.

To remove the existing center widget, pass #f.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

widget

Passed, or left out: a <GtkWidget>, or #f.

the new end widget

Method: center-layout:set-orientation self orientation
Method: set-orientation self orientation

Sets the orientation of self.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

orientation

Passed: a <GtkOrientation>, or one of its symbols.

the new orientation

Method: center-layout:set-shrink-center-last self shrink-center-last
Method: set-shrink-center-last self 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.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

shrink-center-last

Passed: a boolean.

whether to shrink the center widget after others

Method: center-layout:set-start-widget self [widget]
Method: set-start-widget self [widget]

Sets the new start widget of self.

To remove the existing start widget, pass #f.

self

Passed: a <GtkCenterLayout>.

a <GtkCenterLayout>

widget

Passed, or left out: a <GtkWidget>, or #f.

the new start widget