widgets: add ClippingWrapperRectangle

This commit is contained in:
outfoxxed 2024-11-19 02:52:49 -08:00
parent 401ee4cec6
commit 033e810871
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
7 changed files with 63 additions and 4 deletions

View file

@ -1,9 +1,9 @@
import QtQuick
import Quickshell.Widgets
///! Rectangle that handles sizes and positioning for a single visual child.
/// This component is useful for adding a border or background rectangle to
/// a child item.
/// 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.