Horizon
horizon-eda-1.3.0
src
board
board_decal.hpp
1
#pragma once
2
#include "nlohmann/json_fwd.hpp"
3
#include "pool/decal.hpp"
4
#include "util/placement.hpp"
5
#include "util/uuid.hpp"
6
#include "util/uuid_ptr.hpp"
7
8
namespace
horizon {
9
using
json
=
nlohmann::json
;
10
11
class
BoardDecal
{
12
public
:
13
BoardDecal
(
const
UUID
&uu,
const
json
&,
class
IPool
&pool);
14
BoardDecal
(
const
UUID
&uu);
15
UUID
uuid;
16
17
const
Decal
*pool_decal;
18
Decal
decal;
19
20
Placement
placement;
21
bool
flip =
false
;
22
double
scale = 1;
23
24
void
apply_scale();
25
26
UUID
get_uuid()
const
;
27
json
serialize()
const
;
28
};
29
}
// namespace horizon
horizon::Decal
Definition:
decal.hpp:16
horizon::BoardDecal
Definition:
board_decal.hpp:11
horizon::IPool
Definition:
ipool.hpp:12
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:166
horizon::UUID
This class encapsulates a UUID and allows it to be uses as a value type.
Definition:
uuid.hpp:16
nlohmann::json
basic_json<> json
default JSON class
Definition:
json_fwd.hpp:61
horizon::Placement
Definition:
placement.hpp:8
Generated by
1.8.20