rsvg2 3.0.7-x64-mingw32 → 3.0.8-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -2
  3. data/ext/rsvg2/extconf.rb +1 -0
  4. data/lib/2.2/rsvg2.so +0 -0
  5. data/lib/2.3/rsvg2.so +0 -0
  6. data/vendor/local/bin/croco-0.6-config +2 -2
  7. data/vendor/local/bin/csslint-0.6.exe +0 -0
  8. data/vendor/local/bin/libcroco-0.6-3.dll +0 -0
  9. data/vendor/local/bin/librsvg-2-2.dll +0 -0
  10. data/vendor/local/bin/rsvg-convert.exe +0 -0
  11. data/vendor/local/include/libcroco-0.6/libcroco/libcroco-config.h +2 -2
  12. data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +26 -4
  13. data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
  14. data/vendor/local/lib/libcroco-0.6.a +0 -0
  15. data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
  16. data/vendor/local/lib/libcroco-0.6.la +3 -3
  17. data/vendor/local/lib/librsvg-2.a +0 -0
  18. data/vendor/local/lib/librsvg-2.dll.a +0 -0
  19. data/vendor/local/lib/librsvg-2.la +2 -2
  20. data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +1 -1
  21. data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +1 -1
  22. data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +2 -2
  23. data/vendor/local/share/gtk-doc/html/libcroco/ch01.html +13 -14
  24. data/vendor/local/share/gtk-doc/html/libcroco/home.png +0 -0
  25. data/vendor/local/share/gtk-doc/html/libcroco/index.html +5 -6
  26. data/vendor/local/share/gtk-doc/html/libcroco/left-insensitive.png +0 -0
  27. data/vendor/local/share/gtk-doc/html/libcroco/left.png +0 -0
  28. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-additional-sel.html +360 -221
  29. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-attr-sel.html +209 -132
  30. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-cascade.html +251 -164
  31. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-declaration.html +693 -449
  32. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-doc-handler.html +365 -259
  33. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-enc-handler.html +148 -107
  34. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-fonts.html +805 -463
  35. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-input.html +1109 -753
  36. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-num.html +267 -180
  37. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-om-parser.html +351 -255
  38. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parser.html +913 -644
  39. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parsing-location.html +234 -124
  40. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-prop-list.html +437 -271
  41. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-pseudo.html +139 -86
  42. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-rgb.html +517 -352
  43. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-sel-eng.html +326 -252
  44. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-selector.html +219 -186
  45. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-simple-sel.html +219 -176
  46. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-statement.html +1231 -1220
  47. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-string.html +142 -83
  48. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-style.html +351 -256
  49. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-stylesheet.html +155 -99
  50. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-term.html +313 -207
  51. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-tknzr.html +321 -210
  52. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-token.html +465 -284
  53. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-utils.html +507 -231
  54. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-libcroco-config.html +54 -40
  55. data/vendor/local/share/gtk-doc/html/libcroco/libcroco.devhelp2 +465 -426
  56. data/vendor/local/share/gtk-doc/html/libcroco/right-insensitive.png +0 -0
  57. data/vendor/local/share/gtk-doc/html/libcroco/right.png +0 -0
  58. data/vendor/local/share/gtk-doc/html/libcroco/style.css +317 -104
  59. data/vendor/local/share/gtk-doc/html/libcroco/up-insensitive.png +0 -0
  60. data/vendor/local/share/gtk-doc/html/libcroco/up.png +0 -0
  61. data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1039 -724
  62. data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +29 -32
  63. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +16 -19
  64. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +13 -16
  65. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +14 -17
  66. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +15 -20
  67. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +12 -15
  68. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +17 -22
  69. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +18 -23
  70. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +31 -36
  71. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +79 -84
  72. data/vendor/local/share/gtk-doc/html/rsvg-2.0/home.png +0 -0
  73. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +4 -4
  74. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +31 -28
  75. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left-insensitive.png +0 -0
  76. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left.png +0 -0
  77. data/vendor/local/share/gtk-doc/html/rsvg-2.0/licence.html +9 -9
  78. data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +15 -15
  79. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right-insensitive.png +0 -0
  80. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right.png +0 -0
  81. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +55 -59
  82. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +247 -190
  83. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +336 -239
  84. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +95 -70
  85. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +77 -37
  86. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +9 -9
  87. data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +314 -104
  88. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
  89. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
  90. metadata +14 -10
  91. data/lib/2.0/rsvg2.so +0 -0
  92. data/lib/2.1/rsvg2.so +0 -0
  93. data/vendor/local/share/gtk-doc/html/libcroco/index.sgml +0 -582
@@ -2,30 +2,26 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>cr-simple-sel</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>cr-simple-sel: Libcroco Reference Manual</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Libcroco Reference Manual">
8
8
  <link rel="up" href="ch01.html" title="Extensive APIs description">
9
9
  <link rel="prev" href="libcroco-cr-selector.html" title="cr-selector">
10
10
  <link rel="next" href="libcroco-cr-statement.html" title="cr-statement">
11
- <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.24.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
- <tr valign="middle">
17
- <td><a accesskey="p" href="libcroco-cr-selector.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
- <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
- <th width="100%" align="center">Libcroco Reference Manual</th>
21
- <td><a accesskey="n" href="libcroco-cr-statement.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
- </tr>
23
- <tr><td colspan="5" class="shortcuts">
24
- <a href="#libcroco-cr-simple-sel.synopsis" class="shortcut">Top</a>
25
-  | 
26
- <a href="#libcroco-cr-simple-sel.description" class="shortcut">Description</a>
27
- </td></tr>
28
- </table>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18
+ <a href="#libcroco-cr-simple-sel.description" class="shortcut">Description</a></span>
19
+ </td>
20
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21
+ <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22
+ <td><a accesskey="p" href="libcroco-cr-selector.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23
+ <td><a accesskey="n" href="libcroco-cr-statement.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24
+ </tr></table>
29
25
  <div class="refentry">
30
26
  <a name="libcroco-cr-simple-sel"></a><div class="titlepage"></div>
31
27
  <div class="refnamediv"><table width="100%"><tr>
@@ -33,32 +29,217 @@
33
29
  <h2><span class="refentrytitle"><a name="libcroco-cr-simple-sel.top_of_page"></a>cr-simple-sel</span></h2>
34
30
  <p>cr-simple-sel</p>
35
31
  </td>
36
- <td valign="top" align="right"></td>
32
+ <td class="gallery_image" valign="top" align="right"></td>
37
33
  </tr></table></div>
38
- <div class="refsynopsisdiv">
39
- <a name="libcroco-cr-simple-sel.synopsis"></a><h2>Synopsis</h2>
40
- <pre class="synopsis">struct <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel">CRSimpleSel</a>;
41
- <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> * <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-append-simple-sel" title="cr_simple_sel_append_simple_sel ()">cr_simple_sel_append_simple_sel</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>,
42
- <em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_sel</code></em>);
43
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-compute-specificity" title="cr_simple_sel_compute_specificity ()">cr_simple_sel_compute_specificity</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>);
44
- <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-destroy" title="cr_simple_sel_destroy ()">cr_simple_sel_destroy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>);
45
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-dump" title="cr_simple_sel_dump ()">cr_simple_sel_dump</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>,
46
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>);
47
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-dump-attr-sel-list" title="cr_simple_sel_dump_attr_sel_list ()">cr_simple_sel_dump_attr_sel_list</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>);
48
- <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> * <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-new" title="cr_simple_sel_new ()">cr_simple_sel_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
49
- <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-one-to-string" title="cr_simple_sel_one_to_string ()">cr_simple_sel_one_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>);
50
- <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> * <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-prepend-simple-sel" title="cr_simple_sel_prepend_simple_sel ()">cr_simple_sel_prepend_simple_sel</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>,
51
- <em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_sel</code></em>);
52
- <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-to-string" title="cr_simple_sel_to_string ()">cr_simple_sel_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>);
53
- </pre>
34
+ <div class="refsect1">
35
+ <a name="libcroco-cr-simple-sel.functions"></a><h2>Functions</h2>
36
+ <div class="informaltable"><table width="100%" border="0">
37
+ <colgroup>
38
+ <col width="150px" class="functions_return">
39
+ <col class="functions_name">
40
+ </colgroup>
41
+ <tbody>
42
+ <tr>
43
+ <td class="function_type">
44
+ <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> *
45
+ </td>
46
+ <td class="function_name">
47
+ <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-new" title="cr_simple_sel_new ()">cr_simple_sel_new</a> <span class="c_punctuation">()</span>
48
+ </td>
49
+ </tr>
50
+ <tr>
51
+ <td class="function_type">
52
+ <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> *
53
+ </td>
54
+ <td class="function_name">
55
+ <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-append-simple-sel" title="cr_simple_sel_append_simple_sel ()">cr_simple_sel_append_simple_sel</a> <span class="c_punctuation">()</span>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td class="function_type">
60
+ <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> *
61
+ </td>
62
+ <td class="function_name">
63
+ <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-prepend-simple-sel" title="cr_simple_sel_prepend_simple_sel ()">cr_simple_sel_prepend_simple_sel</a> <span class="c_punctuation">()</span>
64
+ </td>
65
+ </tr>
66
+ <tr>
67
+ <td class="function_type">
68
+ <span class="returnvalue">guchar</span> *
69
+ </td>
70
+ <td class="function_name">
71
+ <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-to-string" title="cr_simple_sel_to_string ()">cr_simple_sel_to_string</a> <span class="c_punctuation">()</span>
72
+ </td>
73
+ </tr>
74
+ <tr>
75
+ <td class="function_type">
76
+ <span class="returnvalue">guchar</span> *
77
+ </td>
78
+ <td class="function_name">
79
+ <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-one-to-string" title="cr_simple_sel_one_to_string ()">cr_simple_sel_one_to_string</a> <span class="c_punctuation">()</span>
80
+ </td>
81
+ </tr>
82
+ <tr>
83
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
84
+ </td>
85
+ <td class="function_name">
86
+ <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-dump" title="cr_simple_sel_dump ()">cr_simple_sel_dump</a> <span class="c_punctuation">()</span>
87
+ </td>
88
+ </tr>
89
+ <tr>
90
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
91
+ </td>
92
+ <td class="function_name">
93
+ <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-dump-attr-sel-list" title="cr_simple_sel_dump_attr_sel_list ()">cr_simple_sel_dump_attr_sel_list</a> <span class="c_punctuation">()</span>
94
+ </td>
95
+ </tr>
96
+ <tr>
97
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
98
+ </td>
99
+ <td class="function_name">
100
+ <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-compute-specificity" title="cr_simple_sel_compute_specificity ()">cr_simple_sel_compute_specificity</a> <span class="c_punctuation">()</span>
101
+ </td>
102
+ </tr>
103
+ <tr>
104
+ <td class="function_type">
105
+ <span class="returnvalue">void</span>
106
+ </td>
107
+ <td class="function_name">
108
+ <a class="link" href="libcroco-cr-simple-sel.html#cr-simple-sel-destroy" title="cr_simple_sel_destroy ()">cr_simple_sel_destroy</a> <span class="c_punctuation">()</span>
109
+ </td>
110
+ </tr>
111
+ </tbody>
112
+ </table></div>
113
+ </div>
114
+ <div class="refsect1">
115
+ <a name="libcroco-cr-simple-sel.other"></a><h2>Types and Values</h2>
116
+ <div class="informaltable"><table width="100%" border="0">
117
+ <colgroup>
118
+ <col width="150px" class="name">
119
+ <col class="description">
120
+ </colgroup>
121
+ <tbody><tr>
122
+ <td class="datatype_keyword">struct</td>
123
+ <td class="function_name"><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel">CRSimpleSel</a></td>
124
+ </tr></tbody>
125
+ </table></div>
54
126
  </div>
55
127
  <div class="refsect1">
56
128
  <a name="libcroco-cr-simple-sel.description"></a><h2>Description</h2>
57
- <p>
58
- </p>
59
129
  </div>
60
130
  <div class="refsect1">
61
- <a name="libcroco-cr-simple-sel.details"></a><h2>Details</h2>
131
+ <a name="libcroco-cr-simple-sel.functions_details"></a><h2>Functions</h2>
132
+ <div class="refsect2">
133
+ <a name="cr-simple-sel-new"></a><h3>cr_simple_sel_new ()</h3>
134
+ <pre class="programlisting"><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> *
135
+ cr_simple_sel_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
136
+ <p>The constructor of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.</p>
137
+ <p>Returns the new instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.</p>
138
+ </div>
139
+ <hr>
140
+ <div class="refsect2">
141
+ <a name="cr-simple-sel-append-simple-sel"></a><h3>cr_simple_sel_append_simple_sel ()</h3>
142
+ <pre class="programlisting"><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> *
143
+ cr_simple_sel_append_simple_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>,
144
+ <em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_sel</code></em>);</pre>
145
+ <p>Appends a simpe selector to the current list of simple selector.</p>
146
+ <p><em class="parameter"><code>a_this</code></em>
147
+ : the this pointer of the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.
148
+ <em class="parameter"><code>a_sel</code></em>
149
+ : the simple selector to append.</p>
150
+ <div class="refsect3">
151
+ <a name="id-1.2.19.6.3.6"></a><h4>Returns</h4>
152
+ <p> the new list upon successfull completion, an error code otherwise.</p>
153
+ </div>
154
+ </div>
155
+ <hr>
156
+ <div class="refsect2">
157
+ <a name="cr-simple-sel-prepend-simple-sel"></a><h3>cr_simple_sel_prepend_simple_sel ()</h3>
158
+ <pre class="programlisting"><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> *
159
+ cr_simple_sel_prepend_simple_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>,
160
+ <em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_sel</code></em>);</pre>
161
+ <p><em class="parameter"><code>a_this</code></em>
162
+ : the this pointer of the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.
163
+ <em class="parameter"><code>a_sel</code></em>
164
+ : the simple selector to prepend.</p>
165
+ <p>Prepends a simple selector to the current list of simple selectors.</p>
166
+ <p>Returns the new list upon successfull completion, an error code otherwise.</p>
167
+ </div>
168
+ <hr>
169
+ <div class="refsect2">
170
+ <a name="cr-simple-sel-to-string"></a><h3>cr_simple_sel_to_string ()</h3>
171
+ <pre class="programlisting"><span class="returnvalue">guchar</span> *
172
+ cr_simple_sel_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>);</pre>
173
+ </div>
174
+ <hr>
175
+ <div class="refsect2">
176
+ <a name="cr-simple-sel-one-to-string"></a><h3>cr_simple_sel_one_to_string ()</h3>
177
+ <pre class="programlisting"><span class="returnvalue">guchar</span> *
178
+ cr_simple_sel_one_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>);</pre>
179
+ </div>
180
+ <hr>
181
+ <div class="refsect2">
182
+ <a name="cr-simple-sel-dump"></a><h3>cr_simple_sel_dump ()</h3>
183
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
184
+ cr_simple_sel_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>,
185
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>);</pre>
186
+ <p>Dumps the selector to a file.
187
+ TODO: add the support of unicode in the dump.</p>
188
+ <p>Returns CR_OK upon successfull completion, an error code
189
+ otherwise.</p>
190
+ <div class="refsect3">
191
+ <a name="id-1.2.19.6.7.6"></a><h4>Parameters</h4>
192
+ <div class="informaltable"><table width="100%" border="0">
193
+ <colgroup>
194
+ <col width="150px" class="parameters_name">
195
+ <col class="parameters_description">
196
+ <col width="200px" class="parameters_annotations">
197
+ </colgroup>
198
+ <tbody>
199
+ <tr>
200
+ <td class="parameter_name"><p>a_this</p></td>
201
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.</p></td>
202
+ <td class="parameter_annotations"> </td>
203
+ </tr>
204
+ <tr>
205
+ <td class="parameter_name"><p>a_fp</p></td>
206
+ <td class="parameter_description"><p>the destination file pointer.</p></td>
207
+ <td class="parameter_annotations"> </td>
208
+ </tr>
209
+ </tbody>
210
+ </table></div>
211
+ </div>
212
+ </div>
213
+ <hr>
214
+ <div class="refsect2">
215
+ <a name="cr-simple-sel-dump-attr-sel-list"></a><h3>cr_simple_sel_dump_attr_sel_list ()</h3>
216
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
217
+ cr_simple_sel_dump_attr_sel_list (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>);</pre>
218
+ </div>
219
+ <hr>
220
+ <div class="refsect2">
221
+ <a name="cr-simple-sel-compute-specificity"></a><h3>cr_simple_sel_compute_specificity ()</h3>
222
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
223
+ cr_simple_sel_compute_specificity (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>);</pre>
224
+ <p><em class="parameter"><code>a_this</code></em>
225
+ : the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a></p>
226
+ <p>Computes the selector (combinator separated list of simple selectors)
227
+ as defined in the css2 spec in chapter 6.4.3</p>
228
+ <p>Returns CR_OK upon successfull completion, an error code otherwise.</p>
229
+ </div>
230
+ <hr>
231
+ <div class="refsect2">
232
+ <a name="cr-simple-sel-destroy"></a><h3>cr_simple_sel_destroy ()</h3>
233
+ <pre class="programlisting"><span class="returnvalue">void</span>
234
+ cr_simple_sel_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>);</pre>
235
+ <p><em class="parameter"><code>a_this</code></em>
236
+ : the this pointer of the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.</p>
237
+ <p>The destructor of the current instance of
238
+ <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.</p>
239
+ </div>
240
+ </div>
241
+ <div class="refsect1">
242
+ <a name="libcroco-cr-simple-sel.other_details"></a><h2>Types and Values</h2>
62
243
  <div class="refsect2">
63
244
  <a name="CRSimpleSel"></a><h3>struct CRSimpleSel</h3>
