Quickshell


WrapperRectangle: Rectangle

import Quickshell.Widgets

This component is useful for adding a border or background rectangle to a child item. If you need to clip the child item to the rectangle’s border, see ClippingWrapperRectangle.

NOTE

WrapperRectangle is a MarginWrapperManager based component. You should read its documentation as well.

WARNING

You should not set Go to Item.x, Go to Item.y, Go to Item.width, Go to Item.height or Go to Item.anchors on the child item, as they are used by WrapperItem to position it. Instead set Go to Item.implicitWidth and Go to Item.implicitHeight.

  • child unknown
  • contentInsideBorder bool

    If true (default), the rectangle’s border width will be added to the margin.

  • margin real

    The minimum margin between the child item and the WrapperRectangle’s edges. If Go to contentInsideBorder is true, this excludes the border, otherwise it includes it. Defaults to 0.

  • resizeChild bool

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