Skip to main content

Type Alias: GtkCenterBoxProps

GtkCenterBoxProps = WidgetProps & object

Defined in: generated/jsx.ts:1966

Props for the GtkCenterBox widget.

Type Declaration

NameTypeDescriptionDefined in
baselinePosition?Gtk.BaselinePositionThe position of the baseline aligned widget if extra space is available.generated/jsx.ts:1968
centerWidget?Gtk.Widget | nullThe widget that is placed at the center position.generated/jsx.ts:1970
children?ReactNode-generated/jsx.ts:2000
endWidget?Gtk.Widget | nullThe widget that is placed at the end position. In vertical orientation, the end position is at the bottom. In horizontal orientation, the end position is at the trailing edge with respect to the text direction.generated/jsx.ts:1978
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:1999
ref?Ref<Gtk.CenterBox>-generated/jsx.ts:2001
shrinkCenterLast?booleanWhether 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 false, start and end widgets keep natural width and the center widget starts shrinking instead.generated/jsx.ts:1989
startWidget?Gtk.Widget | nullThe widget that is placed at the start position. In vertical orientation, the start position is at the top. In horizontal orientation, the start position is at the leading edge with respect to the text direction.generated/jsx.ts:1997