Quickshell


ClippingWrapperRectangle: ClippingRectangle

import Quickshell.Widgets

This component is useful for adding a clipping border or background rectangle to a child item. If you don’t need clipping, use WrapperRectangle.

NOTE

ClippingWrapperRectangle 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
  • margin real

    The minimum margin between the child item and the ClippingWrapperRectangle’s edges. 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.