| 1 |  | 
| 2 | // Copyright (C) 2024 The Qt Company Ltd. | 
| 3 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only | 
| 4 | #ifndef QQUICKFLUENTWINUI3FOCUSSTROKE_P_H | 
| 5 | #define QQUICKFLUENTWINUI3FOCUSSTROKE_P_H | 
| 6 | // | 
| 7 | //  W A R N I N G | 
| 8 | //  ------------- | 
| 9 | // | 
| 10 | // This file is not part of the Qt API.  It exists purely as an | 
| 11 | // implementation detail.  This header file may change from version to | 
| 12 | // version without notice, or even be removed. | 
| 13 | // | 
| 14 | // We mean it. | 
| 15 | // | 
| 16 | #include <QtGui/qcolor.h> | 
| 17 | #include <QtQuick/qquickpainteditem.h> | 
| 18 | #include <QtCore/private/qglobal_p.h> | 
| 19 | QT_BEGIN_NAMESPACE | 
| 20 | class QQuickFluentWinUI3FocusStroke : public QQuickPaintedItem | 
| 21 | { | 
| 22 |     Q_OBJECT | 
| 23 |     Q_PROPERTY(QColor color READ color WRITE setColor FINAL) | 
| 24 |     Q_PROPERTY(int radius READ radius WRITE setRadius FINAL) | 
| 25 |     QML_NAMED_ELEMENT(FocusStroke) | 
| 26 |     QML_ADDED_IN_VERSION(6, 8) | 
| 27 | public: | 
| 28 |     explicit QQuickFluentWinUI3FocusStroke(QQuickItem *parent = nullptr); | 
| 29 |     int radius() const; | 
| 30 |     void setRadius(int radius); | 
| 31 |     QColor color() const; | 
| 32 |     void setColor(const QColor &color); | 
| 33 |     void paint(QPainter *painter) override; | 
| 34 | private: | 
| 35 |     QColor m_color = Qt::white; | 
| 36 |     int m_radius; | 
| 37 | }; | 
| 38 | QT_END_NAMESPACE | 
| 39 | #endif // QQUICKFLUENTWINUI3FOCUSSTROKE_P_H | 
| 40 |  |