File LineStyle.hpp¶
File List > linestyles > LineStyle.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 <QObject>
#include <QtQml/qqmlregistration.h>
namespace QAccelPlot {
inline constexpr int kMaxDashPatternSize = 8;
struct DashParameters {
bool enabled{false};
float period{0.0f};
float offset{0.0f};
int patternSize{0};
float pattern[kMaxDashPatternSize]{};
};
class LineStyle : public QObject {
Q_OBJECT
QML_ANONYMOUS
Q_PROPERTY(bool showLine READ showLine CONSTANT)
public:
explicit LineStyle(QObject* parent = nullptr);
virtual bool showLine() const;
virtual DashParameters dashParameters() const;
signals:
void styleChanged();
};
} // namespace QAccelPlot