Engauge Digitizer
2
Loading...
Searching...
No Matches
Guideline
GuidelineFormat.h
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
#ifndef GUIDELINE_FORMAT_H
8
#define GUIDELINE_FORMAT_H
9
10
#include "
ColorPalette.h
"
11
#include <QColor>
12
14
class
GuidelineFormat
15
{
16
public
:
18
GuidelineFormat
(
ColorPalette
color);
19
~GuidelineFormat
();
20
22
enum
HoverOption
{
23
HOVER_OFF
,
24
HOVER_ON
25
};
26
28
QColor
colorDeployedHover
()
const
;
29
31
QColor
colorDeployedNonHover
()
const
;
32
34
QColor
colorHidden
()
const
;
35
37
double
lineWidthHover
()
const
;
38
40
double
lineWidthNonHover
()
const
;
41
42
private
:
43
GuidelineFormat
();
44
45
QColor
m_color;
46
};
47
48
#endif
// GUIDELINE_FORMAT_H
ColorPalette.h
ColorPalette
ColorPalette
Definition
ColorPalette.h:12
INNER_RADIUS_MIN
const int INNER_RADIUS_MIN
Definition
DlgSettingsDigitizeCurve.cpp:35
GuidelineFormat
This class centralizes the formatting information (color, line width, alpha) for the Guidelines.
Definition
GuidelineFormat.h:15
GuidelineFormat::colorDeployedNonHover
QColor colorDeployedNonHover() const
Guideline color when not hovering.
Definition
GuidelineFormat.cpp:28
GuidelineFormat::~GuidelineFormat
~GuidelineFormat()
Definition
GuidelineFormat.cpp:16
GuidelineFormat::lineWidthHover
double lineWidthHover() const
Guideline line width.
Definition
GuidelineFormat.cpp:38
GuidelineFormat::lineWidthNonHover
double lineWidthNonHover() const
Guideline line width for narrow lines.
Definition
GuidelineFormat.cpp:43
GuidelineFormat::colorDeployedHover
QColor colorDeployedHover() const
Guideline color when hovering.
Definition
GuidelineFormat.cpp:20
GuidelineFormat::colorHidden
QColor colorHidden() const
Color when object is transparent but still handling (probably hover) events.
Definition
GuidelineFormat.cpp:33
GuidelineFormat::HoverOption
HoverOption
Public enum.
Definition
GuidelineFormat.h:22
GuidelineFormat::HOVER_OFF
@ HOVER_OFF
Definition
GuidelineFormat.h:23
GuidelineFormat::HOVER_ON
@ HOVER_ON
Definition
GuidelineFormat.h:24
Generated on Sat Dec 21 2024 18:04:13 for Engauge Digitizer by
1.10.0