64
245
  <pre class="programlisting">struct CRSimpleSel {
@@ -93,148 +274,10 @@ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcr
93
274
  CRParsingLocation location ;
94
275
  };
95
276
  </pre>
96
- <p>
97
- </p>
98
- </div>
99
- <hr>
100
- <div class="refsect2">
101
- <a name="cr-simple-sel-append-simple-sel"></a><h3>cr_simple_sel_append_simple_sel ()</h3>
102
- <pre class="programlisting"><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> * cr_simple_sel_append_simple_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>,
103
- <em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_sel</code></em>);</pre>
104
- <p>
105
- Appends a simpe selector to the current list of simple selector.
106
- </p>
107
- <p>
108
- <em class="parameter"><code>a_this</code></em>: the this pointer of the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.
109
- <em class="parameter"><code>a_sel</code></em>: the simple selector to append.
110
- </p>
111
- <div class="variablelist"><table border="0">
112
- <col align="left" valign="top">
113
- <tbody><tr>
114
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
115
- <td>the new list upon successfull completion, an error code otherwise.</td>
116
- </tr></tbody>
117
- </table></div>
118
- </div>
119
- <hr>
120
- <div class="refsect2">
121
- <a name="cr-simple-sel-compute-specificity"></a><h3>cr_simple_sel_compute_specificity ()</h3>
122
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_simple_sel_compute_specificity (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>);</pre>
123
- <p>
124
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>
125
- </p>
126
- <p>
127
- Computes the selector (combinator separated list of simple selectors)
128
- as defined in the css2 spec in chapter 6.4.3
129
- </p>
130
- <div class="variablelist"><table border="0">
131
- <col align="left" valign="top">
132
- <tbody><tr>
133
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
134
- <td>CR_OK upon successfull completion, an error code otherwise.</td>
135
- </tr></tbody>
136
- </table></div>
137
- </div>
138
- <hr>
139
- <div class="refsect2">
140
- <a name="cr-simple-sel-destroy"></a><h3>cr_simple_sel_destroy ()</h3>
141
- <pre class="programlisting"><span class="returnvalue">void</span> cr_simple_sel_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>);</pre>
142
- <p>
143
- <em class="parameter"><code>a_this</code></em>: the this pointer of the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.
144
- </p>
145
- <p>
146
- The destructor of the current instance of
147
- <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.
148
- </p>
149
- </div>
150
- <hr>
151
- <div class="refsect2">
152
- <a name="cr-simple-sel-dump"></a><h3>cr_simple_sel_dump ()</h3>
153
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_simple_sel_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>,
154
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>);</pre>
155
- <p>
156
- Dumps the selector to a file.
157
- TODO: add the support of unicode in the dump.
158
- </p>
159
- <div class="variablelist"><table border="0">
160
- <col align="left" valign="top">
161
- <tbody>
162
- <tr>
163
- <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
164
- <td>the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.</td>
165
- </tr>
166
- <tr>
167
- <td><p><span class="term"><em class="parameter"><code>a_fp</code></em> :</span></p></td>
168
- <td>the destination file pointer.</td>
169
- </tr>
170
- <tr>
171
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
172
- <td>CR_OK upon successfull completion, an error code
173
- otherwise.</td>
174
- </tr>
175
- </tbody>
176
- </table></div>
177
- </div>
178
- <hr>
179
- <div class="refsect2">
180
- <a name="cr-simple-sel-dump-attr-sel-list"></a><h3>cr_simple_sel_dump_attr_sel_list ()</h3>
181
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_simple_sel_dump_attr_sel_list (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>);</pre>
182
- <p>
183
- </p>
184
- </div>
185
- <hr>
186
- <div class="refsect2">
187
- <a name="cr-simple-sel-new"></a><h3>cr_simple_sel_new ()</h3>
188
- <pre class="programlisting"><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> * cr_simple_sel_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
189
- <p>
190
- The constructor of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.
191
- </p>
192
- <div class="variablelist"><table border="0">
193
- <col align="left" valign="top">
194
- <tbody><tr>
195
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
196
- <td>the new instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.</td>
197
- </tr></tbody>
198
- </table></div>
199
- </div>
200
- <hr>
201
- <div class="refsect2">
202
- <a name="cr-simple-sel-one-to-string"></a><h3>cr_simple_sel_one_to_string ()</h3>
203
- <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * cr_simple_sel_one_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>);</pre>
204
- <p>
205
- </p>
206
- </div>
207
- <hr>
208
- <div class="refsect2">
209
- <a name="cr-simple-sel-prepend-simple-sel"></a><h3>cr_simple_sel_prepend_simple_sel ()</h3>
210
- <pre class="programlisting"><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="returnvalue">CRSimpleSel</span></a> * cr_simple_sel_prepend_simple_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_this</code></em>,
211
- <em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> *a_sel</code></em>);</pre>
212
- <p>
213
- <em class="parameter"><code>a_this</code></em>: the this pointer of the current instance of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a>.
214
- <em class="parameter"><code>a_sel</code></em>: the simple selector to prepend.
215
- </p>
216
- <p>
217
- Prepends a simple selector to the current list of simple selectors.
218
- </p>
219
- <div class="variablelist"><table border="0">
220
- <col align="left" valign="top">
221
- <tbody><tr>
222
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
223
- <td>the new list upon successfull completion, an error code otherwise.</td>
224
- </tr></tbody>
225
- </table></div>
226
- </div>
227
- <hr>
228
- <div class="refsect2">
229
- <a name="cr-simple-sel-to-string"></a><h3>cr_simple_sel_to_string ()</h3>
230
- <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * cr_simple_sel_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> const *a_this</code></em>);</pre>
231
- <p>
232
- </p>
233
277
  </div>
234
278
  </div>
235
279
  </div>
236
280
  <div class="footer">
237
- <hr>
238
- Generated by GTK-Doc V1.18</div>
281
+ <hr>Generated by GTK-Doc V1.24.1</div>
239
282
  </body>
240
283
  </html>
@@ -2,30 +2,26 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>cr-statement</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>cr-statement: Libcroco Reference Manual</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Libcroco Reference Manual">
8
8
  <link rel="up" href="ch01.html" title="Extensive APIs description">
9
9
  <link rel="prev" href="libcroco-cr-simple-sel.html" title="cr-simple-sel">
10
10
  <link rel="next" href="libcroco-cr-string.html" title="cr-string">
11
- <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.24.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
- <tr valign="middle">
17
- <td><a accesskey="p" href="libcroco-cr-simple-sel.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
- <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
- <th width="100%" align="center">Libcroco Reference Manual</th>
21
- <td><a accesskey="n" href="libcroco-cr-string.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
- </tr>
23
- <tr><td colspan="5" class="shortcuts">
24
- <a href="#libcroco-cr-statement.synopsis" class="shortcut">Top</a>
25
-  | 
26
- <a href="#libcroco-cr-statement.description" class="shortcut">Description</a>
27
- </td></tr>
28
- </table>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18
+ <a href="#libcroco-cr-statement.description" class="shortcut">Description</a></span>
19
+ </td>
20
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21
+ <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22
+ <td><a accesskey="p" href="libcroco-cr-simple-sel.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23
+ <td><a accesskey="n" href="libcroco-cr-string.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24
+ </tr></table>
29
25
  <div class="refentry">
30
26
  <a name="libcroco-cr-statement"></a><div class="titlepage"></div>
31
27
  <div class="refnamediv"><table width="100%"><tr>
@@ -33,1376 +29,1391 @@
33
29
  <h2><span class="refentrytitle"><a name="libcroco-cr-statement.top_of_page"></a>cr-statement</span></h2>
34
30
  <p>cr-statement</p>
35
31
  </td>
36
- <td valign="top" align="right"></td>
32
+ <td class="gallery_image" valign="top" align="right"></td>
37
33
  </tr></table></div>
38
- <div class="refsynopsisdiv">
39
- <a name="libcroco-cr-statement.synopsis"></a><h2>Synopsis</h2>
40
- <pre class="synopsis">struct <a class="link" href="libcroco-cr-statement.html#CRAtCharsetRule" title="struct CRAtCharsetRule">CRAtCharsetRule</a>;
41
- struct <a class="link" href="libcroco-cr-statement.html#CRAtFontFaceRule" title="struct CRAtFontFaceRule">CRAtFontFaceRule</a>;
42
- struct <a class="link" href="libcroco-cr-statement.html#CRAtImportRule" title="struct CRAtImportRule">CRAtImportRule</a>;
43
- struct <a class="link" href="libcroco-cr-statement.html#CRAtMediaRule" title="struct CRAtMediaRule">CRAtMediaRule</a>;
44
- struct <a class="link" href="libcroco-cr-statement.html#CRAtPageRule" title="struct CRAtPageRule">CRAtPageRule</a>;
45
- struct <a class="link" href="libcroco-cr-statement.html#CRRuleSet" title="struct CRRuleSet">CRRuleSet</a>;
46
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement">CRStatement</a>;
47
- <a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet">CRStyleSheet</a>;
48
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-append" title="cr_statement_append ()">cr_statement_append</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
49
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_new</code></em>);
50
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-charset-rule-get-charset" title="cr_statement_at_charset_rule_get_charset ()">cr_statement_at_charset_rule_get_charset</a>
51
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
52
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_charset</code></em>);
53
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-at-charset-rule-parse-from-buf" title="cr_statement_at_charset_rule_parse_from_buf ()">cr_statement_at_charset_rule_parse_from_buf</a>
54
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
55
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);
56
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-charset-rule-set-charset" title="cr_statement_at_charset_rule_set_charset ()">cr_statement_at_charset_rule_set_charset</a>
57
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
58
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_charset</code></em>);
59
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-font-face-rule-add-decl" title="cr_statement_at_font_face_rule_add_decl ()">cr_statement_at_font_face_rule_add_decl</a>
60
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
61
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
62
- <em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);
63
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-font-face-rule-get-decls" title="cr_statement_at_font_face_rule_get_decls ()">cr_statement_at_font_face_rule_get_decls</a>
64
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
65
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decls</code></em>);
66
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-font-face-rule-set-decls" title="cr_statement_at_font_face_rule_set_decls ()">cr_statement_at_font_face_rule_set_decls</a>
67
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
68
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decls</code></em>);
69
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-get-imported-sheet" title="cr_statement_at_import_rule_get_imported_sheet ()">cr_statement_at_import_rule_get_imported_sheet</a>
70
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
71
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> **a_sheet</code></em>);
72
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-get-url" title="cr_statement_at_import_rule_get_url ()">cr_statement_at_import_rule_get_url</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
73
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_url</code></em>);
74
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-parse-from-buf" title="cr_statement_at_import_rule_parse_from_buf ()">cr_statement_at_import_rule_parse_from_buf</a>
75
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
76
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);
77
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-set-imported-sheet" title="cr_statement_at_import_rule_set_imported_sheet ()">cr_statement_at_import_rule_set_imported_sheet</a>
78
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
79
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>);
80
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-set-url" title="cr_statement_at_import_rule_set_url ()">cr_statement_at_import_rule_set_url</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
81
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_url</code></em>);
82
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-at-media-get-from-list" title="cr_statement_at_media_get_from_list ()">cr_statement_at_media_get_from_list</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
83
- <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);
84
- <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-media-nr-rules" title="cr_statement_at_media_nr_rules ()">cr_statement_at_media_nr_rules</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>);
85
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-at-media-rule-parse-from-buf" title="cr_statement_at_media_rule_parse_from_buf ()">cr_statement_at_media_rule_parse_from_buf</a>
86
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
87
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
88
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-get-declarations" title="cr_statement_at_page_rule_get_declarations ()">cr_statement_at_page_rule_get_declarations</a>
89
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
90
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decl_list</code></em>);
91
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-get-sel" title="cr_statement_at_page_rule_get_sel ()">cr_statement_at_page_rule_get_sel</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
92
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> **a_sel</code></em>);
93
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-parse-from-buf" title="cr_statement_at_page_rule_parse_from_buf ()">cr_statement_at_page_rule_parse_from_buf</a>
94
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
95
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);
96
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-set-declarations" title="cr_statement_at_page_rule_set_declarations ()">cr_statement_at_page_rule_set_declarations</a>
97
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
98
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>);
99
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-set-sel" title="cr_statement_at_page_rule_set_sel ()">cr_statement_at_page_rule_set_sel</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
100
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel</code></em>);
101
- <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-destroy" title="cr_statement_destroy ()">cr_statement_destroy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>);
102
- <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libcroco-cr-statement.html#cr-statement-does-buf-parses-against-core" title="cr_statement_does_buf_parses_against_core ()">cr_statement_does_buf_parses_against_core</a>
103
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
104
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);
105
- <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-dump" title="cr_statement_dump ()">cr_statement_dump</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
106
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
107
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);
108
- <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-charset" title="cr_statement_dump_charset ()">cr_statement_dump_charset</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
109
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
110
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);
111
- <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-font-face-rule" title="cr_statement_dump_font_face_rule ()">cr_statement_dump_font_face_rule</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
112
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
113
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_indent</code></em>);
114
- <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-import-rule" title="cr_statement_dump_import_rule ()">cr_statement_dump_import_rule</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
115
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
116
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);
117
- <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-media-rule" title="cr_statement_dump_media_rule ()">cr_statement_dump_media_rule</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
118
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
119
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);
120
- <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-page" title="cr_statement_dump_page ()">cr_statement_dump_page</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
121
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
122
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);
123
- <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-ruleset" title="cr_statement_dump_ruleset ()">cr_statement_dump_ruleset</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
124
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
125
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_indent</code></em>);
126
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-font-face-rule-parse-from-buf" title="cr_statement_font_face_rule_parse_from_buf ()">cr_statement_font_face_rule_parse_from_buf</a>
127
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
128
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);
129
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-get-from-list" title="cr_statement_get_from_list ()">cr_statement_get_from_list</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
130
- <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);
131
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-get-parent-sheet" title="cr_statement_get_parent_sheet ()">cr_statement_get_parent_sheet</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
132
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> **a_sheet</code></em>);
133
- <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-list-to-string" title="cr_statement_list_to_string ()">cr_statement_list_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
134
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);
135
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-charset-rule" title="cr_statement_new_at_charset_rule ()">cr_statement_new_at_charset_rule</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
136
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_charset</code></em>);
137
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-font-face-rule" title="cr_statement_new_at_font_face_rule ()">cr_statement_new_at_font_face_rule</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
138
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_font_decls</code></em>);
139
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-import-rule" title="cr_statement_new_at_import_rule ()">cr_statement_new_at_import_rule</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_container_sheet</code></em>,
140
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_url</code></em>,
141
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *a_media_list</code></em>,
142
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_imported_sheet</code></em>);
143
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-media-rule" title="cr_statement_new_at_media_rule ()">cr_statement_new_at_media_rule</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
144
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_ruleset</code></em>,
145
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *a_media</code></em>);
146
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-page-rule" title="cr_statement_new_at_page_rule ()">cr_statement_new_at_page_rule</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
147
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>,
148
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_name</code></em>,
149
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_pseudo</code></em>);
150
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-new-ruleset" title="cr_statement_new_ruleset ()">cr_statement_new_ruleset</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
151
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel_list</code></em>,
152
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>,
153
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_media_rule</code></em>);
154
- <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="libcroco-cr-statement.html#cr-statement-nr-rules" title="cr_statement_nr_rules ()">cr_statement_nr_rules</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>);
155
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-parse-from-buf" title="cr_statement_parse_from_buf ()">cr_statement_parse_from_buf</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
156
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);
157
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-prepend" title="cr_statement_prepend ()">cr_statement_prepend</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
158
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_new</code></em>);
159
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-append-decl" title="cr_statement_ruleset_append_decl ()">cr_statement_ruleset_append_decl</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
160
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl</code></em>);
161
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-append-decl2" title="cr_statement_ruleset_append_decl2 ()">cr_statement_ruleset_append_decl2</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
162
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
163
- <em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);
164
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-get-declarations" title="cr_statement_ruleset_get_declarations ()">cr_statement_ruleset_get_declarations</a>
165
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
166
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decl_list</code></em>);
167
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-get-sel-list" title="cr_statement_ruleset_get_sel_list ()">cr_statement_ruleset_get_sel_list</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
168
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> **a_list</code></em>);
169
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-parse-from-buf" title="cr_statement_ruleset_parse_from_buf ()">cr_statement_ruleset_parse_from_buf</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
170
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
171
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-set-decl-list" title="cr_statement_ruleset_set_decl_list ()">cr_statement_ruleset_set_decl_list</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
172
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_list</code></em>);
173
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-set-sel-list" title="cr_statement_ruleset_set_sel_list ()">cr_statement_ruleset_set_sel_list</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
174
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel_list</code></em>);
175
- enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-statement.html#cr-statement-set-parent-sheet" title="cr_statement_set_parent_sheet ()">cr_statement_set_parent_sheet</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
176
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>);
177
- <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-to-string" title="cr_statement_to_string ()">cr_statement_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
178
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);
179
- <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * <a class="link" href="libcroco-cr-statement.html#cr-statement-unlink" title="cr_statement_unlink ()">cr_statement_unlink</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_stmt</code></em>);
180
- </pre>
181
- </div>
182
- <div class="refsect1">
183
- <a name="libcroco-cr-statement.description"></a><h2>Description</h2>
184
- <p>
185
- </p>
186
- </div>
187
34
  <div class="refsect1">
