Nix (Dev)
3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
icons.hpp
Go to the documentation of this file.
1
#ifndef IV_SRC_UI_RESOURCES_ICONS_HPP_
2
#define IV_SRC_UI_RESOURCES_ICONS_HPP_
3
4
#include "
ui/resources/enums.hpp
"
5
6
#include <string>
7
#include <unordered_map>
8
9
namespace
iv::ui::resources
10
{
11
12
static
const
std::unordered_map<iv::ui::resources::eResourceId, std::string>
iconResources
=
13
{
14
{
iv::ui::resources::eResourceId::AccessClose
,
"diamar/accessClose64x64"
},
15
{
iv::ui::resources::eResourceId::AlarmOff
,
"diamar/alarm-off64x64"
},
16
{
iv::ui::resources::eResourceId::AlarmOn
,
"diamar/alarm64x64"
},
17
{
iv::ui::resources::eResourceId::ButtonStart
,
"diamar/buttonStart64x64"
},
18
{
iv::ui::resources::eResourceId::CheckOff
,
"diamar/checkOff16x16"
},
19
{
iv::ui::resources::eResourceId::CheckOn
,
"diamar/checkOn16x16"
},
20
{
iv::ui::resources::eResourceId::CheckDisable
,
"diamar/checkDisable16x16"
},
21
{
iv::ui::resources::eResourceId::Close
,
22
"<svg viewBox=\"0 0 1024 1024\" fill=\"#FF5D82\"><g "
23
"id=\"SVGRepo_bgCarrier\" stroke-width=\"0\"></g><g id=\"SVGRepo_tracerCarrier\" "
24
"stroke-linecap=\"round\" "
25
"stroke-linejoin=\"round\"></g><g id=\"SVGRepo_iconCarrier\"><path fill=\"#FF5D82\" d=\"M195.2 "
26
"195.2a64 64 0 "
27
"0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 "
28
"1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 "
29
"0 0 1 "
30
"0-90.496z\"></path></g></svg>"
},
31
{
iv::ui::resources::eResourceId::Error
,
"diamar/error64x64"
},
32
{
iv::ui::resources::eResourceId::Info
,
33
R
"(<svg viewBox="0 0 16 16" fill="#0298d5" class="bi bi-info-circle"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"></path> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path> </g></svg>)"},
34
{
iv::ui::resources::eResourceId::Maximize
,
35
"<svg viewBox=\"0 0 20 20\" fill=\"none\"><g id=\"SVGRepo_bgCarrier\" "
36
"stroke-width=\"0\"></g><g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" "
37
"stroke-linejoin=\"round\"></g><g id=\"SVGRepo_iconCarrier\"> <path fill=\"#0298d5\" "
38
"fill-rule=\"evenodd\" "
39
"d=\"M19 2a1 1 0 00-1-1h-6a1 1 0 100 2h3.586l-3.793 3.793a1 1 0 001.414 1.414L17 4.414V8a1 1 0 102 "
40
"0V2zM1 "
41
"18a1 1 0 001 1h6a1 1 0 100-2H4.414l3.793-3.793a1 1 0 10-1.414-1.414L3 15.586V12a1 1 0 10-2 "
42
"0v6z\"></path> "
43
"</g></svg>"
},
44
{
iv::ui::resources::eResourceId::OffScan
,
"diamar/iconoOffScan128x128"
},
45
{
iv::ui::resources::eResourceId::Question
, R
"(<svg viewBox=\"0 0 512 512\" version=\"1.1\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" fill=\"#0298d5\"><g id=\"SVGRepo_bgCarrier\" stroke-width=\"0\"></g><g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g><g id=\"SVGRepo_iconCarrier\"> <title>question</title> <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"> <g id=\"add\" fill=\"#0298d5\" transform=\"translate(42.666667, 42.666667)\"> <path d=\"M291.76704,163.504 C291.76704,177.01952 288.33216,188.82176 281.479253,198.90112 C275.828267,207.371093 266.358187,216.549547 253.042987,226.434987 C245.378987,231.682347 240.331947,236.618667 237.916587,241.257813 C234.87744,246.90624 233.376213,255.371093 233.376213,266.666667 L190.710827,266.666667 C190.710827,249.530027 192.53504,237.027413 196.165333,229.162667 C200.394453,219.679573 209.571627,210.098773 223.686187,200.42048 C230.350293,195.374933 235.188693,190.2368 238.214827,184.994773 C241.839787,179.143253 243.664,172.49216 243.664,165.028693 C243.664,153.13024 240.125013,144.26304 233.070293,138.404907 C227.4336,134.177067 220.56768,132.059947 212.501333,132.059947 C199.39328,132.059947 189.911467,136.398507 184.065067,145.069013 C179.829333,151.518293 177.7056,159.787733 177.7056,169.868587 L177.7056,170.173227 L132.34368,170.173227 C132.34368,143.751253 140.703147,123.790507 157.43488,110.274773 C171.554773,98.9922133 189.007787,93.3346133 209.77344,93.3346133 C227.933653,93.3346133 243.865813,96.86848 257.571627,103.9232 C280.37504,115.62624 291.76704,135.494827 291.76704,163.504 Z M426.666667,213.333333 C426.666667,331.153707 331.153707,426.666667 213.333333,426.666667 C95.51296,426.666667 3.55271368e-14,331.153707 3.55271368e-14,213.333333 C3.55271368e-14,95.51168 95.51296,3.55271368e-14 213.333333,3.55271368e-14 C331.153707,3.55271368e-14 426.666667,95.51168 426.666667,213.333333 Z M384,213.333333 C384,119.226667 307.43872,42.6666667 213.333333,42.6666667 C119.227947,42.6666667 42.6666667,119.226667 42.6666667,213.333333 C42.6666667,307.43872 119.227947,384 213.333333,384 C307.43872,384 384,307.43872 384,213.333333 Z M213.332053,282.666667 C198.60416,282.666667 186.665387,294.60544 186.665387,309.333333 C186.665387,324.061227 198.60416,336 213.332053,336 C228.059947,336 239.99872,324.061227 239.99872,309.333333 C239.99872,294.60544 228.059947,282.666667 213.332053,282.666667 Z\" id=\"Shape\"> </path> </g> </g> </g></svg>)"},
46
{
iv::ui::resources::eResourceId::Reboot
,
"diamar/reboot64x64"
},
47
{
iv::ui::resources::eResourceId::Restore
,
48
"<svg viewBox=\"0 0 16 16\" fill=\"#0298d5\"><g id=\"SVGRepo_bgCarrier\" "
49
"stroke-width=\"0\"></g><g id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" "
50
"stroke-linejoin=\"round\"></g><g id=\"SVGRepo_iconCarrier\"> <g fill=\"#0298d5\"> <path d=\"m 2 8 c "
51
"-0.550781 0 -1 0.449219 -1 1 s 0.449219 1 1 1 h 2.585938 l -3.292969 3.292969 c -0.390625 0.390625 "
52
"-0.390625 "
53
"1.023437 0 1.414062 s 1.023437 0.390625 1.414062 0 l 3.292969 -3.292969 v 2.585938 c 0 0.550781 "
54
"0.449219 1 1 "
55
"1 s 1 -0.449219 1 -1 v -6 z m 0 0\"></path> <path d=\"m 14 8 c 0.550781 0 1 -0.449219 1 -1 s "
56
"-0.449219 -1 -1 "
57
"-1 h -2.585938 l 3.292969 -3.292969 c 0.390625 -0.390625 0.390625 -1.023437 0 -1.414062 s -1.023437 "
58
"-0.390625 -1.414062 0 l -3.292969 3.292969 v -2.585938 c 0 -0.550781 -0.449219 -1 -1 -1 s -1 "
59
"0.449219 -1 1 v "
60
"6 z m 0 0\"></path> </g> </g></svg>"
},
61
{
iv::ui::resources::eResourceId::Shutdown
,
62
"<svg fill=\"#6298cf\" height=\"200px\" width=\"200px\" version=\"1.1\" id=\"Capa_1\" "
63
"viewBox=\"0 0 325.214 325.214\" xml:space=\"preserve\" stroke=\"#6298cf\"><g "
64
"id=\"SVGRepo_bgCarrier\" "
65
"stroke-width=\"0\"></g><g "
66
"id=\"SVGRepo_tracerCarrier\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></g><g "
67
"id=\"SVGRepo_iconCarrier\"> <g> <path "
68
"d=\"M288.777,93.565c-15.313-23.641-36.837-42.476-62.243-54.472c-1.616-0.763-3.109-1.134-4.564-1.134 "
69
"c-1.969,0-8.392,0.833-8.392,11.541v17.75c0,8.998,5.479,13.113,7.159,14.16c32.613,20.33,52.083,55.317,"
70
"52.083,"
71
"93.59 "
72
"c0,60.772-49.442,110.214-110.214,110.214S52.393,235.772,52.393,175c0-38.872,19.942-74.144,53.346-94."
73
"353 "
74
"c4.475-2.707,6.839-7.426,6.839-13.647V49c0-7.959-5.077-10.783-9.424-10.783c-1.714,0-3.542,0.422-5."
75
"144,1.188 "
76
"C72.781,51.471,51.42,70.305,36.237,93.872C20.638,118.084,12.393,146.137,12.393,175c0,82.828,67.386,"
77
"150.214,"
78
"150.214,150.214 "
79
"S312.821,257.828,312.821,175C312.821,146.008,304.507,117.848,288.777,93.565z\"></path> <path "
80
"d=\"M152.579,117h21c5.514,0,10-4.486,10-10V10c0-5.514-4.486-10-10-10h-21c-5.514,0-10,4.486-10,10v97 "
81
"C142.579,112.514,147.064,117,152.579,117z\"></path> </g> </g></svg>"
},
82
{
iv::ui::resources::eResourceId::Warning
,
"diamar/warning64x64"
},
83
};
84
85
static
std::string
getIconResource
(
iv::ui::resources::eResourceId
id
)
86
{
87
auto
it =
iconResources
.find(
id
);
88
89
return
it !=
iconResources
.end() ? it->second :
""
;
90
}
91
92
}
// namespace iv::ui::resources
93
94
#endif
//IV_SRC_UI_RESOURCES_ICONS_HPP_
iv::ui::resources
Definition
alarms.hpp:10
iv::ui::resources::getIconResource
static std::string getIconResource(iv::ui::resources::eResourceId id)
Definition
icons.hpp:85
iv::ui::resources::iconResources
static const std::unordered_map< iv::ui::resources::eResourceId, std::string > iconResources
Definition
icons.hpp:12
iv::ui::resources::eResourceId
eResourceId
Definition
enums.hpp:8
iv::ui::resources::eResourceId::Warning
@ Warning
iv::ui::resources::eResourceId::Shutdown
@ Shutdown
iv::ui::resources::eResourceId::Reboot
@ Reboot
iv::ui::resources::eResourceId::AccessClose
@ AccessClose
iv::ui::resources::eResourceId::AlarmOn
@ AlarmOn
iv::ui::resources::eResourceId::Restore
@ Restore
iv::ui::resources::eResourceId::ButtonStart
@ ButtonStart
iv::ui::resources::eResourceId::Info
@ Info
iv::ui::resources::eResourceId::OffScan
@ OffScan
iv::ui::resources::eResourceId::CheckDisable
@ CheckDisable
iv::ui::resources::eResourceId::AlarmOff
@ AlarmOff
iv::ui::resources::eResourceId::Error
@ Error
iv::ui::resources::eResourceId::Maximize
@ Maximize
iv::ui::resources::eResourceId::Question
@ Question
iv::ui::resources::eResourceId::Close
@ Close
iv::ui::resources::eResourceId::CheckOn
@ CheckOn
iv::ui::resources::eResourceId::CheckOff
@ CheckOff
enums.hpp
src
ui
resources
icons.hpp
Generated by
1.12.0