Warning, /maui/mauikit/src/controls.5/private/shapes/Arrow.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.15
0002 import QtQuick.Controls 2.15
0003 import org.mauikit.controls 1.0 as Maui
0004 import QtQuick.Shapes 1.12
0005 
0006 Shape
0007 {
0008     id: _shape
0009 
0010     /**
0011       * arrowWidth : int
0012       */
0013     property int arrowWidth : 8
0014 
0015     /**
0016       * color : color
0017       */
0018     property color color : Maui.Theme.backgroundColor
0019 
0020     /**
0021       * borderColor : color
0022       */
0023     property color borderColor: "transparent"
0024 
0025     /**
0026       * borderWidth : int
0027       */
0028     property int borderWidth: -1
0029 
0030     layer.enabled: smooth
0031     layer.samples: 16
0032 
0033     smooth: true
0034     asynchronous: true
0035     containsMode: Shape.FillContains
0036 
0037     ShapePath
0038     {
0039         id: _path
0040         joinStyle: ShapePath.RoundJoin
0041         capStyle: ShapePath.RoundCap
0042         strokeWidth: _shape.borderWidth
0043         strokeColor: _shape.borderColor
0044         fillColor: _shape.color
0045 
0046         startX: 0; startY: 0
0047         PathLine { x: _shape.width - _shape.arrowWidth; y: _path.startY }
0048         PathLine { x: _shape.width; y: Math.floor(_shape.height / 2) }
0049         PathLine { x: _shape.width - _shape.arrowWidth; y: _shape.height}
0050         PathLine { x: _path.startX; y: _shape.height}
0051         PathLine { x: _shape.arrowWidth; y: Math.floor(_shape.height / 2)}
0052         PathLine { x: _path.startX; y: _path.startY }
0053     }
0054 }