188
- <a name="libcroco-cr-statement.details"></a><h2>Details</h2>
189
- <div class="refsect2">
190
- <a name="CRAtCharsetRule"></a><h3>struct CRAtCharsetRule</h3>
191
- <pre class="programlisting">struct CRAtCharsetRule {
192
- CRString * charset ;
193
- };
194
- </pre>
195
- <p>
196
- </p>
197
- </div>
198
- <hr>
199
- <div class="refsect2">
200
- <a name="CRAtFontFaceRule"></a><h3>struct CRAtFontFaceRule</h3>
201
- <pre class="programlisting">struct CRAtFontFaceRule {
202
- /*a list of instanaces of #CRDeclaration*/
203
- CRDeclaration *decl_list ;
204
- };
205
- </pre>
206
- <p>
207
- </p>
208
- </div>
209
- <hr>
210
- <div class="refsect2">
211
- <a name="CRAtImportRule"></a><h3>struct CRAtImportRule</h3>
212
- <pre class="programlisting">struct CRAtImportRule {
213
- /**the url of the import rule*/
214
- CRString *url ;
215
-
216
- GList *media_list ;
217
-
218
- /**
219
- *the stylesheet fetched from the url, if any.
220
- *this is not "owned" by #CRAtImportRule which means
221
- *it is not destroyed by the destructor of #CRAtImportRule.
222
- */
223
- CRStyleSheet * sheet;
224
- };
225
- </pre>
226
- <p>
227
- </p>
228
- </div>
229
- <hr>
230
- <div class="refsect2">
231
- <a name="CRAtMediaRule"></a><h3>struct CRAtMediaRule</h3>
232
- <pre class="programlisting">struct CRAtMediaRule {
233
- GList *media_list ;
234
- CRStatement *rulesets ;
235
- };
236
- </pre>
237
- <p>
238
- </p>
239
- </div>
240
- <hr>
241
- <div class="refsect2">
242
- <a name="CRAtPageRule"></a><h3>struct CRAtPageRule</h3>
243
- <pre class="programlisting">struct CRAtPageRule {
244
- /**a list of instances of #CRDeclaration*/
245
- CRDeclaration *decl_list ;
246
-
247
- /**page selector. Is a pseudo selector*/
248
- CRString *name ;
249
- CRString *pseudo ;
250
- };
251
- </pre>
252
- <p>
253
- </p>
254
- </div>
255
- <hr>
256
- <div class="refsect2">
257
- <a name="CRRuleSet"></a><h3>struct CRRuleSet</h3>
258
- <pre class="programlisting">struct CRRuleSet {
259
- /**A list of instances of #CRSimpeSel*/
260
- CRSelector *sel_list ;
261
-
262
- /**A list of instances of #CRDeclaration*/
263
- CRDeclaration *decl_list ;
264
-
265
- /**
266
- *The parent media rule, or NULL if
267
- *no parent media rule exists.
268
- */
269
- CRStatement *parent_media_rule ;
270
- };
271
- </pre>
272
- <p>
273
- </p>
274
- </div>
275
- <hr>
276
- <div class="refsect2">
277
- <a name="CRStatement"></a><h3>CRStatement</h3>
278
- <pre class="programlisting">typedef struct {
279
- /**
280
- *The type of the statement.
281
- */
282
- enum CRStatementType type ;
283
-
284
- union
285
- {
286
- CRRuleSet *ruleset ;
287
- CRAtImportRule *import_rule ;
288
- CRAtMediaRule *media_rule ;
289
- CRAtPageRule *page_rule ;
290
- CRAtCharsetRule *charset_rule ;
291
- CRAtFontFaceRule *font_face_rule ;
292
- } kind ;
293
-
294
- /*
295
- *the specificity of the selector
296
- *that matched this statement.
297
- *This is only used by the cascading
298
- *order determination algorithm.
299
- */
300
- gulong specificity ;
301
-
302
- /*
303
- *the style sheet that contains
304
- *this css statement.
305
- */
306
- CRStyleSheet *parent_sheet ;
307
- CRStatement *next ;
308
- CRStatement *prev ;
309
-
310
- CRParsingLocation location ;
311
-
312
- /**
313
- *a custom pointer useable by
314
- *applications that use libcroco.
315
- *libcroco itself will never modify
316
- *this pointer.
317
- */
318
- gpointer app_data ;
319
-
320
- /**
321
- *a custom pointer used
322
- *by the upper layers of libcroco.
323
- *application should never use this
324
- *pointer.
325
- */
326
- gpointer croco_data ;
327
- } CRStatement;
328
- </pre>
329
- <p>
330
- </p>
331
- </div>
332
- <hr>
333
- <div class="refsect2">
334
- <a name="CRStyleSheet"></a><h3>CRStyleSheet</h3>
335
- <pre class="programlisting">typedef struct {
336
- /**The css statements list*/
337
- CRStatement *statements ;
338
-
339
- enum CRStyleOrigin origin ;
340
-
341
- /*the parent import rule, if any.*/
342
- CRStatement *parent_import_rule ;
343
-
344
- /**custom data used by libcroco*/
345
- gpointer croco_data ;
346
-
347
- /**
348
- *custom application data pointer
349
- *Can be used by applications.
350
- */
351
- gpointer app_data ;
352
-
353
- /**
354
- *the reference count of this insance
355
- *Please, don't never ever modify it
356
- *directly. Use cr_stylesheet_ref()
357
- *and cr_stylesheet_unref() instead.
358
- */
359
- gulong ref_count ;
360
- } CRStyleSheet;
361
- </pre>
362
- <p>
363
- </p>
364
- </div>
365
- <hr>
366
- <div class="refsect2">
367
- <a name="cr-statement-append"></a><h3>cr_statement_append ()</h3>
368
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_append (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
369
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_new</code></em>);</pre>
370
- <p>
371
- <em class="parameter"><code>a_this</code></em>: the current instance of the statement list.
372
- <em class="parameter"><code>a_new</code></em>: a_new the new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> to append.
373
- </p>
374
- <p>
375
- Appends a new statement to the statement list.
376
- </p>
377
- <div class="variablelist"><table border="0">
378
- <col align="left" valign="top">
379
- <tbody><tr>
380
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
381
- <td>the new list statement list, or NULL in cas of failure.</td>
382
- </tr></tbody>
35
+ <a name="libcroco-cr-statement.functions"></a><h2>Functions</h2>
36
+ <div class="informaltable"><table width="100%" border="0">
37
+ <colgroup>
38
+ <col width="150px" class="functions_return">
39
+ <col class="functions_name">
40
+ </colgroup>
41
+ <tbody>
42
+ <tr>
43
+ <td class="function_type">
44
+ <span class="returnvalue">gboolean</span>
45
+ </td>
46
+ <td class="function_name">
47
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-does-buf-parses-against-core" title="cr_statement_does_buf_parses_against_core ()">cr_statement_does_buf_parses_against_core</a> <span class="c_punctuation">()</span>
48
+ </td>
49
+ </tr>
50
+ <tr>
51
+ <td class="function_type">
52
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
53
+ </td>
54
+ <td class="function_name">
55
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-parse-from-buf" title="cr_statement_parse_from_buf ()">cr_statement_parse_from_buf</a> <span class="c_punctuation">()</span>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td class="function_type">
60
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
61
+ </td>
62
+ <td class="function_name">
63
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-new-ruleset" title="cr_statement_new_ruleset ()">cr_statement_new_ruleset</a> <span class="c_punctuation">()</span>
64
+ </td>
65
+ </tr>
66
+ <tr>
67
+ <td class="function_type">
68
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
69
+ </td>
70
+ <td class="function_name">
71
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-parse-from-buf" title="cr_statement_ruleset_parse_from_buf ()">cr_statement_ruleset_parse_from_buf</a> <span class="c_punctuation">()</span>
72
+ </td>
73
+ </tr>
74
+ <tr>
75
+ <td class="function_type">
76
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
77
+ </td>
78
+ <td class="function_name">
79
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-import-rule" title="cr_statement_new_at_import_rule ()">cr_statement_new_at_import_rule</a> <span class="c_punctuation">()</span>
80
+ </td>
81
+ </tr>
82
+ <tr>
83
+ <td class="function_type">
84
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
85
+ </td>
86
+ <td class="function_name">
87
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-parse-from-buf" title="cr_statement_at_import_rule_parse_from_buf ()">cr_statement_at_import_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
88
+ </td>
89
+ </tr>
90
+ <tr>
91
+ <td class="function_type">
92
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
93
+ </td>
94
+ <td class="function_name">
95
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-media-rule" title="cr_statement_new_at_media_rule ()">cr_statement_new_at_media_rule</a> <span class="c_punctuation">()</span>
96
+ </td>
97
+ </tr>
98
+ <tr>
99
+ <td class="function_type">
100
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
101
+ </td>
102
+ <td class="function_name">
103
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-media-rule-parse-from-buf" title="cr_statement_at_media_rule_parse_from_buf ()">cr_statement_at_media_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
104
+ </td>
105
+ </tr>
106
+ <tr>
107
+ <td class="function_type">
108
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
109
+ </td>
110
+ <td class="function_name">
111
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-charset-rule" title="cr_statement_new_at_charset_rule ()">cr_statement_new_at_charset_rule</a> <span class="c_punctuation">()</span>
112
+ </td>
113
+ </tr>
114
+ <tr>
115
+ <td class="function_type">
116
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
117
+ </td>
118
+ <td class="function_name">
119
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-charset-rule-parse-from-buf" title="cr_statement_at_charset_rule_parse_from_buf ()">cr_statement_at_charset_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
120
+ </td>
121
+ </tr>
122
+ <tr>
123
+ <td class="function_type">
124
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
125
+ </td>
126
+ <td class="function_name">
127
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-font-face-rule" title="cr_statement_new_at_font_face_rule ()">cr_statement_new_at_font_face_rule</a> <span class="c_punctuation">()</span>
128
+ </td>
129
+ </tr>
130
+ <tr>
131
+ <td class="function_type">
132
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
133
+ </td>
134
+ <td class="function_name">
135
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-font-face-rule-parse-from-buf" title="cr_statement_font_face_rule_parse_from_buf ()">cr_statement_font_face_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <td class="function_type">
140
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
141
+ </td>
142
+ <td class="function_name">
143
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-new-at-page-rule" title="cr_statement_new_at_page_rule ()">cr_statement_new_at_page_rule</a> <span class="c_punctuation">()</span>
144
+ </td>
145
+ </tr>
146
+ <tr>
147
+ <td class="function_type">
148
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
149
+ </td>
150
+ <td class="function_name">
151
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-parse-from-buf" title="cr_statement_at_page_rule_parse_from_buf ()">cr_statement_at_page_rule_parse_from_buf</a> <span class="c_punctuation">()</span>
152
+ </td>
153
+ </tr>
154
+ <tr>
155
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
156
+ </td>
157
+ <td class="function_name">
158
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-set-parent-sheet" title="cr_statement_set_parent_sheet ()">cr_statement_set_parent_sheet</a> <span class="c_punctuation">()</span>
159
+ </td>
160
+ </tr>
161
+ <tr>
162
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
163
+ </td>
164
+ <td class="function_name">
165
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-get-parent-sheet" title="cr_statement_get_parent_sheet ()">cr_statement_get_parent_sheet</a> <span class="c_punctuation">()</span>
166
+ </td>
167
+ </tr>
168
+ <tr>
169
+ <td class="function_type">
170
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
171
+ </td>
172
+ <td class="function_name">
173
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-append" title="cr_statement_append ()">cr_statement_append</a> <span class="c_punctuation">()</span>
174
+ </td>
175
+ </tr>
176
+ <tr>
177
+ <td class="function_type">
178
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
179
+ </td>
180
+ <td class="function_name">
181
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-prepend" title="cr_statement_prepend ()">cr_statement_prepend</a> <span class="c_punctuation">()</span>
182
+ </td>
183
+ </tr>
184
+ <tr>
185
+ <td class="function_type">
186
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
187
+ </td>
188
+ <td class="function_name">
189
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-unlink" title="cr_statement_unlink ()">cr_statement_unlink</a> <span class="c_punctuation">()</span>
190
+ </td>
191
+ </tr>
192
+ <tr>
193
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
194
+ </td>
195
+ <td class="function_name">
196
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-set-sel-list" title="cr_statement_ruleset_set_sel_list ()">cr_statement_ruleset_set_sel_list</a> <span class="c_punctuation">()</span>
197
+ </td>
198
+ </tr>
199
+ <tr>
200
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
201
+ </td>
202
+ <td class="function_name">
203
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-get-sel-list" title="cr_statement_ruleset_get_sel_list ()">cr_statement_ruleset_get_sel_list</a> <span class="c_punctuation">()</span>
204
+ </td>
205
+ </tr>
206
+ <tr>
207
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
208
+ </td>
209
+ <td class="function_name">
210
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-set-decl-list" title="cr_statement_ruleset_set_decl_list ()">cr_statement_ruleset_set_decl_list</a> <span class="c_punctuation">()</span>
211
+ </td>
212
+ </tr>
213
+ <tr>
214
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
215
+ </td>
216
+ <td class="function_name">
217
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-get-declarations" title="cr_statement_ruleset_get_declarations ()">cr_statement_ruleset_get_declarations</a> <span class="c_punctuation">()</span>
218
+ </td>
219
+ </tr>
220
+ <tr>
221
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
222
+ </td>
223
+ <td class="function_name">
224
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-append-decl2" title="cr_statement_ruleset_append_decl2 ()">cr_statement_ruleset_append_decl2</a> <span class="c_punctuation">()</span>
225
+ </td>
226
+ </tr>
227
+ <tr>
228
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
229
+ </td>
230
+ <td class="function_name">
231
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-ruleset-append-decl" title="cr_statement_ruleset_append_decl ()">cr_statement_ruleset_append_decl</a> <span class="c_punctuation">()</span>
232
+ </td>
233
+ </tr>
234
+ <tr>
235
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
236
+ </td>
237
+ <td class="function_name">
238
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-set-imported-sheet" title="cr_statement_at_import_rule_set_imported_sheet ()">cr_statement_at_import_rule_set_imported_sheet</a> <span class="c_punctuation">()</span>
239
+ </td>
240
+ </tr>
241
+ <tr>
242
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
243
+ </td>
244
+ <td class="function_name">
245
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-get-imported-sheet" title="cr_statement_at_import_rule_get_imported_sheet ()">cr_statement_at_import_rule_get_imported_sheet</a> <span class="c_punctuation">()</span>
246
+ </td>
247
+ </tr>
248
+ <tr>
249
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
250
+ </td>
251
+ <td class="function_name">
252
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-set-url" title="cr_statement_at_import_rule_set_url ()">cr_statement_at_import_rule_set_url</a> <span class="c_punctuation">()</span>
253
+ </td>
254
+ </tr>
255
+ <tr>
256
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
257
+ </td>
258
+ <td class="function_name">
259
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-import-rule-get-url" title="cr_statement_at_import_rule_get_url ()">cr_statement_at_import_rule_get_url</a> <span class="c_punctuation">()</span>
260
+ </td>
261
+ </tr>
262
+ <tr>
263
+ <td class="function_type">
264
+ <span class="returnvalue">gint</span>
265
+ </td>
266
+ <td class="function_name">
267
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-media-nr-rules" title="cr_statement_at_media_nr_rules ()">cr_statement_at_media_nr_rules</a> <span class="c_punctuation">()</span>
268
+ </td>
269
+ </tr>
270
+ <tr>
271
+ <td class="function_type">
272
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
273
+ </td>
274
+ <td class="function_name">
275
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-media-get-from-list" title="cr_statement_at_media_get_from_list ()">cr_statement_at_media_get_from_list</a> <span class="c_punctuation">()</span>
276
+ </td>
277
+ </tr>
278
+ <tr>
279
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
280
+ </td>
281
+ <td class="function_name">
282
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-set-sel" title="cr_statement_at_page_rule_set_sel ()">cr_statement_at_page_rule_set_sel</a> <span class="c_punctuation">()</span>
283
+ </td>
284
+ </tr>
285
+ <tr>
286
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
287
+ </td>
288
+ <td class="function_name">
289
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-get-sel" title="cr_statement_at_page_rule_get_sel ()">cr_statement_at_page_rule_get_sel</a> <span class="c_punctuation">()</span>
290
+ </td>
291
+ </tr>
292
+ <tr>
293
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
294
+ </td>
295
+ <td class="function_name">
296
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-set-declarations" title="cr_statement_at_page_rule_set_declarations ()">cr_statement_at_page_rule_set_declarations</a> <span class="c_punctuation">()</span>
297
+ </td>
298
+ </tr>
299
+ <tr>
300
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
301
+ </td>
302
+ <td class="function_name">
303
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-page-rule-get-declarations" title="cr_statement_at_page_rule_get_declarations ()">cr_statement_at_page_rule_get_declarations</a> <span class="c_punctuation">()</span>
304
+ </td>
305
+ </tr>
306
+ <tr>
307
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
308
+ </td>
309
+ <td class="function_name">
310
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-charset-rule-set-charset" title="cr_statement_at_charset_rule_set_charset ()">cr_statement_at_charset_rule_set_charset</a> <span class="c_punctuation">()</span>
311
+ </td>
312
+ </tr>
313
+ <tr>
314
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
315
+ </td>
316
+ <td class="function_name">
317
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-charset-rule-get-charset" title="cr_statement_at_charset_rule_get_charset ()">cr_statement_at_charset_rule_get_charset</a> <span class="c_punctuation">()</span>
318
+ </td>
319
+ </tr>
320
+ <tr>
321
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
322
+ </td>
323
+ <td class="function_name">
324
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-font-face-rule-set-decls" title="cr_statement_at_font_face_rule_set_decls ()">cr_statement_at_font_face_rule_set_decls</a> <span class="c_punctuation">()</span>
325
+ </td>
326
+ </tr>
327
+ <tr>
328
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
329
+ </td>
330
+ <td class="function_name">
331
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-font-face-rule-get-decls" title="cr_statement_at_font_face_rule_get_decls ()">cr_statement_at_font_face_rule_get_decls</a> <span class="c_punctuation">()</span>
332
+ </td>
333
+ </tr>
334
+ <tr>
335
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
336
+ </td>
337
+ <td class="function_name">
338
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-at-font-face-rule-add-decl" title="cr_statement_at_font_face_rule_add_decl ()">cr_statement_at_font_face_rule_add_decl</a> <span class="c_punctuation">()</span>
339
+ </td>
340
+ </tr>
341
+ <tr>
342
+ <td class="function_type">
343
+ <span class="returnvalue">gchar</span> *
344
+ </td>
345
+ <td class="function_name">
346
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-to-string" title="cr_statement_to_string ()">cr_statement_to_string</a> <span class="c_punctuation">()</span>
347
+ </td>
348
+ </tr>
349
+ <tr>
350
+ <td class="function_type">
351
+ <span class="returnvalue">gchar</span> *
352
+ </td>
353
+ <td class="function_name">
354
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-list-to-string" title="cr_statement_list_to_string ()">cr_statement_list_to_string</a> <span class="c_punctuation">()</span>
355
+ </td>
356
+ </tr>
357
+ <tr>
358
+ <td class="function_type">
359
+ <span class="returnvalue">void</span>
360
+ </td>
361
+ <td class="function_name">
362
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-dump" title="cr_statement_dump ()">cr_statement_dump</a> <span class="c_punctuation">()</span>
363
+ </td>
364
+ </tr>
365
+ <tr>
366
+ <td class="function_type">
367
+ <span class="returnvalue">void</span>
368
+ </td>
369
+ <td class="function_name">
370
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-ruleset" title="cr_statement_dump_ruleset ()">cr_statement_dump_ruleset</a> <span class="c_punctuation">()</span>
371
+ </td>
372
+ </tr>
373
+ <tr>
374
+ <td class="function_type">
375
+ <span class="returnvalue">void</span>
376
+ </td>
377
+ <td class="function_name">
378
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-font-face-rule" title="cr_statement_dump_font_face_rule ()">cr_statement_dump_font_face_rule</a> <span class="c_punctuation">()</span>
379
+ </td>
380
+ </tr>
381
+ <tr>
382
+ <td class="function_type">
383
+ <span class="returnvalue">void</span>
384
+ </td>
385
+ <td class="function_name">
386
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-page" title="cr_statement_dump_page ()">cr_statement_dump_page</a> <span class="c_punctuation">()</span>
387
+ </td>
388
+ </tr>
389
+ <tr>
390
+ <td class="function_type">
391
+ <span class="returnvalue">void</span>
392
+ </td>
393
+ <td class="function_name">
394
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-media-rule" title="cr_statement_dump_media_rule ()">cr_statement_dump_media_rule</a> <span class="c_punctuation">()</span>
395
+ </td>
396
+ </tr>
397
+ <tr>
398
+ <td class="function_type">
399
+ <span class="returnvalue">void</span>
400
+ </td>
401
+ <td class="function_name">
402
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-import-rule" title="cr_statement_dump_import_rule ()">cr_statement_dump_import_rule</a> <span class="c_punctuation">()</span>
403
+ </td>
404
+ </tr>
405
+ <tr>
406
+ <td class="function_type">
407
+ <span class="returnvalue">void</span>
408
+ </td>
409
+ <td class="function_name">
410
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-dump-charset" title="cr_statement_dump_charset ()">cr_statement_dump_charset</a> <span class="c_punctuation">()</span>
411
+ </td>
412
+ </tr>
413
+ <tr>
414
+ <td class="function_type">
415
+ <span class="returnvalue">gint</span>
416
+ </td>
417
+ <td class="function_name">
418
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-nr-rules" title="cr_statement_nr_rules ()">cr_statement_nr_rules</a> <span class="c_punctuation">()</span>
419
+ </td>
420
+ </tr>
421
+ <tr>
422
+ <td class="function_type">
423
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
424
+ </td>
425
+ <td class="function_name">
426
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-get-from-list" title="cr_statement_get_from_list ()">cr_statement_get_from_list</a> <span class="c_punctuation">()</span>
427
+ </td>
428
+ </tr>
429
+ <tr>
430
+ <td class="function_type">
431
+ <span class="returnvalue">void</span>
432
+ </td>
433
+ <td class="function_name">
434
+ <a class="link" href="libcroco-cr-statement.html#cr-statement-destroy" title="cr_statement_destroy ()">cr_statement_destroy</a> <span class="c_punctuation">()</span>
435
+ </td>
436
+ </tr>
437
+ </tbody>
383
438
  </table></div>
