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