Initial commit of litehtml_viewer
[claws.git] / src / plugins / litehtml_viewer / litehtml / css_margins.h
diff --git a/src/plugins/litehtml_viewer/litehtml/css_margins.h b/src/plugins/litehtml_viewer/litehtml/css_margins.h
new file mode 100644 (file)
index 0000000..fbe1d40
--- /dev/null
@@ -0,0 +1,35 @@
+#pragma once\r
+#include "css_length.h"\r
+\r
+namespace litehtml\r
+{\r
+       struct css_margins\r
+       {\r
+               css_length      left;\r
+               css_length      right;\r
+               css_length      top;\r
+               css_length      bottom;\r
+\r
+               css_margins()\r
+               {\r
+\r
+               }\r
+\r
+               css_margins(const css_margins& val)\r
+               {\r
+                       left    = val.left;\r
+                       right   = val.right;\r
+                       top             = val.top;\r
+                       bottom  = val.bottom;\r
+               }\r
+\r
+               css_margins& operator=(const css_margins& val)\r
+               {\r
+                       left    = val.left;\r
+                       right   = val.right;\r
+                       top             = val.top;\r
+                       bottom  = val.bottom;\r
+                       return *this;\r
+               }\r
+       };\r
+}
\ No newline at end of file