-->
import Quickshell.Widgets
NOTE
MarginWrapperManager is an extension of WrapperManager. You should read its documentation to understand wrapper types.
MarginWrapperManager can be used to apply margins to a child item, in addition to handling the size / implicit size relationship between the parent and the child. WrapperItem and WrapperRectangle exist for Item and Rectangle implementations respectively.
WARNING
MarginWrapperManager based types set the child item’s Item.x, Item.y, Item.width, Item.height or Item.anchors properties. Do not set them yourself, instead set Item.implicitWidth and Item.implicitHeight.
Follow the directions in WrapperManager’s documentation, and or alias the margin property if you wish to expose it.
The margin of the content item is calculated based on topMargin, bottomMargin, leftMargin, rightMargin, extraMargin and resizeChild.
If resizeChild is true
, each side’s margin will be the value of <side>Margin
plus extraMargin, and the content item will be stretched to match the given margin
if the wrapper is not at its implicit size.
If resizeChild is false
, the <side>Margin
properties will be interpreted as a
ratio and the content item will not be stretched if the wrapper is not at its implicit side.
The implicit size of the wrapper is the implicit size of the content item plus all margins.
The requested bottom margin of the content item, not counting extraMargin.
Defaults to margin, and may be reset by assigning undefined
.
An extra margin applied in addition to topMargin, bottomMargin, leftMargin, and rightMargin. Defaults to 0.
The requested left margin of the content item, not counting extraMargin.
Defaults to margin, and may be reset by assigning undefined
.
The default for topMargin, bottomMargin, leftMargin and rightMargin. Defaults to 0.
Determines if child item should be resized larger than its implicit size if the parent is resized larger than its implicit size. Defaults to false.
The requested right margin of the content item, not counting extraMargin.
Defaults to margin, and may be reset by assigning undefined
.
The requested top margin of the content item, not counting extraMargin.
Defaults to margin, and may be reset by assigning undefined
.