1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#pragma once
#include "drape/drape_global.hpp"
namespace df
{
namespace watch
{
struct CircleInfo
{
unsigned m_radius;
dp::Color m_color;
bool m_isOutlined;
unsigned m_outlineWidth;
dp::Color m_outlineColor;
CircleInfo() = default;
CircleInfo(double radius,
dp::Color const & color = dp::Color(0, 0, 0, 255),
bool isOutlined = false,
double outlineWidth = 1,
dp::Color const & outlineColor = dp::Color(255, 255, 255, 255))
: m_radius(my::rounds(radius))
, m_color(color)
, m_isOutlined(isOutlined)
, m_outlineWidth(my::rounds(outlineWidth))
, m_outlineColor(outlineColor)
{
if (!m_isOutlined)
{
m_outlineWidth = 0;
m_outlineColor = dp::Color(0, 0, 0, 0);
}
}
};
}
}
|