Skip to main content

Type Alias: GtkCenterBoxProps

GtkCenterBoxProps = WidgetProps & object

Defined in: generated/jsx.ts:2363

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:2365
centerWidget?Gtk.Widget | nullThe widget that is placed at the center position.generated/jsx.ts:2367
children?ReactNode-generated/jsx.ts:2397
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:2375
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:2403
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:2396
ref?Ref<Gtk.CenterBox>-generated/jsx.ts:2415
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:2386
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:2394