384
439
  </div>
385
- <hr>
386
- <div class="refsect2">
387
- <a name="cr-statement-at-charset-rule-get-charset"></a><h3>cr_statement_at_charset_rule_get_charset ()</h3>
388
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_charset_rule_get_charset
389
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
390
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_charset</code></em>);</pre>
391
- <p>
392
- Gets the charset string associated to the current
393
- @charset rule statement.
394
- </p>
395
- <div class="variablelist"><table border="0">
396
- <col align="left" valign="top">
440
+ <div class="refsect1">
441
+ <a name="libcroco-cr-statement.other"></a><h2>Types and Values</h2>
442
+ <div class="informaltable"><table width="100%" border="0">
443
+ <colgroup>
444
+ <col width="150px" class="name">
445
+ <col class="description">
446
+ </colgroup>
397
447
  <tbody>
398
448
  <tr>
399
- <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
400
- <td>the current @charset rule statement.</td>
449
+ <td class="datatype_keyword">struct</td>
450
+ <td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRRuleSet" title="struct CRRuleSet">CRRuleSet</a></td>
451
+ </tr>
452
+ <tr>
453
+ <td class="datatype_keyword">struct</td>
454
+ <td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtImportRule" title="struct CRAtImportRule">CRAtImportRule</a></td>
455
+ </tr>
456
+ <tr>
457
+ <td class="datatype_keyword">struct</td>
458
+ <td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtMediaRule" title="struct CRAtMediaRule">CRAtMediaRule</a></td>
401
459
  </tr>
402
460
  <tr>
403
- <td><p><span class="term"><em class="parameter"><code>a_charset</code></em> :</span></p></td>
404
- <td>out parameter. The returned charset string if
405
- and only if the function returned CR_OK.</td>
461
+ <td class="datatype_keyword">struct</td>
462
+ <td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtPageRule" title="struct CRAtPageRule">CRAtPageRule</a></td>
406
463
  </tr>
407
464
  <tr>
408
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
409
- <td>CR_OK upon successful completion, an error code otherwise.</td>
465
+ <td class="datatype_keyword">struct</td>
466
+ <td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtCharsetRule" title="struct CRAtCharsetRule">CRAtCharsetRule</a></td>
467
+ </tr>
468
+ <tr>
469
+ <td class="datatype_keyword">struct</td>
470
+ <td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRAtFontFaceRule" title="struct CRAtFontFaceRule">CRAtFontFaceRule</a></td>
471
+ </tr>
472
+ <tr>
473
+ <td class="datatype_keyword"> </td>
474
+ <td class="function_name"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement">CRStatement</a></td>
475
+ </tr>
476
+ <tr>
477
+ <td class="datatype_keyword"> </td>
478
+ <td class="function_name"><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet">CRStyleSheet</a></td>
410
479
  </tr>
411
480
  </tbody>
412
481
  </table></div>
413
482
  </div>
483
+ <div class="refsect1">
484
+ <a name="libcroco-cr-statement.description"></a><h2>Description</h2>
485
+ </div>
486
+ <div class="refsect1">
487
+ <a name="libcroco-cr-statement.functions_details"></a><h2>Functions</h2>
488
+ <div class="refsect2">
489
+ <a name="cr-statement-does-buf-parses-against-core"></a><h3>cr_statement_does_buf_parses_against_core ()</h3>
490
+ <pre class="programlisting"><span class="returnvalue">gboolean</span>
491
+ cr_statement_does_buf_parses_against_core
492
+ (<em class="parameter"><code>const <span class="type">guchar</span> *a_buf</code></em>,
493
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
494
+ <p><em class="parameter"><code>a_buf</code></em>
495
+ : the buffer to parse.
496
+ <em class="parameter"><code>a_encoding</code></em>
497
+ : the character encoding of a_buf.</p>
498
+ <p>Tries to parse a buffer and says whether if the content of the buffer
499
+ is a css statement as defined by the "Core CSS Grammar" (chapter 4 of the
500
+ css spec) or not.</p>
501
+ <p>Returns TRUE if the buffer parses against the core grammar, false otherwise.</p>
502
+ </div>
414
503
  <hr>
415
504
  <div class="refsect2">
416
- <a name="cr-statement-at-charset-rule-parse-from-buf"></a><h3>cr_statement_at_charset_rule_parse_from_buf ()</h3>
417
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_at_charset_rule_parse_from_buf
418
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
419
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
420
- <p>
421
- <em class="parameter"><code>a_buf</code></em>: the buffer to parse.
422
- <em class="parameter"><code>a_encoding</code></em>: the character encoding of the buffer.
423
- </p>
424
- <p>
425
- Parses a buffer that contains an '@charset' rule and
426
- creates an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type AT_CHARSET_RULE_STMT.
427
- </p>
428
- <div class="variablelist"><table border="0">
429
- <col align="left" valign="top">
430
- <tbody><tr>
431
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
432
- <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</td>
433
- </tr></tbody>
434
- </table></div>
505
+ <a name="cr-statement-parse-from-buf"></a><h3>cr_statement_parse_from_buf ()</h3>
506
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
507
+ cr_statement_parse_from_buf (<em class="parameter"><code>const <span class="type">guchar</span> *a_buf</code></em>,
508
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
509
+ <p><em class="parameter"><code>a_buf</code></em>
510
+ : the buffer to parse.
511
+ <em class="parameter"><code>a_encoding</code></em>
512
+ : the character encoding of a_buf.</p>
513
+ <p>Parses a buffer that contains a css statement and returns
514
+ an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of successful parsing.
515
+ TODO: at support of "@import" rules.</p>
516
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case
517
+ of successful parsing, NULL otherwise.</p>
435
518
  </div>
436
519
  <hr>
437
520
  <div class="refsect2">
438
- <a name="cr-statement-at-charset-rule-set-charset"></a><h3>cr_statement_at_charset_rule_set_charset ()</h3>
439
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_charset_rule_set_charset
440
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
441
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_charset</code></em>);</pre>
442
- <p>
443
- <em class="parameter"><code>a_this</code></em>: the current @charset rule statement.
444
- <em class="parameter"><code>a_charset</code></em>: the charset to set.
445
- </p>
446
- <p>
447
- Sets the charset of the current @charset rule statement.
448
- </p>
449
- <div class="variablelist"><table border="0">
450
- <col align="left" valign="top">
451
- <tbody><tr>
452
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
453
- <td>CR_OK upon successful completion, an error code otherwise.</td>
454
- </tr></tbody>
455
- </table></div>
521
+ <a name="cr-statement-new-ruleset"></a><h3>cr_statement_new_ruleset ()</h3>
522
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
523
+ cr_statement_new_ruleset (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
524
+ <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel_list</code></em>,
525
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>,
526
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_media_rule</code></em>);</pre>
527
+ <p><em class="parameter"><code>a_sel_list</code></em>
528
+ : the list of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> (selectors)
529
+ the rule applies to.
530
+ <em class="parameter"><code>a_decl_list</code></em>
531
+ : the list of instances of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>
532
+ that composes the ruleset.
533
+ <em class="parameter"><code>a_media_types</code></em>
534
+ : a list of instances of GString that
535
+ describe the media list this ruleset applies to.</p>
536
+ <p>Creates a new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
537
+ <span class="type">CRRulSet</span>.</p>
538
+ <p>Returns the new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> or NULL if something
539
+ went wrong.</p>
456
540
  </div>
457
541
  <hr>
458
542
  <div class="refsect2">
459
- <a name="cr-statement-at-font-face-rule-add-decl"></a><h3>cr_statement_at_font_face_rule_add_decl ()</h3>
460
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_font_face_rule_add_decl
461
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
462
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
463
- <em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);</pre>
464
- <p>
465
- <em class="parameter"><code>a_this</code></em>: the current @font-face rule statement.
466
- <em class="parameter"><code>a_prop</code></em>: the property of the declaration.
467
- <em class="parameter"><code>a_value</code></em>: the value of the declaration.
468
- </p>
469
- <p>
470
- Adds a declaration to the current @font-face rule
471
- statement.
472
- </p>
473
- <div class="variablelist"><table border="0">
474
- <col align="left" valign="top">
475
- <tbody><tr>
476
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
477
- <td>CR_OK upon successful completion, an error code otherwise.</td>
478
- </tr></tbody>
479
- </table></div>
543
+ <a name="cr-statement-ruleset-parse-from-buf"></a><h3>cr_statement_ruleset_parse_from_buf ()</h3>
544
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
545
+ cr_statement_ruleset_parse_from_buf (<em class="parameter"><code>const <span class="type">guchar</span> *a_buf</code></em>,
546
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
547
+ <p><em class="parameter"><code>a_buf</code></em>
548
+ : the buffer to parse.
549
+ <em class="parameter"><code>a_enc</code></em>
550
+ : the character encoding of a_buf.</p>
551
+ <p>Parses a buffer that contains a ruleset statement an instanciates
552
+ a <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type RULESET_STMT.</p>
553
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of successful parsing,
554
+ NULL otherwise.</p>
480
555
  </div>
481
556
  <hr>
482
557
  <div class="refsect2">
483
- <a name="cr-statement-at-font-face-rule-get-decls"></a><h3>cr_statement_at_font_face_rule_get_decls ()</h3>
484
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_font_face_rule_get_decls
485
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
486
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decls</code></em>);</pre>
487
- <p>
488
- <em class="parameter"><code>a_this</code></em>: the current @font-face rule statement.
489
- <em class="parameter"><code>a_decls</code></em>: out parameter. The returned declaration list if
490
- and only if this function returns CR_OK.
491
- </p>
492
- <p>
493
- Gets the declaration list associated to the current instance
494
- of @font-face rule statement.
495
- </p>
496
- <div class="variablelist"><table border="0">
497
- <col align="left" valign="top">
498
- <tbody><tr>
499
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
500
- <td>CR_OK upon successful completion, an error code otherwise.</td>
501
- </tr></tbody>
502
- </table></div>
558
+ <a name="cr-statement-new-at-import-rule"></a><h3>cr_statement_new_at_import_rule ()</h3>
559
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
560
+ cr_statement_new_at_import_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_container_sheet</code></em>,
561
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_url</code></em>,
562
+ <em class="parameter"><code><span class="type">GList</span> *a_media_list</code></em>,
563
+ <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_imported_sheet</code></em>);</pre>
564
+ <p><em class="parameter"><code>a_url</code></em>
565
+ : the url to connect to the get the file
566
+ to be imported.
567
+ <em class="parameter"><code>a_sheet</code></em>
568
+ : the imported parsed stylesheet.</p>
569
+ <p>Creates a new instance of <span class="type">CRStatment</span> of type
570
+ <a class="link" href="libcroco-cr-statement.html#CRAtImportRule" title="struct CRAtImportRule"><span class="type">CRAtImportRule</span></a>.</p>
571
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
503
572
  </div>
504
573
  <hr>
505
574
  <div class="refsect2">
506
- <a name="cr-statement-at-font-face-rule-set-decls"></a><h3>cr_statement_at_font_face_rule_set_decls ()</h3>
507
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_font_face_rule_set_decls
508
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
509
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decls</code></em>);</pre>
510
- <p>
511
- <em class="parameter"><code>a_this</code></em>: the current @font-face rule statement.
512
- <em class="parameter"><code>a_decls</code></em>: the declarations list to set.
513
- </p>
514
- <p>
515
- Sets a declaration list to the current @font-face rule statement.
516
- </p>
517
- <div class="variablelist"><table border="0">
518
- <col align="left" valign="top">
519
- <tbody><tr>
520
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
521
- <td>CR_OK upon successful completion, an error code otherwise.</td>
522
- </tr></tbody>
523
- </table></div>
575
+ <a name="cr-statement-at-import-rule-parse-from-buf"></a><h3>cr_statement_at_import_rule_parse_from_buf ()</h3>
576
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
577
+ cr_statement_at_import_rule_parse_from_buf
578
+ (<em class="parameter"><code>const <span class="type">guchar</span> *a_buf</code></em>,
579
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
580
+ <p><em class="parameter"><code>a_buf</code></em>
581
+ : the buffer to parse.
582
+ <em class="parameter"><code>a_encoding</code></em>
583
+ : the encoding of a_buf.</p>
584
+ <p>Parses a buffer that contains an "@import" rule and
585
+ instanciate a <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type AT_IMPORT_RULE_STMT</p>
586
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of
587
+ a successful parsing, NULL otherwise.</p>
524
588
  </div>
525
589
  <hr>
526
590
  <div class="refsect2">
527
- <a name="cr-statement-at-import-rule-get-imported-sheet"></a><h3>cr_statement_at_import_rule_get_imported_sheet ()</h3>
528
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_import_rule_get_imported_sheet
529
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
530
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> **a_sheet</code></em>);</pre>
531
- <p>
532
- <em class="parameter"><code>a_this</code></em>: the current @import rule statement.
533
- <em class="parameter"><code>a_sheet</code></em>: out parameter. The returned stylesheet if and
534
- only if the function returns CR_OK.
535
- </p>
536
- <p>
537
- Gets the stylesheet contained by the @import rule statement.
538
- </p>
539
- <div class="variablelist"><table border="0">
540
- <col align="left" valign="top">
541
- <tbody><tr>
542
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
543
- <td>CR_OK upon sucessful completion, an error code otherwise.</td>
544
- </tr></tbody>
545
- </table></div>
591
+ <a name="cr-statement-new-at-media-rule"></a><h3>cr_statement_new_at_media_rule ()</h3>
592
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
593
+ cr_statement_new_at_media_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
594
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_ruleset</code></em>,
595
+ <em class="parameter"><code><span class="type">GList</span> *a_media</code></em>);</pre>
596
+ <p><em class="parameter"><code>a_ruleset</code></em>
597
+ : the ruleset statements contained
598
+ in the @media rule.
599
+ <em class="parameter"><code>a_media</code></em>
600
+ : the media string list. A list of GString pointers.</p>
601
+ <p>Instanciates an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
602
+ AT_MEDIA_RULE_STMT (@media ruleset).</p>
546
603
  </div>
