87ce59e20d9233d2c82284d277d5aa55923256a8
[claws.git] / src / plugins / litehtml_viewer / litehtml / background.cpp
1 #include "html.h"\r
2 #include "background.h"\r
3 \r
4 litehtml::background::background(void)\r
5 {\r
6         m_attachment    = background_attachment_scroll;\r
7         m_repeat                = background_repeat_repeat;\r
8         m_clip                  = background_box_border;\r
9         m_origin                = background_box_padding;\r
10         m_color.alpha   = 0;\r
11         m_color.red             = 0;\r
12         m_color.green   = 0;\r
13         m_color.blue    = 0;\r
14 }\r
15 \r
16 litehtml::background::background( const background& val )\r
17 {\r
18         m_image                 = val.m_image;\r
19         m_baseurl               = val.m_baseurl;\r
20         m_color                 = val.m_color;\r
21         m_attachment    = val.m_attachment;\r
22         m_position              = val.m_position;\r
23         m_repeat                = val.m_repeat;\r
24         m_clip                  = val.m_clip;\r
25         m_origin                = val.m_origin;\r
26 }\r
27 \r
28 litehtml::background::~background(void)\r
29 {\r
30 }\r
31 \r
32 litehtml::background& litehtml::background::operator=( const background& val )\r
33 {\r
34         m_image                 = val.m_image;\r
35         m_baseurl               = val.m_baseurl;\r
36         m_color                 = val.m_color;\r
37         m_attachment    = val.m_attachment;\r
38         m_position              = val.m_position;\r
39         m_repeat                = val.m_repeat;\r
40         m_clip                  = val.m_clip;\r
41         m_origin                = val.m_origin;\r
42         return *this;\r
43 }\r
44 \r
45 \r
46 litehtml::background_paint::background_paint() : color(0, 0, 0, 0)\r
47 {\r
48         position_x              = 0;\r
49         position_y              = 0;\r
50         attachment              = background_attachment_scroll;\r
51         repeat                  = background_repeat_repeat;\r
52         is_root                 = false;\r
53 }\r
54 \r
55 litehtml::background_paint::background_paint( const background_paint& val )\r
56 {\r
57         image                   = val.image;\r
58         baseurl                 = val.baseurl;\r
59         attachment              = val.attachment;\r
60         repeat                  = val.repeat;\r
61         color                   = val.color;\r
62         clip_box                = val.clip_box;\r
63         origin_box              = val.origin_box;\r
64         border_box              = val.border_box;\r
65         border_radius   = val.border_radius;\r
66         image_size              = val.image_size;\r
67         position_x              = val.position_x;\r
68         position_y              = val.position_y;\r
69         is_root                 = val.is_root;\r
70 }\r
71 \r
72 void litehtml::background_paint::operator=( const background& val )\r
73 {\r
74         attachment      = val.m_attachment;\r
75         baseurl         = val.m_baseurl;\r
76         image           = val.m_image;\r
77         repeat          = val.m_repeat;\r
78         color           = val.m_color;\r
79 }\r