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