547
604
  <hr>
548
605
  <div class="refsect2">
549
- <a name="cr-statement-at-import-rule-get-url"></a><h3>cr_statement_at_import_rule_get_url ()</h3>
550
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_import_rule_get_url (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
551
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_url</code></em>);</pre>
552
- <p>
553
- <em class="parameter"><code>a_this</code></em>: the current @import rule statement.
554
- <em class="parameter"><code>a_url</code></em>: out parameter. The returned url if
555
- and only if the function returned CR_OK.
556
- </p>
557
- <p>
558
- Gets the url of the @import rule statement.
559
- </p>
560
- <div class="variablelist"><table border="0">
561
- <col align="left" valign="top">
562
- <tbody><tr>
563
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
564
- <td>CR_OK upon successful completion, an error code otherwise.</td>
565
- </tr></tbody>
566
- </table></div>
606
+ <a name="cr-statement-at-media-rule-parse-from-buf"></a><h3>cr_statement_at_media_rule_parse_from_buf ()</h3>
607
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
608
+ cr_statement_at_media_rule_parse_from_buf
609
+ (<em class="parameter"><code>const <span class="type">guchar</span> *a_buf</code></em>,
610
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
611
+ <p><em class="parameter"><code>a_buf</code></em>
612
+ : the input to parse.
613
+ <em class="parameter"><code>a_enc</code></em>
614
+ : the encoding of the buffer.</p>
615
+ <p>Parses a buffer that contains an "@media" declaration
616
+ and builds an @media css statement.</p>
617
+ <p>Returns the @media statement, or NULL if the buffer could not
618
+ be successfully parsed.</p>
567
619
  </div>
568
620
  <hr>
569
621
  <div class="refsect2">
570
- <a name="cr-statement-at-import-rule-parse-from-buf"></a><h3>cr_statement_at_import_rule_parse_from_buf ()</h3>
571
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_at_import_rule_parse_from_buf
572
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
573
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
574
- <p>
575
- <em class="parameter"><code>a_buf</code></em>: the buffer to parse.
576
- <em class="parameter"><code>a_encoding</code></em>: the encoding of a_buf.
577
- </p>
578
- <p>
579
- Parses a buffer that contains an "@import" rule and
580
- instanciate a <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type AT_IMPORT_RULE_STMT
581
- </p>
582
- <div class="variablelist"><table border="0">
583
- <col align="left" valign="top">
584
- <tbody><tr>
585
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
586
- <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of
587
- a successful parsing, NULL otherwise.</td>
588
- </tr></tbody>
589
- </table></div>
622
+ <a name="cr-statement-new-at-charset-rule"></a><h3>cr_statement_new_at_charset_rule ()</h3>
623
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
624
+ cr_statement_new_at_charset_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
625
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_charset</code></em>);</pre>
626
+ <p><em class="parameter"><code>a_charset</code></em>
627
+ : the string representing the charset.
628
+ Note that the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> becomes
629
+ the owner of a_charset. The caller must not free a_charset !!!.</p>
630
+ <p>Creates a new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
631
+ <a class="link" href="libcroco-cr-statement.html#CRAtCharsetRule" title="struct CRAtCharsetRule"><span class="type">CRAtCharsetRule</span></a>.</p>
632
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> or NULL
633
+ if an error arises.</p>
590
634
  </div>
591
635
  <hr>
592
636
  <div class="refsect2">
593
- <a name="cr-statement-at-import-rule-set-imported-sheet"></a><h3>cr_statement_at_import_rule_set_imported_sheet ()</h3>
594
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_import_rule_set_imported_sheet
595
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
596
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>);</pre>
597
- <p>
598
- Sets a stylesheet to the current @import rule.
599
- <em class="parameter"><code>a_this</code></em>: the current @import rule.
600
- <em class="parameter"><code>a_sheet</code></em>: the stylesheet. The stylesheet is owned
601
- by the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>, that is, the
602
- stylesheet will be destroyed when the current instance
603
- of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> is destroyed.
604
- </p>
605
- <div class="variablelist"><table border="0">
606
- <col align="left" valign="top">
607
- <tbody><tr>
608
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
609
- <td>CR_OK upon successful completion, an error code otherwise.</td>
610
- </tr></tbody>
611
- </table></div>
637
+ <a name="cr-statement-at-charset-rule-parse-from-buf"></a><h3>cr_statement_at_charset_rule_parse_from_buf ()</h3>
638
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
639
+ cr_statement_at_charset_rule_parse_from_buf
640
+ (<em class="parameter"><code>const <span class="type">guchar</span> *a_buf</code></em>,
641
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
642
+ <p><em class="parameter"><code>a_buf</code></em>
643
+ : the buffer to parse.
644
+ <em class="parameter"><code>a_encoding</code></em>
645
+ : the character encoding of the buffer.</p>
646
+ <p>Parses a buffer that contains an '@charset' rule and
647
+ creates an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type AT_CHARSET_RULE_STMT.</p>
648
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
612
649
  </div>
613
650
  <hr>
614
651
  <div class="refsect2">
615
- <a name="cr-statement-at-import-rule-set-url"></a><h3>cr_statement_at_import_rule_set_url ()</h3>
616
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_import_rule_set_url (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
617
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_url</code></em>);</pre>
618
- <p>
619
- <em class="parameter"><code>a_this</code></em>: the current @import rule statement.
620
- <em class="parameter"><code>a_url</code></em>: the url to set.
621
- </p>
622
- <p>
623
- Sets an url to the current @import rule statement.
624
- </p>
625
- <div class="variablelist"><table border="0">
626
- <col align="left" valign="top">
627
- <tbody><tr>
628
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
629
- <td>CR_OK upon successful completion, an error code otherwise.</td>
630
- </tr></tbody>
631
- </table></div>
652
+ <a name="cr-statement-new-at-font-face-rule"></a><h3>cr_statement_new_at_font_face_rule ()</h3>
653
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
654
+ cr_statement_new_at_font_face_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
655
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_font_decls</code></em>);</pre>
656
+ <p><em class="parameter"><code>a_font_decls</code></em>
657
+ : a list of instances of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>. Each declaration
658
+ is actually a font declaration.</p>
659
+ <p>Creates an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type <a class="link" href="libcroco-cr-statement.html#CRAtFontFaceRule" title="struct CRAtFontFaceRule"><span class="type">CRAtFontFaceRule</span></a>.</p>
660
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
632
661
  </div>
633
662
  <hr>
634
663
  <div class="refsect2">
635
- <a name="cr-statement-at-media-get-from-list"></a><h3>cr_statement_at_media_get_from_list ()</h3>
636
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_at_media_get_from_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
637
- <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);</pre>
638
- <p>
639
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
640
- <em class="parameter"><code>itemnr</code></em>: the index into the media rule list of rules.
641
- </p>
642
- <p>
643
- Use an index to get a CRStatement from the media rule list of rules.
644
- </p>
645
- <div class="variablelist"><table border="0">
646
- <col align="left" valign="top">
647
- <tbody><tr>
648
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
649
- <td>CRStatement at position itemnr, if itemnr &gt; number of rules - 1,
650
- it will return NULL.</td>
651
- </tr></tbody>
652
- </table></div>
664
+ <a name="cr-statement-font-face-rule-parse-from-buf"></a><h3>cr_statement_font_face_rule_parse_from_buf ()</h3>
665
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
666
+ cr_statement_font_face_rule_parse_from_buf
667
+ (<em class="parameter"><code>const <span class="type">guchar</span> *a_buf</code></em>,
668
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
669
+ <p><em class="parameter"><code>a_buf</code></em>
670
+ : the buffer to parse.
671
+ <em class="parameter"><code>a_encoding</code></em>
672
+ : the character encoding of a_buf.</p>
673
+ <p>Parses a buffer that contains an "@font-face" rule and builds
674
+ an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type AT_FONT_FACE_RULE_STMT out of it.</p>
675
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of successufull
676
+ parsing, NULL otherwise.</p>
653
677
  </div>
654
678
  <hr>
655
679
  <div class="refsect2">
656
- <a name="cr-statement-at-media-nr-rules"></a><h3>cr_statement_at_media_nr_rules ()</h3>
657
- <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> cr_statement_at_media_nr_rules (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>);</pre>
658
- <p>
659
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
660
- </p>
661
- <div class="variablelist"><table border="0">
662
- <col align="left" valign="top">
663
- <tbody><tr>
664
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
665
- <td>the number of rules in the media rule;</td>
666
- </tr></tbody>
667
- </table></div>
680
+ <a name="cr-statement-new-at-page-rule"></a><h3>cr_statement_new_at_page_rule ()</h3>
681
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
682
+ cr_statement_new_at_page_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
683
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>,
684
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_name</code></em>,
685
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_pseudo</code></em>);</pre>
686
+ <p><em class="parameter"><code>a_decl_list</code></em>
687
+ : a list of instances of <a href="libcroco-cr-declaration.html#CRDeclaration"><span class="type">CRDeclarations</span></a>
688
+ which is actually the list of declarations that applies to
689
+ this page rule.
690
+ <em class="parameter"><code>a_selector</code></em>
691
+ : the page rule selector.</p>
692
+ <p>Creates a new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
693
+ <a class="link" href="libcroco-cr-statement.html#CRAtPageRule" title="struct CRAtPageRule"><span class="type">CRAtPageRule</span></a>.</p>
694
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> or NULL
695
+ in case of error.</p>
668
696
  </div>
669
697
  <hr>
670
698
  <div class="refsect2">
671
- <a name="cr-statement-at-media-rule-parse-from-buf"></a><h3>cr_statement_at_media_rule_parse_from_buf ()</h3>
672
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_at_media_rule_parse_from_buf
673
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
674
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
675
- <p>
676
- <em class="parameter"><code>a_buf</code></em>: the input to parse.
677
- <em class="parameter"><code>a_enc</code></em>: the encoding of the buffer.
678
- </p>
679
- <p>
680
- Parses a buffer that contains an "@media" declaration
681
- and builds an @media css statement.
682
- </p>
683
- <div class="variablelist"><table border="0">
684
- <col align="left" valign="top">
685
- <tbody><tr>
686
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
687
- <td>the @media statement, or NULL if the buffer could not
688
- be successfully parsed.</td>
689
- </tr></tbody>
690
- </table></div>
699
+ <a name="cr-statement-at-page-rule-parse-from-buf"></a><h3>cr_statement_at_page_rule_parse_from_buf ()</h3>
700
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
701
+ cr_statement_at_page_rule_parse_from_buf
702
+ (<em class="parameter"><code>const <span class="type">guchar</span> *a_buf</code></em>,
703
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
704
+ <p><em class="parameter"><code>a_buf</code></em>
705
+ : the character buffer to parse.
706
+ <em class="parameter"><code>a_encoding</code></em>
707
+ : the character encoding of a_buf.</p>
708
+ <p>Parses a buffer that contains an "@page" production and,
709
+ if the parsing succeeds, builds the page statement.</p>
710
+ <p>Returns the newly built at page statement in case of successful parsing,
711
+ NULL otherwise.</p>
691
712
  </div>
692
713
  <hr>
693
714
  <div class="refsect2">
694
- <a name="cr-statement-at-page-rule-get-declarations"></a><h3>cr_statement_at_page_rule_get_declarations ()</h3>
695
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_page_rule_get_declarations
696
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
697
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decl_list</code></em>);</pre>
698
- <p>
699
- <em class="parameter"><code>a_this</code></em>: the current @page rule statement.
700
- <em class="parameter"><code>a_decl_list</code></em>: out parameter. The returned declaration list.
701
- </p>
702
- <p>
703
- Gets the declaration list associated to the current @page rule
704
- statement.
705
- </p>
706
- <div class="variablelist"><table border="0">
707
- <col align="left" valign="top">
708
- <tbody><tr>
709
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
710
- <td>CR_OK upon successful completion, an error code otherwise.</td>
711
- </tr></tbody>
712
- </table></div>
715
+ <a name="cr-statement-set-parent-sheet"></a><h3>cr_statement_set_parent_sheet ()</h3>
716
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
717
+ cr_statement_set_parent_sheet (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
718
+ <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>);</pre>
719
+ <p><em class="parameter"><code>a_this</code></em>
720
+ : the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
721
+ <em class="parameter"><code>a_sheet</code></em>
722
+ : the sheet that contains the current statement.</p>
723
+ <p>Sets the container stylesheet.</p>
724
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
713
725
  </div>
714
726
  <hr>
715
727
  <div class="refsect2">
716
- <a name="cr-statement-at-page-rule-get-sel"></a><h3>cr_statement_at_page_rule_get_sel ()</h3>
717
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_page_rule_get_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
718
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> **a_sel</code></em>);</pre>
719
- <p>
720
- </p>
728
+ <a name="cr-statement-get-parent-sheet"></a><h3>cr_statement_get_parent_sheet ()</h3>
729
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
730
+ cr_statement_get_parent_sheet (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
731
+ <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> **a_sheet</code></em>);</pre>
732
+ <p><em class="parameter"><code>a_this</code></em>
733
+ : the current <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
734
+ <em class="parameter"><code>a_sheet</code></em>
735
+ : out parameter. A pointer to the sheets that</p>
736
+ <p>Gets the sheets that contains the current statement.</p>
737
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
721
738
  </div>
722
739
  <hr>
723
740
  <div class="refsect2">
724
- <a name="cr-statement-at-page-rule-parse-from-buf"></a><h3>cr_statement_at_page_rule_parse_from_buf ()</h3>
725
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_at_page_rule_parse_from_buf
726
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
727
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
728
- <p>
729
- <em class="parameter"><code>a_buf</code></em>: the character buffer to parse.
730
- <em class="parameter"><code>a_encoding</code></em>: the character encoding of a_buf.
731
- </p>
732
- <p>
733
- Parses a buffer that contains an "@page" production and,
734
- if the parsing succeeds, builds the page statement.
735
- </p>
736
- <div class="variablelist"><table border="0">
737
- <col align="left" valign="top">
738
- <tbody><tr>
739
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
740
- <td>the newly built at page statement in case of successful parsing,
741
- NULL otherwise.</td>
742
- </tr></tbody>
743
- </table></div>
741
+ <a name="cr-statement-append"></a><h3>cr_statement_append ()</h3>
742
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
743
+ cr_statement_append (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
744
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_new</code></em>);</pre>
745
+ <p><em class="parameter"><code>a_this</code></em>
746
+ : the current instance of the statement list.
747
+ <em class="parameter"><code>a_new</code></em>
748
+ : a_new the new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> to append.</p>
749
+ <p>Appends a new statement to the statement list.</p>
750
+ <p>Returns the new list statement list, or NULL in cas of failure.</p>
744
751
  </div>
745
752
  <hr>
746
753
  <div class="refsect2">
747
- <a name="cr-statement-at-page-rule-set-declarations"></a><h3>cr_statement_at_page_rule_set_declarations ()</h3>
748
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_page_rule_set_declarations
749
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
750
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>);</pre>
751
- <p>
752
- <em class="parameter"><code>a_this</code></em>: the current @page rule statement.
753
- <em class="parameter"><code>a_decl_list</code></em>: the declaration list to add. Will be freed
754
- by the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> when it is destroyed.
755
- </p>
756
- <p>
757
- Sets a declaration list to the current @page rule statement.
758
- </p>
759
- <div class="variablelist"><table border="0">
760
- <col align="left" valign="top">
761
- <tbody><tr>
762
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
763
- <td>CR_OK upon successful completion, an error code otherwise.</td>
764
- </tr></tbody>
765
- </table></div>
754
+ <a name="cr-statement-prepend"></a><h3>cr_statement_prepend ()</h3>
755
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
756
+ cr_statement_prepend (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
757
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_new</code></em>);</pre>
758
+ <p><em class="parameter"><code>a_this</code></em>
759
+ : the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
760
+ <em class="parameter"><code>a_new</code></em>
761
+ : the new statement to prepend.</p>
762
+ <p>Prepends the an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> to
763
+ the current statement list.</p>
764
+ <p>Returns the new list with the new statement prepended,
765
+ or NULL in case of an error.</p>
766
766
  </div>
767
767
  <hr>
768
768
  <div class="refsect2">
769
- <a name="cr-statement-at-page-rule-set-sel"></a><h3>cr_statement_at_page_rule_set_sel ()</h3>
770
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_at_page_rule_set_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
771
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel</code></em>);</pre>
772
- <p>
773
- </p>
769
+ <a name="cr-statement-unlink"></a><h3>cr_statement_unlink ()</h3>
770
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
771
+ cr_statement_unlink (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_stmt</code></em>);</pre>
772
+ <p><em class="parameter"><code>a_this</code></em>
773
+ : the current statements list.
774
+ <em class="parameter"><code>a_to_unlink</code></em>
775
+ : the statement to unlink from the list.</p>
776
+ <p>Unlinks a statement from the statements list.</p>
777
+ <p>Returns the new list where a_to_unlink has been unlinked
778
+ from, or NULL in case of error.</p>
774
779
  </div>
775
780
  <hr>
776
781
  <div class="refsect2">
