Type Alias: AdwWrapBoxProps
AdwWrapBoxProps =
WidgetProps&object
Defined in: generated/jsx.ts:12004
Props for the AdwWrapBox widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
align? | number | The alignment of the children within each line. 0 means the children are placed at the start of the line, 1 means they are placed at the end of the line. 0.5 means they are placed in the middle of the line. Alignment is only used when AdwWrapBox.justify is set to ADW_JUSTIFY_NONE, or on the last line when the AdwWrapBox.justify-last-line is FALSE. | generated/jsx.ts:12016 |
children? | ReactNode | - | generated/jsx.ts:12114 |
childSpacing? | number | The spacing between widgets on the same line. See AdwWrapBox.child-spacing-unit. | generated/jsx.ts:12022 |
childSpacingUnit? | Adw.LengthUnit | The length unit for child spacing. Allows the spacing to vary depending on the text scale factor. See AdwWrapBox.child-spacing. | generated/jsx.ts:12030 |
justify? | Adw.JustifyMode | Determines whether and how each complete line should be stretched to fill the entire widget. If set to ADW_JUSTIFY_FILL, each widget in the line will be stretched, keeping consistent spacing, so that the line fills the entire widget. If set to ADW_JUSTIFY_SPREAD, the spacing between widgets will be increased, keeping widget sizes intact. The first and last widget will be aligned with the beginning and end of the line. If the line only contains a single widget, it will be stretched regardless. If set to ADW_JUSTIFY_NONE, the line will not be stretched and the children will be placed together within the line, according to AdwWrapBox.align. By default this doesn't affect the last line, as it will be incomplete. Use AdwWrapBox.justify-last-line to justify it as well. | generated/jsx.ts:12050 |
justifyLastLine? | boolean | Whether the last line should be stretched to fill the entire widget. See AdwWrapBox.justify. | generated/jsx.ts:12056 |
lineHomogeneous? | boolean | Whether all lines should take the same amount of space. | generated/jsx.ts:12058 |
lineSpacing? | number | The spacing between lines. See AdwWrapBox.line-spacing-unit. | generated/jsx.ts:12064 |
lineSpacingUnit? | Adw.LengthUnit | The length unit for line spacing. Allows the spacing to vary depending on the text scale factor. See AdwWrapBox.line-spacing. | generated/jsx.ts:12072 |
naturalLineLength? | number | Determines the natural size for each line. It should be used to limit the line lengths, for example when used in popovers. See AdwWrapBox.natural-line-length-unit. | generated/jsx.ts:12081 |
naturalLineLengthUnit? | Adw.LengthUnit | The length unit for natural line length. Allows the length to vary depending on the text scale factor. See AdwWrapBox.natural-line-length. | generated/jsx.ts:12089 |
onNotify? | (self, propName) => void | null | Called 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:12120 |
orientation? | Gtk.Orientation | The orientation of the orientable. | generated/jsx.ts:12113 |
packDirection? | Adw.PackDirection | The direction children are packed in each line. | generated/jsx.ts:12091 |
ref? | Ref<Adw.WrapBox> | - | generated/jsx.ts:12140 |
wrapPolicy? | Adw.WrapPolicy | The policy for line wrapping. + If set to ADW_WRAP_NATURAL, the box will wrap to the next line as soon as the previous line cannot fit any more children without shrinking them past their natural size. If set to ADW_WRAP_MINIMUM, the box will try to fit as many children into each line as possible, shrinking them down to their minimum size before wrapping to the next line. | generated/jsx.ts:12103 |
wrapReverse? | boolean | Whether wrap direction should be reversed. By default, lines wrap downwards in a horizontal box, and towards the end in a vertical box. If set to TRUE, they wrap upwards or towards the start respectively. | generated/jsx.ts:12111 |