Skip to main content

Type Alias: AdwSqueezerProps

AdwSqueezerProps = WidgetProps & object

Defined in: generated/jsx.ts:8991

Props for the AdwSqueezer widget.

Type Declaration

NameTypeDescriptionDefined in
allowNone?booleanWhether to allow squeezing beyond the last child's minimum size. If set to TRUE, the squeezer can shrink to the point where no child can be shown. This is functionally equivalent to appending a widget with 0×0 minimum size.generated/jsx.ts:8999
children?ReactNode-generated/jsx.ts:9056
homogeneous?booleanWhether all children have the same size for the opposite orientation. For example, if a squeezer is horizontal and is homogeneous, it will request the same height for all its children. If it isn't, the squeezer may change size when a different child becomes visible.generated/jsx.ts:9007
interpolateSize?booleanWhether the squeezer interpolates its size when changing the visible child. If TRUE, the squeezer will interpolate its size between the one of the previous visible child and the one of the new visible child, according to the set transition duration and the orientation, e.g. if the squeezer is horizontal, it will interpolate the its height.generated/jsx.ts:9016
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:9062
orientation?Gtk.OrientationThe orientation of the orientable.generated/jsx.ts:9055
ref?Ref<Adw.Squeezer>-generated/jsx.ts:9077
switchThresholdPolicy?Adw.FoldThresholdPolicyThe switch threshold policy. Determines when the squeezer will switch children. If set to ADW_FOLD_THRESHOLD_POLICY_MINIMUM, it will only switch when the visible child cannot fit anymore. With ADW_FOLD_THRESHOLD_POLICY_NATURAL, it will switch as soon as the visible child doesn't get their natural size. This can be useful if you have a long ellipsizing label and want to let it ellipsize instead of immediately switching.generated/jsx.ts:9029
transitionDuration?numberThe transition animation duration, in milliseconds.generated/jsx.ts:9031
transitionType?Adw.SqueezerTransitionTypeThe type of animation used for transitions between children.generated/jsx.ts:9033
xalign?numberThe horizontal alignment, from 0 (start) to 1 (end). This affects the children allocation during transitions, when they exceed the size of the squeezer. For example, 0.5 means the child will be centered, 0 means it will keep the start side aligned and overflow the end side, and 1 means the opposite.generated/jsx.ts:9043
yalign?numberThe vertical alignment, from 0 (top) to 1 (bottom). This affects the children allocation during transitions, when they exceed the size of the squeezer. For example, 0.5 means the child will be centered, 0 means it will keep the top side aligned and overflow the bottom side, and 1 means the opposite.generated/jsx.ts:9053