777
- <a name="cr-statement-destroy"></a><h3>cr_statement_destroy ()</h3>
778
- <pre class="programlisting"><span class="returnvalue">void</span> cr_statement_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>);</pre>
779
- <p>
780
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
781
- </p>
782
- <p>
783
- Destructor of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
784
- </p>
782
+ <a name="cr-statement-ruleset-set-sel-list"></a><h3>cr_statement_ruleset_set_sel_list ()</h3>
783
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
784
+ cr_statement_ruleset_set_sel_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
785
+ <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel_list</code></em>);</pre>
786
+ <p><em class="parameter"><code>a_this</code></em>
787
+ : the current ruleset statement.
788
+ <em class="parameter"><code>a_sel_list</code></em>
789
+ : the selector list to set. Note
790
+ that this function increments the ref count of a_sel_list.
791
+ The sel list will be destroyed at the destruction of the
792
+ current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
793
+ <p>Sets a selector list to a ruleset statement.</p>
794
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
785
795
  </div>
786
796
  <hr>
787
797
  <div class="refsect2">
788
- <a name="cr-statement-does-buf-parses-against-core"></a><h3>cr_statement_does_buf_parses_against_core ()</h3>
789
- <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cr_statement_does_buf_parses_against_core
790
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
791
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
792
- <p>
793
- <em class="parameter"><code>a_buf</code></em>: the buffer to parse.
794
- <em class="parameter"><code>a_encoding</code></em>: the character encoding of a_buf.
795
- </p>
796
- <p>
797
- Tries to parse a buffer and says whether if the content of the buffer
798
- is a css statement as defined by the "Core CSS Grammar" (chapter 4 of the
799
- css spec) or not.
800
- </p>
801
- <div class="variablelist"><table border="0">
802
- <col align="left" valign="top">
803
- <tbody><tr>
804
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
805
- <td>TRUE if the buffer parses against the core grammar, false otherwise.</td>
806
- </tr></tbody>
807
- </table></div>
798
+ <a name="cr-statement-ruleset-get-sel-list"></a><h3>cr_statement_ruleset_get_sel_list ()</h3>
799
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
800
+ cr_statement_ruleset_get_sel_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
801
+ <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> **a_list</code></em>);</pre>
802
+ <p><em class="parameter"><code>a_this</code></em>
803
+ : the current ruleset statement.
804
+ <em class="parameter"><code>a_list</code></em>
805
+ : out parameter. The returned selector list,
806
+ if and only if the function returned CR_OK.</p>
807
+ <p>Gets a pointer to the selector list contained in
808
+ the current ruleset statement.</p>
809
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
808
810
  </div>
809
811
  <hr>
810
812
  <div class="refsect2">
811
- <a name="cr-statement-dump"></a><h3>cr_statement_dump ()</h3>
812
- <pre class="programlisting"><span class="returnvalue">void</span> cr_statement_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
813
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
814
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
815
- <p>
816
- <em class="parameter"><code>a_this</code></em>: the current css2 statement.
817
- <em class="parameter"><code>a_fp</code></em>: the destination file pointer.
818
- <em class="parameter"><code>a_indent</code></em>: the number of white space indentation characters.
819
- </p>
820
- <p>
821
- Dumps the css2 statement to a file.
822
- </p>
813
+ <a name="cr-statement-ruleset-set-decl-list"></a><h3>cr_statement_ruleset_set_decl_list ()</h3>
814
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
815
+ cr_statement_ruleset_set_decl_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
816
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_list</code></em>);</pre>
817
+ <p><em class="parameter"><code>a_this</code></em>
818
+ : the current ruleset statement.
819
+ <em class="parameter"><code>a_list</code></em>
820
+ : the declaration list to be added to the current
821
+ ruleset statement.</p>
822
+ <p>Sets a declaration list to the current ruleset statement.</p>
823
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
823
824
  </div>
824
825
  <hr>
825
826
  <div class="refsect2">
826
- <a name="cr-statement-dump-charset"></a><h3>cr_statement_dump_charset ()</h3>
827
- <pre class="programlisting"><span class="returnvalue">void</span> cr_statement_dump_charset (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
828
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
829
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
830
- <p>
831
- <em class="parameter"><code>a_this</code></em>: the current instance of the @charset rule statement.
832
- <em class="parameter"><code>a_fp</code></em>: the destination file pointer.
833
- <em class="parameter"><code>a_indent</code></em>: the number of indentation white spaces.
834
- </p>
835
- <p>
836
- Dumps an @charset rule statement to a file.
837
- </p>
827
+ <a name="cr-statement-ruleset-get-declarations"></a><h3>cr_statement_ruleset_get_declarations ()</h3>
828
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
829
+ cr_statement_ruleset_get_declarations (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
830
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decl_list</code></em>);</pre>
831
+ <p><em class="parameter"><code>a_this</code></em>
832
+ : the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
833
+ <em class="parameter"><code>a_decl_list</code></em>
834
+ : out parameter. A pointer to the the returned
835
+ list of declaration. Must not be NULL.</p>
836
+ <p>Gets a pointer to the list of declaration contained
837
+ in the ruleset statement.</p>
838
+ <p>Returns CR_OK upon successful completion, an error code if something
839
+ bad happened.</p>
838
840
  </div>
839
841
  <hr>
840
842
  <div class="refsect2">
841
- <a name="cr-statement-dump-font-face-rule"></a><h3>cr_statement_dump_font_face_rule ()</h3>
842
- <pre class="programlisting"><span class="returnvalue">void</span> cr_statement_dump_font_face_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
843
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
844
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_indent</code></em>);</pre>
845
- <p>
846
- <em class="parameter"><code>a_this</code></em>: the current instance of font face rule statement.
847
- <em class="parameter"><code>a_fp</code></em>: the destination file pointer.
848
- <em class="parameter"><code>a_indent</code></em>: the number of white space indentation.
849
- </p>
850
- <p>
851
- Dumps a font face rule statement to a file.
852
- </p>
843
+ <a name="cr-statement-ruleset-append-decl2"></a><h3>cr_statement_ruleset_append_decl2 ()</h3>
844
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
845
+ cr_statement_ruleset_append_decl2 (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
846
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
847
+ <em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);</pre>
848
+ <p><em class="parameter"><code>a_this</code></em>
849
+ : the current statement.
850
+ <em class="parameter"><code>a_prop</code></em>
851
+ : the property of the declaration.
852
+ <em class="parameter"><code>a_value</code></em>
853
+ : the value of the declaration.</p>
854
+ <p>Appends a declaration to the current ruleset statement.</p>
855
+ <p>Returns CR_OK upon successful completion, an error code
856
+ otherwise.</p>
853
857
  </div>
854
858
  <hr>
855
859
  <div class="refsect2">
856
- <a name="cr-statement-dump-import-rule"></a><h3>cr_statement_dump_import_rule ()</h3>
857
- <pre class="programlisting"><span class="returnvalue">void</span> cr_statement_dump_import_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
858
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
859
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
860
- <p>
861
- <em class="parameter"><code>a_fp</code></em>: the destination file pointer.
862
- <em class="parameter"><code>a_indent</code></em>: the number of white space indentations.
863
- </p>
864
- <p>
865
- Dumps an @import rule statement to a file.
866
- </p>
860
+ <a name="cr-statement-ruleset-append-decl"></a><h3>cr_statement_ruleset_append_decl ()</h3>
861
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
862
+ cr_statement_ruleset_append_decl (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
863
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl</code></em>);</pre>
864
+ <p>Appends a declaration to the current statement.</p>
865
+ <p><em class="parameter"><code>a_this</code></em>
866
+ : the current statement.
867
+ <em class="parameter"><code>a_declaration</code></em>
868
+ : the declaration to append.</p>
869
+ <p>Returns CR_OK upon sucessful completion, an error code
870
+ otherwise.</p>
867
871
  </div>
868
872
  <hr>
869
873
  <div class="refsect2">
870
- <a name="cr-statement-dump-media-rule"></a><h3>cr_statement_dump_media_rule ()</h3>
871
- <pre class="programlisting"><span class="returnvalue">void</span> cr_statement_dump_media_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
872
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
873
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
874
- <p>
875
- <em class="parameter"><code>a_this</code></em>: the statement to dump.
876
- <em class="parameter"><code>a_fp</code></em>: the destination file pointer
877
- <em class="parameter"><code>a_indent</code></em>: the number of white spaces indentation.
878
- </p>
879
- <p>
880
- Dumps an @media rule statement to a file.
881
- </p>
874
+ <a name="cr-statement-at-import-rule-set-imported-sheet"></a><h3>cr_statement_at_import_rule_set_imported_sheet ()</h3>
875
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
876
+ cr_statement_at_import_rule_set_imported_sheet
877
+ (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
878
+ <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>);</pre>
879
+ <p>Sets a stylesheet to the current @import rule.
880
+ <em class="parameter"><code>a_this</code></em>
881
+ : the current @import rule.
882
+ <em class="parameter"><code>a_sheet</code></em>
883
+ : the stylesheet. The stylesheet is owned
884
+ by the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>, that is, the
885
+ stylesheet will be destroyed when the current instance
886
+ of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> is destroyed.</p>
887
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
882
888
  </div>
883
889
  <hr>
884
890
  <div class="refsect2">
885
- <a name="cr-statement-dump-page"></a><h3>cr_statement_dump_page ()</h3>
886
- <pre class="programlisting"><span class="returnvalue">void</span> cr_statement_dump_page (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
887
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
888
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
889
- <p>
890
- <em class="parameter"><code>a_this</code></em>: the statement to dump on stdout.
891
- <em class="parameter"><code>a_fp</code></em>: the destination file pointer.
892
- <em class="parameter"><code>a_indent</code></em>: the number of indentation white spaces.
893
- </p>
894
- <p>
895
- Dumps an @page rule statement on stdout.
896
- </p>
891
+ <a name="cr-statement-at-import-rule-get-imported-sheet"></a><h3>cr_statement_at_import_rule_get_imported_sheet ()</h3>
892
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
893
+ cr_statement_at_import_rule_get_imported_sheet
894
+ (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
895
+ <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> **a_sheet</code></em>);</pre>
896
+ <p><em class="parameter"><code>a_this</code></em>
897
+ : the current @import rule statement.
898
+ <em class="parameter"><code>a_sheet</code></em>
899
+ : out parameter. The returned stylesheet if and
900
+ only if the function returns CR_OK.</p>
901
+ <p>Gets the stylesheet contained by the @import rule statement.
902
+ Returns CR_OK upon sucessful completion, an error code otherwise.</p>
897
903
  </div>
898
904
  <hr>
899
905
  <div class="refsect2">
900
- <a name="cr-statement-dump-ruleset"></a><h3>cr_statement_dump_ruleset ()</h3>
901
- <pre class="programlisting"><span class="returnvalue">void</span> cr_statement_dump_ruleset (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
902
- <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
903
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_indent</code></em>);</pre>
904
- <p>
905
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
906
- <em class="parameter"><code>a_fp</code></em>: the destination file pointer.
907
- <em class="parameter"><code>a_indent</code></em>: the number of indentation white spaces to add.
908
- </p>
909
- <p>
910
- Dumps a ruleset statement to a file.
911
- </p>
906
+ <a name="cr-statement-at-import-rule-set-url"></a><h3>cr_statement_at_import_rule_set_url ()</h3>
907
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
908
+ cr_statement_at_import_rule_set_url (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
909
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_url</code></em>);</pre>
910
+ <p><em class="parameter"><code>a_this</code></em>
911
+ : the current @import rule statement.
912
+ <em class="parameter"><code>a_url</code></em>
913
+ : the url to set.</p>
914
+ <p>Sets an url to the current @import rule statement.</p>
915
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
912
916
  </div>
913
917
  <hr>
914
918
  <div class="refsect2">
915
- <a name="cr-statement-font-face-rule-parse-from-buf"></a><h3>cr_statement_font_face_rule_parse_from_buf ()</h3>
916
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_font_face_rule_parse_from_buf
917
- (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
918
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
919
- <p>
920
- <em class="parameter"><code>a_buf</code></em>: the buffer to parse.
921
- <em class="parameter"><code>a_encoding</code></em>: the character encoding of a_buf.
922
- </p>
923
- <p>
924
- Parses a buffer that contains an "@font-face" rule and builds
925
- an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type AT_FONT_FACE_RULE_STMT out of it.
926
- </p>
927
- <div class="variablelist"><table border="0">
928
- <col align="left" valign="top">
929
- <tbody><tr>
930
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
931
- <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of successufull
932
- parsing, NULL otherwise.</td>
933
- </tr></tbody>
934
- </table></div>
919
+ <a name="cr-statement-at-import-rule-get-url"></a><h3>cr_statement_at_import_rule_get_url ()</h3>
920
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
921
+ cr_statement_at_import_rule_get_url (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
922
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_url</code></em>);</pre>
923
+ <p><em class="parameter"><code>a_this</code></em>
924
+ : the current @import rule statement.
925
+ <em class="parameter"><code>a_url</code></em>
926
+ : out parameter. The returned url if
927
+ and only if the function returned CR_OK.</p>
928
+ <p>Gets the url of the @import rule statement.
929
+ Returns CR_OK upon successful completion, an error code otherwise.</p>
935
930
  </div>
936
931
  <hr>
937
932
  <div class="refsect2">
938
- <a name="cr-statement-get-from-list"></a><h3>cr_statement_get_from_list ()</h3>
939
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_get_from_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
940
- <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);</pre>
941
- <p>
942
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
943
- <em class="parameter"><code>itemnr</code></em>: the index into the statement list.
944
- </p>
945
- <p>
946
- Use an index to get a CRStatement from the statement list.
947
- </p>
948
- <div class="variablelist"><table border="0">
949
- <col align="left" valign="top">
950
- <tbody><tr>
951
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
952
- <td>CRStatement at position itemnr, if itemnr &gt; number of statements - 1,
953
- it will return NULL.</td>
954
- </tr></tbody>
955
- </table></div>
933
+ <a name="cr-statement-at-media-nr-rules"></a><h3>cr_statement_at_media_nr_rules ()</h3>
934
+ <pre class="programlisting"><span class="returnvalue">gint</span>
935
+ cr_statement_at_media_nr_rules (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>);</pre>
936
+ <p><em class="parameter"><code>a_this</code></em>
937
+ : the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
938
+ <p>Returns the number of rules in the media rule;</p>
956
939
  </div>
957
940
  <hr>
958
941
  <div class="refsect2">
959
- <a name="cr-statement-get-parent-sheet"></a><h3>cr_statement_get_parent_sheet ()</h3>
960
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_get_parent_sheet (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
961
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> **a_sheet</code></em>);</pre>
962
- <p>
963
- <em class="parameter"><code>a_this</code></em>: the current <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
964
- <em class="parameter"><code>a_sheet</code></em>: out parameter. A pointer to the sheets that
965
- </p>
966
- <p>
967
- Gets the sheets that contains the current statement.
968
- </p>
969
- <div class="variablelist"><table border="0">
970
- <col align="left" valign="top">
971
- <tbody><tr>
972
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
973
- <td>CR_OK upon successful completion, an error code otherwise.</td>
974
- </tr></tbody>
975
- </table></div>
942
+ <a name="cr-statement-at-media-get-from-list"></a><h3>cr_statement_at_media_get_from_list ()</h3>
943
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
944
+ cr_statement_at_media_get_from_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
945
+ <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);</pre>
946
+ <p><em class="parameter"><code>a_this</code></em>
947
+ : the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
948
+ <em class="parameter"><code>itemnr</code></em>
949
+ : the index into the media rule list of rules.</p>
950
+ <p>Use an index to get a CRStatement from the media rule list of rules.</p>
951
+ <p>Returns CRStatement at position itemnr, if itemnr &gt; number of rules - 1,
952
+ it will return NULL.</p>
976
953
  </div>
977
954
  <hr>
978
955
  <div class="refsect2">
979
- <a name="cr-statement-list-to-string"></a><h3>cr_statement_list_to_string ()</h3>
980
- <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cr_statement_list_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
981
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
982
- <p>
983
- </p>
956
+ <a name="cr-statement-at-page-rule-set-sel"></a><h3>cr_statement_at_page_rule_set_sel ()</h3>
957
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
958
+ cr_statement_at_page_rule_set_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
959
+ <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel</code></em>);</pre>
984
960
  </div>
985
961
  <hr>
986
962
  <div class="refsect2">
987
- <a name="cr-statement-new-at-charset-rule"></a><h3>cr_statement_new_at_charset_rule ()</h3>
988
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_new_at_charset_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
989
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_charset</code></em>);</pre>
990
- <p>
991
- <em class="parameter"><code>a_charset</code></em>: the string representing the charset.
992
- Note that the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> becomes
993
- the owner of a_charset. The caller must not free a_charset !!!.
994
- </p>
995
- <p>
996
- Creates a new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
997
- <a class="link" href="libcroco-cr-statement.html#CRAtCharsetRule" title="struct CRAtCharsetRule"><span class="type">CRAtCharsetRule</span></a>.
998
- </p>
999
- <div class="variablelist"><table border="0">
1000
- <col align="left" valign="top">
1001
- <tbody><tr>
1002
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1003
- <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> or NULL
1004
- if an error arises.</td>
1005
- </tr></tbody>
1006
- </table></div>
963
+ <a name="cr-statement-at-page-rule-get-sel"></a><h3>cr_statement_at_page_rule_get_sel ()</h3>
964
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
965
+ cr_statement_at_page_rule_get_sel (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
966
+ <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> **a_sel</code></em>);</pre>
1007
967
  </div>
1008
968
  <hr>
1009
969
  <div class="refsect2">
