add support for Ayatana indicator to Notification plugin
[claws.git] / src / plugins / litehtml_viewer / litehtml / background.h
blobc56443d548cc3bc03202765017a70aed2e4d9e96
1 #ifndef LH_BACKGROUND_H
2 #define LH_BACKGROUND_H
4 #include "types.h"
5 #include "css_length.h"
6 #include "css_position.h"
7 #include "web_color.h"
8 #include "borders.h"
10 namespace litehtml
12 class background
14 public:
15 string_vector m_image;
16 string m_baseurl;
17 web_color m_color;
18 int_vector m_attachment;
19 length_vector m_position_x;
20 length_vector m_position_y;
21 size_vector m_size;
22 int_vector m_repeat;
23 int_vector m_clip;
24 int_vector m_origin;
26 bool is_empty() const
28 if(m_color.alpha != 0) return false;
29 if(m_image.empty()) return true;
30 for(const auto& img : m_image)
32 if(!img.empty()) return false;
34 return true;
38 class background_paint
40 public:
41 string image;
42 string baseurl;
43 background_attachment attachment;
44 background_repeat repeat;
45 web_color color;
46 position clip_box;
47 position origin_box;
48 position border_box;
49 border_radiuses border_radius;
50 size image_size;
51 int position_x;
52 int position_y;
53 bool is_root;
55 public:
56 background_paint()
58 attachment = background_attachment_scroll;
59 repeat = background_repeat_repeat;
60 color = web_color::transparent;
61 position_x = 0;
62 position_y = 0;
63 is_root = false;
69 #endif // LH_BACKGROUND_H