blob: 5ab175ce260dcc6d2897698f9d80414f5fff0ea0 (
plain)
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
40
41
42
43
44
|
#ifndef LH_CSS_OFFSETS_H
#define LH_CSS_OFFSETS_H
#include "css_length.h"
namespace litehtml
{
struct css_offsets
{
css_length left;
css_length top;
css_length right;
css_length bottom;
css_offsets() = default;
css_offsets(const css_offsets& val)
{
left = val.left;
top = val.top;
right = val.right;
bottom = val.bottom;
}
css_offsets& operator=(const css_offsets& val)
{
left = val.left;
top = val.top;
right = val.right;
bottom = val.bottom;
return *this;
}
string to_string() const
{
return "left: " + left.to_string() +
", top: " + top.to_string() +
", right: " + right.to_string() +
", bottom: " + bottom.to_string();
}
};
}
#endif // LH_CSS_OFFSETS_H
|