Photon 1.0.0
Loading...
Searching...
No Matches
css_offsets.h
Go to the documentation of this file.
1#ifndef LH_CSS_OFFSETS_H
2#define LH_CSS_OFFSETS_H
3
4#include "css_length.h"
5
6namespace litehtml
7{
9 {
14
15 css_offsets() = default;
16
18 {
19 left = val.left;
20 top = val.top;
21 right = val.right;
22 bottom = val.bottom;
23 }
24
25 css_offsets& operator=(const css_offsets& val) = default;
26
27 string to_string() const
28 {
29 return "left: " + left.to_string() +
30 ", top: " + top.to_string() +
31 ", right: " + right.to_string() +
32 ", bottom: " + bottom.to_string();
33 }
34 };
35}
36
37#endif // LH_CSS_OFFSETS_H
Definition css_length.h:22
string to_string() const
Definition css_length.cpp:62
Definition background.h:12
Definition css_offsets.h:9
css_length bottom
Definition css_offsets.h:13
css_length right
Definition css_offsets.h:12
css_offsets(const css_offsets &val)
Definition css_offsets.h:17
css_length left
Definition css_offsets.h:10
css_offsets & operator=(const css_offsets &val)=default
string to_string() const
Definition css_offsets.h:27
css_length top
Definition css_offsets.h:11