MauiKit Controls

Rectangle.qml
1import QtQuick
2import QtQuick.Controls
3import org.mauikit.controls as Maui
4import QtQuick.Shapes
5
6Shape
7{
8 id: _shape
9
10 /**
11 * color : color
12 */
13 property color color : Maui.Theme.backgroundColor
14
15 /**
16 * borderColor : color
17 */
18 property color borderColor: Maui.Theme.backgroundColor
19
20 /**
21 * borderWidth : int
22 */
23 property int borderWidth: 1
24
25 /**
26 * solidBorder : bool
27 */
28 property bool solidBorder : true
29
30 layer.enabled: true
31 layer.samples: 4
32
33 ShapePath
34 {
35 id: _path
36 joinStyle: ShapePath.RoundJoin
37 capStyle: ShapePath.RoundCap
38 strokeWidth: _shape.borderWidth
39 strokeColor: _shape.borderColor
40 fillColor: _shape.color
41 strokeStyle: _shape.solidBorder ? ShapePath.SolidLine : ShapePath.DashLine
42 dashPattern: [ 1, 4 ]
43 startX: 1; startY: 1
44 PathLine { x: _shape.width-_path.startX; y: _path.startY }
45 PathLine { x: _shape.width- _path.startX; y: _shape.height-_path.startY; }
46 PathLine { x: _path.startX; y: _shape.height - _path.startY}
47 PathLine { x: _path.startX; y: _path.startY }
48 }
49}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.