1010
- <a name="cr-statement-new-at-font-face-rule"></a><h3>cr_statement_new_at_font_face_rule ()</h3>
1011
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_new_at_font_face_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
1012
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_font_decls</code></em>);</pre>
1013
- <p>
1014
- <em class="parameter"><code>a_font_decls</code></em>: a list of instances of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>. Each declaration
1015
- is actually a font declaration.
1016
- </p>
1017
- <p>
1018
- Creates an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type <a class="link" href="libcroco-cr-statement.html#CRAtFontFaceRule" title="struct CRAtFontFaceRule"><span class="type">CRAtFontFaceRule</span></a>.
1019
- </p>
1020
- <div class="variablelist"><table border="0">
1021
- <col align="left" valign="top">
1022
- <tbody><tr>
1023
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1024
- <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</td>
1025
- </tr></tbody>
1026
- </table></div>
970
+ <a name="cr-statement-at-page-rule-set-declarations"></a><h3>cr_statement_at_page_rule_set_declarations ()</h3>
971
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
972
+ cr_statement_at_page_rule_set_declarations
973
+ (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
974
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>);</pre>
975
+ <p><em class="parameter"><code>a_this</code></em>
976
+ : the current @page rule statement.
977
+ <em class="parameter"><code>a_decl_list</code></em>
978
+ : the declaration list to add. Will be freed
979
+ by the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> when it is destroyed.</p>
980
+ <p>Sets a declaration list to the current @page rule statement.</p>
981
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1027
982
  </div>
1028
983
  <hr>
1029
984
  <div class="refsect2">
1030
- <a name="cr-statement-new-at-import-rule"></a><h3>cr_statement_new_at_import_rule ()</h3>
1031
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_new_at_import_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_container_sheet</code></em>,
1032
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_url</code></em>,
1033
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *a_media_list</code></em>,
1034
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_imported_sheet</code></em>);</pre>
1035
- <p>
1036
- <em class="parameter"><code>a_url</code></em>: the url to connect to the get the file
1037
- to be imported.
1038
- <em class="parameter"><code>a_sheet</code></em>: the imported parsed stylesheet.
1039
- </p>
1040
- <p>
1041
- Creates a new instance of <span class="type">CRStatment</span> of type
1042
- <a class="link" href="libcroco-cr-statement.html#CRAtImportRule" title="struct CRAtImportRule"><span class="type">CRAtImportRule</span></a>.
1043
- </p>
1044
- <div class="variablelist"><table border="0">
1045
- <col align="left" valign="top">
1046
- <tbody><tr>
1047
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1048
- <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</td>
1049
- </tr></tbody>
1050
- </table></div>
985
+ <a name="cr-statement-at-page-rule-get-declarations"></a><h3>cr_statement_at_page_rule_get_declarations ()</h3>
986
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
987
+ cr_statement_at_page_rule_get_declarations
988
+ (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
989
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decl_list</code></em>);</pre>
990
+ <p><em class="parameter"><code>a_this</code></em>
991
+ : the current @page rule statement.
992
+ <em class="parameter"><code>a_decl_list</code></em>
993
+ : out parameter. The returned declaration list.</p>
994
+ <p>Gets the declaration list associated to the current @page rule
995
+ statement.</p>
996
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1051
997
  </div>
1052
998
  <hr>
1053
999
  <div class="refsect2">
1054
- <a name="cr-statement-new-at-media-rule"></a><h3>cr_statement_new_at_media_rule ()</h3>
1055
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_new_at_media_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
1056
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_ruleset</code></em>,
1057
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *a_media</code></em>);</pre>
1058
- <p>
1059
- <em class="parameter"><code>a_ruleset</code></em>: the ruleset statements contained
1060
- in the @media rule.
1061
- <em class="parameter"><code>a_media</code></em>: the media string list. A list of GString pointers.
1062
- </p>
1063
- <p>
1064
- Instanciates an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
1065
- AT_MEDIA_RULE_STMT (@media ruleset).
1066
- </p>
1000
+ <a name="cr-statement-at-charset-rule-set-charset"></a><h3>cr_statement_at_charset_rule_set_charset ()</h3>
1001
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1002
+ cr_statement_at_charset_rule_set_charset
1003
+ (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1004
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_charset</code></em>);</pre>
1005
+ <p><em class="parameter"><code>a_this</code></em>
1006
+ : the current @charset rule statement.
1007
+ <em class="parameter"><code>a_charset</code></em>
1008
+ : the charset to set.</p>
1009
+ <p>Sets the charset of the current @charset rule statement.</p>
1010
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1067
1011
  </div>
1068
1012
  <hr>
1069
1013
  <div class="refsect2">
1070
- <a name="cr-statement-new-at-page-rule"></a><h3>cr_statement_new_at_page_rule ()</h3>
1071
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_new_at_page_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
1072
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>,
1073
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_name</code></em>,
1074
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_pseudo</code></em>);</pre>
1075
- <p>
1076
- <em class="parameter"><code>a_decl_list</code></em>: a list of instances of <a href="libcroco-cr-declaration.html#CRDeclaration"><span class="type">CRDeclarations</span></a>
1077
- which is actually the list of declarations that applies to
1078
- this page rule.
1079
- <em class="parameter"><code>a_selector</code></em>: the page rule selector.
1080
- </p>
1081
- <p>
1082
- Creates a new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
1083
- <a class="link" href="libcroco-cr-statement.html#CRAtPageRule" title="struct CRAtPageRule"><span class="type">CRAtPageRule</span></a>.
1084
- </p>
1085
- <div class="variablelist"><table border="0">
1086
- <col align="left" valign="top">
1087
- <tbody><tr>
1088
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1089
- <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> or NULL
1090
- in case of error.</td>
1091
- </tr></tbody>
1014
+ <a name="cr-statement-at-charset-rule-get-charset"></a><h3>cr_statement_at_charset_rule_get_charset ()</h3>
1015
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1016
+ cr_statement_at_charset_rule_get_charset
1017
+ (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1018
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> **a_charset</code></em>);</pre>
1019
+ <p>Gets the charset string associated to the current
1020
+ @charset rule statement.</p>
1021
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1022
+ <div class="refsect3">
1023
+ <a name="id-1.2.20.6.38.6"></a><h4>Parameters</h4>
1024
+ <div class="informaltable"><table width="100%" border="0">
1025
+ <colgroup>
1026
+ <col width="150px" class="parameters_name">
1027
+ <col class="parameters_description">
1028
+ <col width="200px" class="parameters_annotations">
1029
+ </colgroup>
1030
+ <tbody>
1031
+ <tr>
1032
+ <td class="parameter_name"><p>a_this</p></td>
1033
+ <td class="parameter_description"><p>the current @charset rule statement.</p></td>
1034
+ <td class="parameter_annotations"> </td>
1035
+ </tr>
1036
+ <tr>
1037
+ <td class="parameter_name"><p>a_charset</p></td>
1038
+ <td class="parameter_description"><p>out parameter. The returned charset string if
1039
+ and only if the function returned CR_OK.</p></td>
1040
+ <td class="parameter_annotations"> </td>
1041
+ </tr>
1042
+ </tbody>
1092
1043
  </table></div>
1093
1044
  </div>
1045
+ </div>
1094
1046
  <hr>
1095
1047
  <div class="refsect2">
1096
- <a name="cr-statement-new-ruleset"></a><h3>cr_statement_new_ruleset ()</h3>
1097
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_new_ruleset (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>,
1098
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel_list</code></em>,
1099
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl_list</code></em>,
1100
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_media_rule</code></em>);</pre>
1101
- <p>
1102
- <em class="parameter"><code>a_sel_list</code></em>: the list of <a class="link" href="libcroco-cr-simple-sel.html#CRSimpleSel" title="struct CRSimpleSel"><span class="type">CRSimpleSel</span></a> (selectors)
1103
- the rule applies to.
1104
- <em class="parameter"><code>a_decl_list</code></em>: the list of instances of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>
1105
- that composes the ruleset.
1106
- <em class="parameter"><code>a_media_types</code></em>: a list of instances of GString that
1107
- describe the media list this ruleset applies to.
1108
- </p>
1109
- <p>
1110
- Creates a new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type
1111
- <span class="type">CRRulSet</span>.
1112
- </p>
1113
- <div class="variablelist"><table border="0">
1114
- <col align="left" valign="top">
1115
- <tbody><tr>
1116
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1117
- <td>the new instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> or NULL if something
1118
- went wrong.</td>
1119
- </tr></tbody>
1120
- </table></div>
1048
+ <a name="cr-statement-at-font-face-rule-set-decls"></a><h3>cr_statement_at_font_face_rule_set_decls ()</h3>
1049
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1050
+ cr_statement_at_font_face_rule_set_decls
1051
+ (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1052
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decls</code></em>);</pre>
1053
+ <p><em class="parameter"><code>a_this</code></em>
1054
+ : the current @font-face rule statement.
1055
+ <em class="parameter"><code>a_decls</code></em>
1056
+ : the declarations list to set.</p>
1057
+ <p>Sets a declaration list to the current @font-face rule statement.</p>
1058
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1121
1059
  </div>
1122
1060
  <hr>
1123
1061
  <div class="refsect2">
1124
- <a name="cr-statement-nr-rules"></a><h3>cr_statement_nr_rules ()</h3>
1125
- <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> cr_statement_nr_rules (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>);</pre>
1126
- <p>
1127
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
1128
- </p>
1129
- <p>
1130
- Gets the number of rules in the statement list;
1131
- </p>
1132
- <div class="variablelist"><table border="0">
1133
- <col align="left" valign="top">
1134
- <tbody><tr>
1135
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1136
- <td>number of rules in the statement list.</td>
1137
- </tr></tbody>
1138
- </table></div>
1062
+ <a name="cr-statement-at-font-face-rule-get-decls"></a><h3>cr_statement_at_font_face_rule_get_decls ()</h3>
1063
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1064
+ cr_statement_at_font_face_rule_get_decls
1065
+ (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1066
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decls</code></em>);</pre>
1067
+ <p><em class="parameter"><code>a_this</code></em>
1068
+ : the current @font-face rule statement.
1069
+ <em class="parameter"><code>a_decls</code></em>
1070
+ : out parameter. The returned declaration list if
1071
+ and only if this function returns CR_OK.</p>
1072
+ <p>Gets the declaration list associated to the current instance
1073
+ of @font-face rule statement.</p>
1074
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1139
1075
  </div>
1140
1076
  <hr>
1141
1077
  <div class="refsect2">
1142
- <a name="cr-statement-parse-from-buf"></a><h3>cr_statement_parse_from_buf ()</h3>
1143
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_parse_from_buf (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
1144
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_encoding</code></em>);</pre>
1145
- <p>
1146
- <em class="parameter"><code>a_buf</code></em>: the buffer to parse.
1147
- <em class="parameter"><code>a_encoding</code></em>: the character encoding of a_buf.
1148
- </p>
1149
- <p>
1150
- Parses a buffer that contains a css statement and returns
1151
- an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of successful parsing.
1152
- TODO: at support of "@import" rules.
1153
- </p>
1154
- <div class="variablelist"><table border="0">
1155
- <col align="left" valign="top">
1156
- <tbody><tr>
1157
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1158
- <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case
1159
- of successful parsing, NULL otherwise.</td>
1160
- </tr></tbody>
1161
- </table></div>
1078
+ <a name="cr-statement-at-font-face-rule-add-decl"></a><h3>cr_statement_at_font_face_rule_add_decl ()</h3>
1079
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
1080
+ cr_statement_at_font_face_rule_add_decl
1081
+ (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1082
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
1083
+ <em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);</pre>
1084
+ <p><em class="parameter"><code>a_this</code></em>
1085
+ : the current @font-face rule statement.
1086
+ <em class="parameter"><code>a_prop</code></em>
1087
+ : the property of the declaration.
1088
+ <em class="parameter"><code>a_value</code></em>
1089
+ : the value of the declaration.</p>
1090
+ <p>Adds a declaration to the current @font-face rule
1091
+ statement.</p>
1092
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
1162
1093
  </div>
1163
1094
  <hr>
1164
1095
  <div class="refsect2">
1165
- <a name="cr-statement-prepend"></a><h3>cr_statement_prepend ()</h3>
1166
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_prepend (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1167
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_new</code></em>);</pre>
1168
- <p>
1169
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
1170
- <em class="parameter"><code>a_new</code></em>: the new statement to prepend.
1171
- </p>
1172
- <p>
1173
- Prepends the an instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> to
1174
- the current statement list.
1175
- </p>
1176
- <div class="variablelist"><table border="0">
1177
- <col align="left" valign="top">
1178
- <tbody><tr>
1179
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1180
- <td>the new list with the new statement prepended,
1181
- or NULL in case of an error.</td>
1182
- </tr></tbody>
1183
- </table></div>
1096
+ <a name="cr-statement-to-string"></a><h3>cr_statement_to_string ()</h3>
1097
+ <pre class="programlisting"><span class="returnvalue">gchar</span> *
1098
+ cr_statement_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1099
+ <em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>);</pre>
1100
+ <p><em class="parameter"><code>a_this</code></em>
1101
+ : the current statement to serialize
1102
+ <em class="parameter"><code>a_indent</code></em>
1103
+ : the number of white space of indentation.</p>
1104
+ <p>Serializes a css statement into a string</p>
1105
+ <p>Returns the serialized statement. Must be freed by the caller
1106
+ using <code class="function">g_free()</code>.</p>
1184
1107
  </div>
1185
1108
  <hr>
1186
1109
  <div class="refsect2">
1187
- <a name="cr-statement-ruleset-append-decl"></a><h3>cr_statement_ruleset_append_decl ()</h3>
1188
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_ruleset_append_decl (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1189
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl</code></em>);</pre>
1190
- <p>
1191
- Appends a declaration to the current statement.
1192
- </p>
1193
- <p>
1194
- <em class="parameter"><code>a_this</code></em>: the current statement.
1195
- <em class="parameter"><code>a_declaration</code></em>: the declaration to append.
1196
- </p>
1197
- <div class="variablelist"><table border="0">
1198
- <col align="left" valign="top">
1199
- <tbody><tr>
1200
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1201
- <td>CR_OK upon sucessful completion, an error code
1202
- otherwise.</td>
1203
- </tr></tbody>
1204
- </table></div>
1110
+ <a name="cr-statement-list-to-string"></a><h3>cr_statement_list_to_string ()</h3>
1111
+ <pre class="programlisting"><span class="returnvalue">gchar</span> *
1112
+ cr_statement_list_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1113
+ <em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>);</pre>
1205
1114
  </div>
1206
1115
  <hr>
1207
1116
  <div class="refsect2">
1208
- <a name="cr-statement-ruleset-append-decl2"></a><h3>cr_statement_ruleset_append_decl2 ()</h3>
1209
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_ruleset_append_decl2 (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1210
- <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
1211
- <em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);</pre>
1212
- <p>
1213
- <em class="parameter"><code>a_this</code></em>: the current statement.
1214
- <em class="parameter"><code>a_prop</code></em>: the property of the declaration.
1215
- <em class="parameter"><code>a_value</code></em>: the value of the declaration.
1216
- </p>
1217
- <p>
1218
- Appends a declaration to the current ruleset statement.
1219
- </p>
1220
- <div class="variablelist"><table border="0">
1221
- <col align="left" valign="top">
1222
- <tbody><tr>
1223
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1224
- <td>CR_OK upon successful completion, an error code
1225
- otherwise.</td>
1226
- </tr></tbody>
1227
- </table></div>
1117
+ <a name="cr-statement-dump"></a><h3>cr_statement_dump ()</h3>
1118
+ <pre class="programlisting"><span class="returnvalue">void</span>
1119
+ cr_statement_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1120
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
1121
+ <em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>);</pre>
1122
+ <p><em class="parameter"><code>a_this</code></em>
1123
+ : the current css2 statement.
1124
+ <em class="parameter"><code>a_fp</code></em>
1125
+ : the destination file pointer.
1126
+ <em class="parameter"><code>a_indent</code></em>
1127
+ : the number of white space indentation characters.</p>
1128
+ <p>Dumps the css2 statement to a file.</p>
1228
1129
  </div>
1229
1130
  <hr>
1230
1131
  <div class="refsect2">
1231
- <a name="cr-statement-ruleset-get-declarations"></a><h3>cr_statement_ruleset_get_declarations ()</h3>
1232
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_ruleset_get_declarations
1233
- (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1234
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> **a_decl_list</code></em>);</pre>
1235
- <p>
1236
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
1237
- <em class="parameter"><code>a_decl_list</code></em>: out parameter. A pointer to the the returned
1238
- list of declaration. Must not be NULL.
1239
- </p>
1240
- <p>
1241
- Gets a pointer to the list of declaration contained
1242
- in the ruleset statement.
1243
- </p>
1244
- <div class="variablelist"><table border="0">
1245
- <col align="left" valign="top">
1246
- <tbody><tr>
1247
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1248
- <td>CR_OK upon successful completion, an error code if something
1249
- bad happened.</td>
1250
- </tr></tbody>
1251
- </table></div>
1132
+ <a name="cr-statement-dump-ruleset"></a><h3>cr_statement_dump_ruleset ()</h3>
1133
+ <pre class="programlisting"><span class="returnvalue">void</span>
1134
+ cr_statement_dump_ruleset (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1135
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
1136
+ <em class="parameter"><code><span class="type">glong</span> a_indent</code></em>);</pre>
1137
+ <p><em class="parameter"><code>a_this</code></em>
1138
+ : the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
1139
+ <em class="parameter"><code>a_fp</code></em>
1140
+ : the destination file pointer.
1141
+ <em class="parameter"><code>a_indent</code></em>
1142
+ : the number of indentation white spaces to add.</p>
1143
+ <p>Dumps a ruleset statement to a file.</p>
1252
1144
  </div>
1253
1145
  <hr>
1254
1146
  <div class="refsect2">
