1#ifndef H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_UNITS_HPP
2#define H_EXTENSIONS_CUTEHMI_GUI_1_INCLUDE_CUTEHMI_GUI_UNITS_HPP
4#include "internal/common.hpp"
19 QML_NAMED_ELEMENT(
Units)
22 static constexpr qreal INITIAL_QUADRAT = 80.0;
24 static constexpr qreal INITIAL_STROKE_WIDTH_RATIO = 40.0;
26 static constexpr bool INITIAL_ROUND_STROKE_WIDTH =
true;
33 Q_PROPERTY(qreal quadrat READ quadrat WRITE setQuadrat NOTIFY quadratChanged)
38 Q_PROPERTY(qreal strokeWidth READ strokeWidth WRITE setStrokeWidth NOTIFY strokeWidthChanged)
43 Q_PROPERTY(qreal strokeWidthRatio READ strokeWidthRatio WRITE setStrokeWidthRatio NOTIFY strokeWidthRatioChanged)
48 Q_PROPERTY(
bool roundStrokeWidth READ roundStrokeWidth WRITE setRoundStrokeWidth NOTIFY roundStrokeWidthChanged)
52 qreal quadrat()
const;
54 void setQuadrat(qreal quadrat);
56 qreal strokeWidth()
const;
58 void setStrokeWidth(qreal strokeWidth);
60 qreal strokeWidthRatio()
const;
62 void setStrokeWidthRatio(qreal ratio);
64 bool roundStrokeWidth()
const;
66 void setRoundStrokeWidth(
bool roundStrokeWidth);
78 void strokeWidthBinding();
81 void setStrokeWidth(qreal strokeWidth,
bool breakBinding);
86 qreal strokeWidthRatio;
87 bool roundStrokeWidth;
Unit.
Definition: Units.hpp:17
void strokeWidthChanged()
void roundStrokeWidthChanged()
void strokeWidthRatioChanged()