Engauge Digitizer 2
Loading...
Searching...
No Matches
GuidelineFormat.cpp
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2019 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#include "EnumsToQt.h"
8#include "GuidelineFormat.h"
9#include <QColor>
10
15
19
21{
22 QColor color (m_color);
23 color.setAlphaF (0.8);
24
25 return color;
26}
27
29{
30 return m_color;
31}
32
34{
35 return QColor (Qt::transparent);
36}
37
39{
40 return 5.0; // Wide so easy to see and click on
41}
42
44{
45 return 0.8; // Narrow for precision
46}
47
ColorPalette
const int INNER_RADIUS_MIN
QColor ColorPaletteToQColor(ColorPalette color)
Definition EnumsToQt.cpp:16
QColor colorDeployedNonHover() const
Guideline color when not hovering.
GuidelineFormat(ColorPalette color)
Single constructor.
double lineWidthHover() const
Guideline line width.
double lineWidthNonHover() const
Guideline line width for narrow lines.
QColor colorDeployedHover() const
Guideline color when hovering.
QColor colorHidden() const
Color when object is transparent but still handling (probably hover) events.