8import org.kde.kirigami as Kirigami
13 property Kirigami.OverlayDrawer drawer
14 property color color: Kirigami.Theme.textColor
15 property int thickness: 2
17 property real position: drawer?.position ?? 0
19 width: Kirigami.Units.iconSizes.smallMedium
20 height: Kirigami.Units.iconSizes.smallMedium
24 LayoutMirroring.enabled: false
25 LayoutMirroring.childrenInherit: true
31 margins: Kirigami.Units.smallSpacing
35 horizontalCenter: parent.horizontalCenter
37 topMargin: (parent.height / 2 - canvas.thickness / 2) * canvas.position
39 antialiasing: canvas.position !== 0
40 transformOrigin: Item.Center
41 width: (1 - canvas.position) * height + canvas.position * Math.sqrt(2 * parent.width * parent.width)
42 height: canvas.thickness
44 rotation: 45 * canvas.position
48 anchors.centerIn: parent
50 height: canvas.thickness
56 horizontalCenter: parent.horizontalCenter
58 bottomMargin: (parent.height / 2 - canvas.thickness / 2) * canvas.position
60 antialiasing: canvas.position !== 0
61 transformOrigin: Item.Center
62 width: (1 - canvas.position) * height + canvas.position * Math.sqrt(2 * parent.width * parent.width)
63 height: canvas.thickness
65 rotation: -45 * canvas.position
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:20 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.