1255
- <a name="cr-statement-ruleset-get-sel-list"></a><h3>cr_statement_ruleset_get_sel_list ()</h3>
1256
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_ruleset_get_sel_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1257
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> **a_list</code></em>);</pre>
1258
- <p>
1259
- <em class="parameter"><code>a_this</code></em>: the current ruleset statement.
1260
- <em class="parameter"><code>a_list</code></em>: out parameter. The returned selector list,
1261
- if and only if the function returned CR_OK.
1262
- </p>
1263
- <p>
1264
- Gets a pointer to the selector list contained in
1265
- the current ruleset statement.
1266
- </p>
1267
- <div class="variablelist"><table border="0">
1268
- <col align="left" valign="top">
1269
- <tbody><tr>
1270
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1271
- <td>CR_OK upon successful completion, an error code otherwise.</td>
1272
- </tr></tbody>
1273
- </table></div>
1147
+ <a name="cr-statement-dump-font-face-rule"></a><h3>cr_statement_dump_font_face_rule ()</h3>
1148
+ <pre class="programlisting"><span class="returnvalue">void</span>
1149
+ cr_statement_dump_font_face_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1150
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
1151
+ <em class="parameter"><code><span class="type">glong</span> a_indent</code></em>);</pre>
1152
+ <p><em class="parameter"><code>a_this</code></em>
1153
+ : the current instance of font face rule statement.
1154
+ <em class="parameter"><code>a_fp</code></em>
1155
+ : the destination file pointer.
1156
+ <em class="parameter"><code>a_indent</code></em>
1157
+ : the number of white space indentation.</p>
1158
+ <p>Dumps a font face rule statement to a file.</p>
1274
1159
  </div>
1275
1160
  <hr>
1276
1161
  <div class="refsect2">
1277
- <a name="cr-statement-ruleset-parse-from-buf"></a><h3>cr_statement_ruleset_parse_from_buf ()</h3>
1278
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_ruleset_parse_from_buf (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_buf</code></em>,
1279
- <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
1280
- <p>
1281
- <em class="parameter"><code>a_buf</code></em>: the buffer to parse.
1282
- <em class="parameter"><code>a_enc</code></em>: the character encoding of a_buf.
1283
- </p>
1284
- <p>
1285
- Parses a buffer that contains a ruleset statement an instanciates
1286
- a <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> of type RULESET_STMT.
1287
- </p>
1288
- <div class="variablelist"><table border="0">
1289
- <col align="left" valign="top">
1290
- <tbody><tr>
1291
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1292
- <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> in case of successful parsing,
1293
- NULL otherwise.</td>
1294
- </tr></tbody>
1295
- </table></div>
1162
+ <a name="cr-statement-dump-page"></a><h3>cr_statement_dump_page ()</h3>
1163
+ <pre class="programlisting"><span class="returnvalue">void</span>
1164
+ cr_statement_dump_page (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1165
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
1166
+ <em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>);</pre>
1167
+ <p><em class="parameter"><code>a_this</code></em>
1168
+ : the statement to dump on stdout.
1169
+ <em class="parameter"><code>a_fp</code></em>
1170
+ : the destination file pointer.
1171
+ <em class="parameter"><code>a_indent</code></em>
1172
+ : the number of indentation white spaces.</p>
1173
+ <p>Dumps an @page rule statement on stdout.</p>
1296
1174
  </div>
1297
1175
  <hr>
1298
1176
  <div class="refsect2">
1299
- <a name="cr-statement-ruleset-set-decl-list"></a><h3>cr_statement_ruleset_set_decl_list ()</h3>
1300
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_ruleset_set_decl_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1301
- <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_list</code></em>);</pre>
1302
- <p>
1303
- <em class="parameter"><code>a_this</code></em>: the current ruleset statement.
1304
- <em class="parameter"><code>a_list</code></em>: the declaration list to be added to the current
1305
- ruleset statement.
1306
- </p>
1307
- <p>
1308
- Sets a declaration list to the current ruleset statement.
1309
- </p>
1310
- <div class="variablelist"><table border="0">
1311
- <col align="left" valign="top">
1312
- <tbody><tr>
1313
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1314
- <td>CR_OK upon successful completion, an error code otherwise.</td>
1315
- </tr></tbody>
1316
- </table></div>
1177
+ <a name="cr-statement-dump-media-rule"></a><h3>cr_statement_dump_media_rule ()</h3>
1178
+ <pre class="programlisting"><span class="returnvalue">void</span>
1179
+ cr_statement_dump_media_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1180
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
1181
+ <em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>);</pre>
1182
+ <p><em class="parameter"><code>a_this</code></em>
1183
+ : the statement to dump.
1184
+ <em class="parameter"><code>a_fp</code></em>
1185
+ : the destination file pointer
1186
+ <em class="parameter"><code>a_indent</code></em>
1187
+ : the number of white spaces indentation.</p>
1188
+ <p>Dumps an @media rule statement to a file.</p>
1317
1189
  </div>
1318
1190
  <hr>
1319
1191
  <div class="refsect2">
1320
- <a name="cr-statement-ruleset-set-sel-list"></a><h3>cr_statement_ruleset_set_sel_list ()</h3>
1321
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_ruleset_set_sel_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1322
- <em class="parameter"><code><a class="link" href="libcroco-cr-selector.html#CRSelector" title="struct CRSelector"><span class="type">CRSelector</span></a> *a_sel_list</code></em>);</pre>
1323
- <p>
1324
- <em class="parameter"><code>a_this</code></em>: the current ruleset statement.
1325
- <em class="parameter"><code>a_sel_list</code></em>: the selector list to set. Note
1326
- that this function increments the ref count of a_sel_list.
1327
- The sel list will be destroyed at the destruction of the
1328
- current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
1329
- </p>
1330
- <p>
1331
- Sets a selector list to a ruleset statement.
1332
- </p>
1333
- <div class="variablelist"><table border="0">
1334
- <col align="left" valign="top">
1335
- <tbody><tr>
1336
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1337
- <td>CR_OK upon successful completion, an error code otherwise.</td>
1338
- </tr></tbody>
1339
- </table></div>
1192
+ <a name="cr-statement-dump-import-rule"></a><h3>cr_statement_dump_import_rule ()</h3>
1193
+ <pre class="programlisting"><span class="returnvalue">void</span>
1194
+ cr_statement_dump_import_rule (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1195
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
1196
+ <em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>);</pre>
1197
+ <p><em class="parameter"><code>a_fp</code></em>
1198
+ : the destination file pointer.
1199
+ <em class="parameter"><code>a_indent</code></em>
1200
+ : the number of white space indentations.</p>
1201
+ <p>Dumps an @import rule statement to a file.</p>
1340
1202
  </div>
1341
1203
  <hr>
1342
1204
  <div class="refsect2">
1343
- <a name="cr-statement-set-parent-sheet"></a><h3>cr_statement_set_parent_sheet ()</h3>
1344
- <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_statement_set_parent_sheet (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1345
- <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_sheet</code></em>);</pre>
1346
- <p>
1347
- <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
1348
- <em class="parameter"><code>a_sheet</code></em>: the sheet that contains the current statement.
1349
- </p>
1350
- <p>
1351
- Sets the container stylesheet.
1352
- </p>
1353
- <div class="variablelist"><table border="0">
1354
- <col align="left" valign="top">
1355
- <tbody><tr>
1356
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1357
- <td>CR_OK upon successful completion, an error code otherwise.</td>
1358
- </tr></tbody>
1359
- </table></div>
1205
+ <a name="cr-statement-dump-charset"></a><h3>cr_statement_dump_charset ()</h3>
1206
+ <pre class="programlisting"><span class="returnvalue">void</span>
1207
+ cr_statement_dump_charset (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1208
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
1209
+ <em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>);</pre>
1210
+ <p><em class="parameter"><code>a_this</code></em>
1211
+ : the current instance of the @charset rule statement.
1212
+ <em class="parameter"><code>a_fp</code></em>
1213
+ : the destination file pointer.
1214
+ <em class="parameter"><code>a_indent</code></em>
1215
+ : the number of indentation white spaces.</p>
1216
+ <p>Dumps an @charset rule statement to a file.</p>
1360
1217
  </div>
1361
1218
  <hr>
1362
1219
  <div class="refsect2">
1363
- <a name="cr-statement-to-string"></a><h3>cr_statement_to_string ()</h3>
1364
- <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cr_statement_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>,
1365
- <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);</pre>
1366
- <p>
1367
- <em class="parameter"><code>a_this</code></em>: the current statement to serialize
1368
- <em class="parameter"><code>a_indent</code></em>: the number of white space of indentation.
1369
- </p>
1370
- <p>
1371
- Serializes a css statement into a string
1372
- </p>
1373
- <div class="variablelist"><table border="0">
1374
- <col align="left" valign="top">
1375
- <tbody><tr>
1376
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1377
- <td>the serialized statement. Must be freed by the caller
1378
- using <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
1379
- </tr></tbody>
1380
- </table></div>
1220
+ <a name="cr-statement-nr-rules"></a><h3>cr_statement_nr_rules ()</h3>
1221
+ <pre class="programlisting"><span class="returnvalue">gint</span>
1222
+ cr_statement_nr_rules (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> const *a_this</code></em>);</pre>
1223
+ <p><em class="parameter"><code>a_this</code></em>
1224
+ : the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
1225
+ <p>Gets the number of rules in the statement list;</p>
1226
+ <p>Returns number of rules in the statement list.</p>
1381
1227
  </div>
1382
1228
  <hr>
1383
1229
  <div class="refsect2">
1384
- <a name="cr-statement-unlink"></a><h3>cr_statement_unlink ()</h3>
1385
- <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> * cr_statement_unlink (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_stmt</code></em>);</pre>
1386
- <p>
1387
- <em class="parameter"><code>a_this</code></em>: the current statements list.
1388
- <em class="parameter"><code>a_to_unlink</code></em>: the statement to unlink from the list.
1389
- </p>
1390
- <p>
1391
- Unlinks a statement from the statements list.
1392
- </p>
1393
- <div class="variablelist"><table border="0">
1394
- <col align="left" valign="top">
1395
- <tbody><tr>
1396
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1397
- <td>the new list where a_to_unlink has been unlinked
1398
- from, or NULL in case of error.</td>
1399
- </tr></tbody>
1400
- </table></div>
1230
+ <a name="cr-statement-get-from-list"></a><h3>cr_statement_get_from_list ()</h3>
1231
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="returnvalue">CRStatement</span></a> *
1232
+ cr_statement_get_from_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>,
1233
+ <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);</pre>
1234
+ <p><em class="parameter"><code>a_this</code></em>
1235
+ : the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.
1236
+ <em class="parameter"><code>itemnr</code></em>
1237
+ : the index into the statement list.</p>
1238
+ <p>Use an index to get a CRStatement from the statement list.</p>
1239
+ <p>Returns CRStatement at position itemnr, if itemnr &gt; number of statements - 1,
1240
+ it will return NULL.</p>
1401
1241
  </div>
1242
+ <hr>
1243
+ <div class="refsect2">
1244
+ <a name="cr-statement-destroy"></a><h3>cr_statement_destroy ()</h3>
1245
+ <pre class="programlisting"><span class="returnvalue">void</span>
1246
+ cr_statement_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_this</code></em>);</pre>
1247
+ <p><em class="parameter"><code>a_this</code></em>
1248
+ : the current instance of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
1249
+ <p>Destructor of <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a>.</p>
1402
1250
  </div>
1403
1251
  </div>
1404
- <div class="footer">
1252
+ <div class="refsect1">
1253
+ <a name="libcroco-cr-statement.other_details"></a><h2>Types and Values</h2>
1254
+ <div class="refsect2">
1255
+ <a name="CRRuleSet"></a><h3>struct CRRuleSet</h3>
1256
+ <pre class="programlisting">struct CRRuleSet {
1257
+ /**A list of instances of #CRSimpeSel*/
1258
+ CRSelector *sel_list ;
1259
+
1260
+ /**A list of instances of #CRDeclaration*/
1261
+ CRDeclaration *decl_list ;
1262
+
1263
+ /**
1264
+ *The parent media rule, or NULL if
1265
+ *no parent media rule exists.
1266
+ */
1267
+ CRStatement *parent_media_rule ;
1268
+ };
1269
+ </pre>
1270
+ </div>
1271
+ <hr>
1272
+ <div class="refsect2">
1273
+ <a name="CRAtImportRule"></a><h3>struct CRAtImportRule</h3>
1274
+ <pre class="programlisting">struct CRAtImportRule {
1275
+ /**the url of the import rule*/
1276
+ CRString *url ;
1277
+
1278
+ GList *media_list ;
1279
+
1280
+ /**
1281
+ *the stylesheet fetched from the url, if any.
1282
+ *this is not "owned" by #CRAtImportRule which means
1283
+ *it is not destroyed by the destructor of #CRAtImportRule.
1284
+ */
1285
+ CRStyleSheet * sheet;
1286
+ };
1287
+ </pre>
1288
+ </div>
1289
+ <hr>
1290
+ <div class="refsect2">
1291
+ <a name="CRAtMediaRule"></a><h3>struct CRAtMediaRule</h3>
1292
+ <pre class="programlisting">struct CRAtMediaRule {
1293
+ GList *media_list ;
1294
+ CRStatement *rulesets ;
1295
+ };
1296
+ </pre>
1297
+ </div>
1298
+ <hr>
1299
+ <div class="refsect2">
1300
+ <a name="CRAtPageRule"></a><h3>struct CRAtPageRule</h3>
1301
+ <pre class="programlisting">struct CRAtPageRule {
1302
+ /**a list of instances of #CRDeclaration*/
1303
+ CRDeclaration *decl_list ;
1304
+
1305
+ /**page selector. Is a pseudo selector*/
1306
+ CRString *name ;
1307
+ CRString *pseudo ;
1308
+ };
1309
+ </pre>
1310
+ </div>
1311
+ <hr>
1312
+ <div class="refsect2">
1313
+ <a name="CRAtCharsetRule"></a><h3>struct CRAtCharsetRule</h3>
1314
+ <pre class="programlisting">struct CRAtCharsetRule {
1315
+ CRString * charset ;
1316
+ };
1317
+ </pre>
1318
+ </div>
1319
+ <hr>
1320
+ <div class="refsect2">
1321
+ <a name="CRAtFontFaceRule"></a><h3>struct CRAtFontFaceRule</h3>
1322
+ <pre class="programlisting">struct CRAtFontFaceRule {
1323
+ /*a list of instanaces of #CRDeclaration*/
1324
+ CRDeclaration *decl_list ;
1325
+ };
1326
+ </pre>
1327
+ </div>
1328
+ <hr>
1329
+ <div class="refsect2">
1330
+ <a name="CRStatement"></a><h3>CRStatement</h3>
1331
+ <pre class="programlisting">typedef struct {
1332
+ /**
1333
+ *The type of the statement.
1334
+ */
1335
+ enum CRStatementType type ;
1336
+
1337
+ union
1338
+ {
1339
+ CRRuleSet *ruleset ;
1340
+ CRAtImportRule *import_rule ;
1341
+ CRAtMediaRule *media_rule ;
1342
+ CRAtPageRule *page_rule ;
1343
+ CRAtCharsetRule *charset_rule ;
1344
+ CRAtFontFaceRule *font_face_rule ;
1345
+ } kind ;
1346
+
1347
+ /*
1348
+ *the specificity of the selector
1349
+ *that matched this statement.
1350
+ *This is only used by the cascading
1351
+ *order determination algorithm.
1352
+ */
1353
+ gulong specificity ;
1354
+
1355
+ /*
1356
+ *the style sheet that contains
1357
+ *this css statement.
1358
+ */
1359
+ CRStyleSheet *parent_sheet ;
1360
+ CRStatement *next ;
1361
+ CRStatement *prev ;
1362
+
1363
+ CRParsingLocation location ;
1364
+
1365
+ /**
1366
+ *a custom pointer useable by
1367
+ *applications that use libcroco.
1368
+ *libcroco itself will never modify
1369
+ *this pointer.
1370
+ */
1371
+ gpointer app_data ;
1372
+
1373
+ /**
1374
+ *a custom pointer used
1375
+ *by the upper layers of libcroco.
1376
+ *application should never use this
1377
+ *pointer.
1378
+ */
1379
+ gpointer croco_data ;
1380
+ } CRStatement;
1381
+ </pre>
1382
+ </div>
1405
1383
  <hr>
1406
- Generated by GTK-Doc V1.18</div>
1384
+ <div class="refsect2">
1385
+ <a name="CRStyleSheet"></a><h3>CRStyleSheet</h3>
1386
+ <pre class="programlisting">typedef struct {
1387
+ /**The css statements list*/
1388
+ CRStatement *statements ;
1389
+
1390
+ enum CRStyleOrigin origin ;
1391
+
1392
+ /*the parent import rule, if any.*/
1393
+ CRStatement *parent_import_rule ;
1394
+
1395
+ /**custom data used by libcroco*/
1396
+ gpointer croco_data ;
1397
+
1398
+ /**
1399
+ *custom application data pointer
1400
+ *Can be used by applications.
1401
+ */
1402
+ gpointer app_data ;
1403
+
1404
+ /**
1405
+ *the reference count of this insance
1406
+ *Please, don't never ever modify it
1407
+ *directly. Use cr_stylesheet_ref()
1408
+ *and cr_stylesheet_unref() instead.
1409
+ */
1410
+ gulong ref_count ;
1411
+ } CRStyleSheet;
1412
+ </pre>
1413
+ </div>
1414
+ </div>
1415
+ </div>
1416
+ <div class="footer">
1417
+ <hr>Generated by GTK-Doc V1.24.1</div>
1407
1418
  </body>
1408
1419
  </html>