lines-are-beautiful
0.0
A C++ file API for the reMarkable e-ink tablet
include
rmlab
Layer.hpp
Go to the documentation of this file.
1
/* Copyright 2017-2018 Axel Huebl
2
*
3
* This file is part of lines-are-beautiful.
4
*
5
* lines-are-beautiful is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* lines-are-beautiful is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with lines-are-beautiful.
17
* If not, see <http://www.gnu.org/licenses/>.
18
*/
19
25
#pragma once
26
27
#include "
Line.hpp
"
28
29
#include <cstdint>
// int8_t - int64_t
30
#include <list>
31
32
33
namespace
rmlab
34
{
44
struct
Layer
45
{
49
int32_t
nlines
;
50
54
std::list< Line >
lines
;
55
};
56
57
inline
Layer
make_layer( std::list< Line > lines = std::list< Line >{} )
58
{
59
Layer newLayer;
60
newLayer.
nlines
= lines.size();
61
newLayer.lines = lines;
62
63
return
newLayer;
64
}
65
}
rmlab
Definition:
Layer.hpp:33
Line.hpp
rmlab::Layer::lines
std::list< Line > lines
Definition:
Layer.hpp:54
rmlab::Layer::nlines
int32_t nlines
Definition:
Layer.hpp:49
rmlab::Layer
Definition:
Layer.hpp:44
Generated by
1.8.15