Quickshell


MarginWrapperManager: WrapperManager

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 Go to Item.x, Go to Item.y, Go to Item.width, Go to Item.height or Go to Item.anchors properties. Do not set them yourself, instead set Go to Item.implicitWidth and Go to Item.implicitHeight.

Implementing a margin wrapper type

Follow the directions in WrapperManager’s documentation, and or alias the Go to margin property if you wish to expose it.

  • margin real

    The minimum margin between the child item and the parent item’s edges. Defaults to 0.

  • resizeChild bool

    If the child item should be resized larger than its implicit size if the parent is resized larger than its implicit size. Defaults to false.