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"
20 static constexpr qreal INITIAL_QUADRAT = 80.0;
22 static constexpr qreal INITIAL_STROKE_WIDTH_RATIO = 40.0;
24 static constexpr
bool INITIAL_ROUND_STROKE_WIDTH =
true;
29 Q_PROPERTY(qreal quadrat READ quadrat WRITE setQuadrat NOTIFY quadratChanged)
34 Q_PROPERTY(qreal strokeWidth READ strokeWidth WRITE setStrokeWidth NOTIFY strokeWidthChanged)
39 Q_PROPERTY(qreal strokeWidthRatio READ strokeWidthRatio WRITE setStrokeWidthRatio NOTIFY strokeWidthRatioChanged)
44 Q_PROPERTY(
bool roundStrokeWidth READ roundStrokeWidth WRITE setRoundStrokeWidth NOTIFY roundStrokeWidthChanged)
48 qreal quadrat() const;
50 void setQuadrat(qreal quadrat);
52 qreal strokeWidth() const;
54 void setStrokeWidth(qreal strokeWidth);
56 qreal strokeWidthRatio() const;
58 void setStrokeWidthRatio(qreal ratio);
60 bool roundStrokeWidth() const;
62 void setRoundStrokeWidth(
bool roundStrokeWidth);
65 void quadratChanged();
67 void strokeWidthChanged();
69 void strokeWidthRatioChanged();
71 void roundStrokeWidthChanged();
74 void strokeWidthBinding();
77 void setStrokeWidth(qreal strokeWidth,
bool breakBinding);
82 qreal strokeWidthRatio;
83 bool roundStrokeWidth;