ClanLib
2.3.7
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
Sources
API
CSSLayout
css_box_properties.h
Go to the documentation of this file.
1
/*
2
** ClanLib SDK
3
** Copyright (c) 1997-2011 The ClanLib Team
4
**
5
** This software is provided 'as-is', without any express or implied
6
** warranty. In no event will the authors be held liable for any damages
7
** arising from the use of this software.
8
**
9
** Permission is granted to anyone to use this software for any purpose,
10
** including commercial applications, and to alter it and redistribute it
11
** freely, subject to the following restrictions:
12
**
13
** 1. The origin of this software must not be misrepresented; you must not
14
** claim that you wrote the original software. If you use this software
15
** in a product, an acknowledgment in the product documentation would be
16
** appreciated but is not required.
17
** 2. Altered source versions must be plainly marked as such, and must not be
18
** misrepresented as being the original software.
19
** 3. This notice may not be removed or altered from any source distribution.
20
**
21
** Note: Some of the libraries ClanLib may link to may have additional
22
** requirements or restrictions.
23
**
24
** File Author(s):
25
**
26
** Magnus Norddahl
27
*/
28
29
#pragma once
30
31
#include "
PropertyTypes/css_box_background_attachment.h
"
32
#include "
PropertyTypes/css_box_background_color.h
"
33
#include "
PropertyTypes/css_box_background_image.h
"
34
#include "
PropertyTypes/css_box_background_position.h
"
35
#include "
PropertyTypes/css_box_background_repeat.h
"
36
#include "
PropertyTypes/css_box_background_origin.h
"
37
#include "
PropertyTypes/css_box_background_clip.h
"
38
#include "
PropertyTypes/css_box_background_size.h
"
39
#include "
PropertyTypes/css_box_border_collapse.h
"
40
#include "
PropertyTypes/css_box_border_color.h
"
41
#include "
PropertyTypes/css_box_border_spacing.h
"
42
#include "
PropertyTypes/css_box_border_style.h
"
43
#include "
PropertyTypes/css_box_border_width.h
"
44
#include "
PropertyTypes/css_box_border_radius.h
"
45
#include "
PropertyTypes/css_box_border_image_source.h
"
46
#include "
PropertyTypes/css_box_border_image_slice.h
"
47
#include "
PropertyTypes/css_box_border_image_width.h
"
48
#include "
PropertyTypes/css_box_border_image_outset.h
"
49
#include "
PropertyTypes/css_box_border_image_repeat.h
"
50
#include "
PropertyTypes/css_box_decoration_break.h
"
51
#include "
PropertyTypes/css_box_shadow.h
"
52
#include "
PropertyTypes/css_box_bottom.h
"
53
#include "
PropertyTypes/css_box_caption_side.h
"
54
#include "
PropertyTypes/css_box_clear.h
"
55
#include "
PropertyTypes/css_box_clip.h
"
56
#include "
PropertyTypes/css_box_color.h
"
57
#include "
PropertyTypes/css_box_counter_increment.h
"
58
#include "
PropertyTypes/css_box_counter_reset.h
"
59
#include "
PropertyTypes/css_box_content.h
"
60
#include "
PropertyTypes/css_box_cursor.h
"
61
#include "
PropertyTypes/css_box_direction.h
"
62
#include "
PropertyTypes/css_box_display.h
"
63
#include "
PropertyTypes/css_box_empty_cells.h
"
64
#include "
PropertyTypes/css_box_float.h
"
65
#include "
PropertyTypes/css_box_font_family.h
"
66
#include "
PropertyTypes/css_box_font_size.h
"
67
#include "
PropertyTypes/css_box_font_style.h
"
68
#include "
PropertyTypes/css_box_font_variant.h
"
69
#include "
PropertyTypes/css_box_font_weight.h
"
70
#include "
PropertyTypes/css_box_height.h
"
71
#include "
PropertyTypes/css_box_left.h
"
72
#include "
PropertyTypes/css_box_letter_spacing.h
"
73
#include "
PropertyTypes/css_box_line_height.h
"
74
#include "
PropertyTypes/css_box_list_style_image.h
"
75
#include "
PropertyTypes/css_box_list_style_position.h
"
76
#include "
PropertyTypes/css_box_list_style_type.h
"
77
#include "
PropertyTypes/css_box_margin_width.h
"
78
#include "
PropertyTypes/css_box_max_height.h
"
79
#include "
PropertyTypes/css_box_max_width.h
"
80
#include "
PropertyTypes/css_box_min_height.h
"
81
#include "
PropertyTypes/css_box_min_width.h
"
82
#include "
PropertyTypes/css_box_orphans.h
"
83
#include "
PropertyTypes/css_box_outline_color.h
"
84
#include "
PropertyTypes/css_box_outline_style.h
"
85
#include "
PropertyTypes/css_box_outline_width.h
"
86
#include "
PropertyTypes/css_box_overflow.h
"
87
#include "
PropertyTypes/css_box_padding_width.h
"
88
#include "
PropertyTypes/css_box_page_break_after.h
"
89
#include "
PropertyTypes/css_box_page_break_before.h
"
90
#include "
PropertyTypes/css_box_page_break_inside.h
"
91
#include "
PropertyTypes/css_box_position.h
"
92
#include "
PropertyTypes/css_box_quotes.h
"
93
#include "
PropertyTypes/css_box_right.h
"
94
#include "
PropertyTypes/css_box_table_layout.h
"
95
#include "
PropertyTypes/css_box_text_align.h
"
96
#include "
PropertyTypes/css_box_text_decoration.h
"
97
#include "
PropertyTypes/css_box_text_indent.h
"
98
#include "
PropertyTypes/css_box_text_transform.h
"
99
#include "
PropertyTypes/css_box_top.h
"
100
#include "
PropertyTypes/css_box_unicode_bidi.h
"
101
#include "
PropertyTypes/css_box_vertical_align.h
"
102
#include "
PropertyTypes/css_box_visibility.h
"
103
#include "
PropertyTypes/css_box_white_space.h
"
104
#include "
PropertyTypes/css_box_widows.h
"
105
#include "
PropertyTypes/css_box_width.h
"
106
#include "
PropertyTypes/css_box_word_spacing.h
"
107
#include "
PropertyTypes/css_box_z_index.h
"
108
109
class
CL_CSSPropertyList2
;
110
111
class
CL_CSSBoxProperties
112
{
113
public
:
114
CL_CSSBoxDisplay
display
;
115
CL_CSSBoxWhiteSpace
white_space
;
116
117
CL_CSSBoxMarginWidth
margin_width_left
;
118
CL_CSSBoxMarginWidth
margin_width_top
;
119
CL_CSSBoxMarginWidth
margin_width_right
;
120
CL_CSSBoxMarginWidth
margin_width_bottom
;
121
122
CL_CSSBoxBorderColor
border_color_left
;
123
CL_CSSBoxBorderColor
border_color_top
;
124
CL_CSSBoxBorderColor
border_color_right
;
125
CL_CSSBoxBorderColor
border_color_bottom
;
126
127
CL_CSSBoxBorderStyle
border_style_left
;
128
CL_CSSBoxBorderStyle
border_style_top
;
129
CL_CSSBoxBorderStyle
border_style_right
;
130
CL_CSSBoxBorderStyle
border_style_bottom
;
131
132
CL_CSSBoxBorderWidth
border_width_left
;
133
CL_CSSBoxBorderWidth
border_width_top
;
134
CL_CSSBoxBorderWidth
border_width_right
;
135
CL_CSSBoxBorderWidth
border_width_bottom
;
136
137
CL_CSSBoxBorderRadius
border_radius_top_right
;
138
CL_CSSBoxBorderRadius
border_radius_bottom_right
;
139
CL_CSSBoxBorderRadius
border_radius_bottom_left
;
140
CL_CSSBoxBorderRadius
border_radius_top_left
;
141
142
CL_CSSBoxBorderImageSource
border_image_source
;
143
CL_CSSBoxBorderImageSlice
border_image_slice
;
144
CL_CSSBoxBorderImageWidth
border_image_width
;
145
CL_CSSBoxBorderImageOutset
border_image_outset
;
146
CL_CSSBoxBorderImageRepeat
border_image_repeat
;
147
148
CL_CSSBoxDecorationBreak
decoration_break
;
149
CL_CSSBoxShadow
shadow
;
150
151
CL_CSSBoxBackgroundAttachment
background_attachment
;
152
CL_CSSBoxBackgroundColor
background_color
;
153
CL_CSSBoxBackgroundImage
background_image
;
154
CL_CSSBoxBackgroundPosition
background_position
;
155
CL_CSSBoxBackgroundRepeat
background_repeat
;
156
CL_CSSBoxBackgroundOrigin
background_origin
;
157
CL_CSSBoxBackgroundClip
background_clip
;
158
CL_CSSBoxBackgroundSize
background_size
;
159
160
CL_CSSBoxPaddingWidth
padding_width_left
;
161
CL_CSSBoxPaddingWidth
padding_width_top
;
162
CL_CSSBoxPaddingWidth
padding_width_right
;
163
CL_CSSBoxPaddingWidth
padding_width_bottom
;
164
165
CL_CSSBoxWidth
width
;
166
CL_CSSBoxHeight
height
;
167
CL_CSSBoxMaxWidth
max_width
;
168
CL_CSSBoxMaxHeight
max_height
;
169
CL_CSSBoxMinWidth
min_width
;
170
CL_CSSBoxMinHeight
min_height
;
171
172
CL_CSSBoxPosition
position
;
173
CL_CSSBoxZIndex
z_index
;
174
CL_CSSBoxLeft
left
;
175
CL_CSSBoxTop
top
;
176
CL_CSSBoxRight
right
;
177
CL_CSSBoxBottom
bottom
;
178
CL_CSSBoxFloat
float_box
;
179
CL_CSSBoxClear
clear
;
180
CL_CSSBoxClip
clip
;
181
CL_CSSBoxOverflow
overflow
;
182
CL_CSSBoxVisibility
visibility
;
183
184
CL_CSSBoxCounterIncrement
counter_increment
;
185
CL_CSSBoxCounterReset
counter_reset
;
186
187
CL_CSSBoxCursor
cursor
;
188
CL_CSSBoxOutlineColor
outline_color
;
189
CL_CSSBoxOutlineStyle
outline_style
;
190
CL_CSSBoxOutlineWidth
outline_width
;
191
192
CL_CSSBoxContent
content
;
193
194
CL_CSSBoxColor
color
;
195
CL_CSSBoxTextDecoration
text_decoration
;
196
CL_CSSBoxTextIndent
text_indent
;
197
CL_CSSBoxTextTransform
text_transform
;
198
CL_CSSBoxTextAlign
text_align
;
199
CL_CSSBoxFontFamily
font_family
;
200
CL_CSSBoxFontSize
font_size
;
201
CL_CSSBoxFontStyle
font_style
;
202
CL_CSSBoxFontVariant
font_variant
;
203
CL_CSSBoxFontWeight
font_weight
;
204
CL_CSSBoxLetterSpacing
letter_spacing
;
205
CL_CSSBoxWordSpacing
word_spacing
;
206
CL_CSSBoxLineHeight
line_height
;
207
CL_CSSBoxQuotes
quotes
;
208
CL_CSSBoxDirection
direction
;
209
CL_CSSBoxUnicodeBidi
unicode_bidi
;
210
211
CL_CSSBoxOrphans
orphans
;
212
CL_CSSBoxWidows
widows
;
213
CL_CSSBoxPageBreakBefore
page_break_before
;
214
CL_CSSBoxPageBreakAfter
page_break_after
;
215
CL_CSSBoxPageBreakInside
page_break_inside
;
216
217
CL_CSSBoxListStyleType
list_style_type
;
218
CL_CSSBoxListStylePosition
list_style_position
;
219
CL_CSSBoxListStyleImage
list_style_image
;
220
221
CL_CSSBoxTableLayout
table_layout
;
222
CL_CSSBoxCaptionSide
caption_side
;
223
CL_CSSBoxBorderCollapse
border_collapse
;
224
CL_CSSBoxBorderSpacing
border_spacing
;
225
CL_CSSBoxVerticalAlign
vertical_align
;
226
CL_CSSBoxEmptyCells
empty_cells
;
227
228
void
apply_properties
(
const
CL_String
&style_string, std::map<CL_String, CL_CSSBoxProperty *> *out_change_set = 0);
229
void
apply_properties
(
const
CL_CSSPropertyList2
&css_properties, std::map<CL_String, CL_CSSBoxProperty *> *out_change_set = 0);
230
231
void
compute
(
const
CL_CSSBoxProperties
*parent, CL_CSSResourceCache *layout);
232
};
Generated on Fri Jun 14 2013 13:05:45 for ClanLib by
1.8.4