File OutlinedRectangle.hpp¶
File List > internal > OutlinedRectangle.hpp
Go to the documentation of this file
//
// SPDX-FileCopyrightText: 2026 Michal Grabarczyk
// SPDX-License-Identifier: GPL-3.0-only WITH Universal-FOSS-exception-1.0
//
// This file is also available under a separate commercial license.
// See COMMERCIAL-LICENSING.md for contact information.
//
#pragma once
#include <QColor>
#include <QQuickItem>
namespace QAccelPlot::Internal {
class OutlinedRectangle : public QQuickItem {
public:
explicit OutlinedRectangle(QQuickItem* parent = nullptr);
void setStyle(const QColor& fill, const QColor& borderColor, qreal borderWidth);
protected:
QSGNode* updatePaintNode(QSGNode* oldNode, UpdatePaintNodeData*) override;
private:
QColor fill_;
QColor border_;
qreal borderWidth_{0.0};
};
} // namespace QAccelPlot::Internal