Horizon
src
common
picture.hpp
1
#pragma once
2
#include "util/uuid.hpp"
3
#include "util/placement.hpp"
4
#include "nlohmann/json_fwd.hpp"
5
#include "util/picture_data.hpp"
6
7
namespace
horizon {
8
using
json
=
nlohmann::json
;
9
10
class
Picture {
11
public
:
12
Picture(
const
UUID &uu,
const
json
&j);
13
Picture(
const
UUID &uu);
14
15
UUID uuid;
16
Placement placement;
17
bool
on_top =
false
;
18
float
opacity = 1;
19
20
uint64_t
px_size = 1;
21
std::shared_ptr<const PictureData> data;
22
UUID data_uuid;
23
24
json
serialize()
const
;
25
};
26
27
}
// namespace horizon
nlohmann::basic_json
a class to store JSON values
Definition:
json.hpp:166
nlohmann::json
basic_json<> json
default JSON class
Definition:
json_fwd.hpp:61
libzip::uint64_t
zip_uint64_t uint64_t
zip_uint64_t_t typedef.
Definition:
zip.hpp:108
Generated by
1.8.20