rsvg2 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +7 -0
  2. data/README +35 -0
  3. data/Rakefile +69 -0
  4. data/ext/rsvg2/depend +6 -0
  5. data/ext/rsvg2/extconf.rb +89 -0
  6. data/ext/rsvg2/rbrsvg.c +206 -0
  7. data/ext/rsvg2/rbrsvgdimensiondata.c +194 -0
  8. data/ext/rsvg2/rbrsvghandle.c +496 -0
  9. data/ext/rsvg2/rsvg2.def +2 -0
  10. data/ext/rsvg2/rsvg2.h +70 -0
  11. data/extconf.rb +49 -0
  12. data/lib/2.0/rsvg2.so +0 -0
  13. data/lib/2.1/rsvg2.so +0 -0
  14. data/lib/2.2/rsvg2.so +0 -0
  15. data/lib/rsvg2.rb +33 -0
  16. data/sample/svg-viewer.rb +44 -0
  17. data/sample/svg2.rb +60 -0
  18. data/test/rsvg2-test-utils.rb +23 -0
  19. data/test/run-test.rb +49 -0
  20. data/test/test-handle.rb +91 -0
  21. data/vendor/local/bin/croco-0.6-config +87 -0
  22. data/vendor/local/bin/csslint-0.6.exe +0 -0
  23. data/vendor/local/bin/libcroco-0.6-3.dll +0 -0
  24. data/vendor/local/bin/librsvg-2-2.dll +0 -0
  25. data/vendor/local/bin/rsvg-convert.exe +0 -0
  26. data/vendor/local/include/libcroco-0.6/libcroco/cr-additional-sel.h +98 -0
  27. data/vendor/local/include/libcroco-0.6/libcroco/cr-attr-sel.h +74 -0
  28. data/vendor/local/include/libcroco-0.6/libcroco/cr-cascade.h +74 -0
  29. data/vendor/local/include/libcroco-0.6/libcroco/cr-declaration.h +136 -0
  30. data/vendor/local/include/libcroco-0.6/libcroco/cr-doc-handler.h +298 -0
  31. data/vendor/local/include/libcroco-0.6/libcroco/cr-enc-handler.h +94 -0
  32. data/vendor/local/include/libcroco-0.6/libcroco/cr-fonts.h +315 -0
  33. data/vendor/local/include/libcroco-0.6/libcroco/cr-input.h +174 -0
  34. data/vendor/local/include/libcroco-0.6/libcroco/cr-num.h +127 -0
  35. data/vendor/local/include/libcroco-0.6/libcroco/cr-om-parser.h +98 -0
  36. data/vendor/local/include/libcroco-0.6/libcroco/cr-parser.h +128 -0
  37. data/vendor/local/include/libcroco-0.6/libcroco/cr-parsing-location.h +70 -0
  38. data/vendor/local/include/libcroco-0.6/libcroco/cr-prop-list.h +80 -0
  39. data/vendor/local/include/libcroco-0.6/libcroco/cr-pseudo.h +64 -0
  40. data/vendor/local/include/libcroco-0.6/libcroco/cr-rgb.h +94 -0
  41. data/vendor/local/include/libcroco-0.6/libcroco/cr-sel-eng.h +110 -0
  42. data/vendor/local/include/libcroco-0.6/libcroco/cr-selector.h +95 -0
  43. data/vendor/local/include/libcroco-0.6/libcroco/cr-simple-sel.h +130 -0
  44. data/vendor/local/include/libcroco-0.6/libcroco/cr-statement.h +440 -0
  45. data/vendor/local/include/libcroco-0.6/libcroco/cr-string.h +76 -0
  46. data/vendor/local/include/libcroco-0.6/libcroco/cr-style.h +339 -0
  47. data/vendor/local/include/libcroco-0.6/libcroco/cr-stylesheet.h +102 -0
  48. data/vendor/local/include/libcroco-0.6/libcroco/cr-term.h +190 -0
  49. data/vendor/local/include/libcroco-0.6/libcroco/cr-tknzr.h +115 -0
  50. data/vendor/local/include/libcroco-0.6/libcroco/cr-token.h +212 -0
  51. data/vendor/local/include/libcroco-0.6/libcroco/cr-utils.h +246 -0
  52. data/vendor/local/include/libcroco-0.6/libcroco/libcroco-config.h +17 -0
  53. data/vendor/local/include/libcroco-0.6/libcroco/libcroco.h +44 -0
  54. data/vendor/local/include/librsvg-2.0/librsvg/librsvg-enum-types.h +24 -0
  55. data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +28 -0
  56. data/vendor/local/include/librsvg-2.0/librsvg/rsvg-cairo.h +42 -0
  57. data/vendor/local/include/librsvg-2.0/librsvg/rsvg.h +264 -0
  58. data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
  59. data/vendor/local/lib/libcroco-0.6.a +0 -0
  60. data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
  61. data/vendor/local/lib/libcroco-0.6.la +41 -0
  62. data/vendor/local/lib/librsvg-2.a +0 -0
  63. data/vendor/local/lib/librsvg-2.dll.a +0 -0
  64. data/vendor/local/lib/librsvg-2.la +41 -0
  65. data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +11 -0
  66. data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +15 -0
  67. data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +754 -0
  68. data/vendor/local/share/gtk-doc/html/libcroco/ch01.html +113 -0
  69. data/vendor/local/share/gtk-doc/html/libcroco/home.png +0 -0
  70. data/vendor/local/share/gtk-doc/html/libcroco/index.html +109 -0
  71. data/vendor/local/share/gtk-doc/html/libcroco/index.sgml +582 -0
  72. data/vendor/local/share/gtk-doc/html/libcroco/left.png +0 -0
  73. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-additional-sel.html +337 -0
  74. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-attr-sel.html +203 -0
  75. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-cascade.html +240 -0
  76. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-declaration.html +642 -0
  77. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-doc-handler.html +517 -0
  78. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-enc-handler.html +164 -0
  79. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-fonts.html +670 -0
  80. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-input.html +1102 -0
  81. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-num.html +265 -0
  82. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-om-parser.html +380 -0
  83. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parser.html +913 -0
  84. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parsing-location.html +205 -0
  85. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-prop-list.html +421 -0
  86. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-pseudo.html +141 -0
  87. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-rgb.html +503 -0
  88. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-sel-eng.html +346 -0
  89. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-selector.html +246 -0
  90. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-simple-sel.html +240 -0
  91. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-statement.html +1408 -0
  92. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-string.html +137 -0
  93. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-style.html +384 -0
  94. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-stylesheet.html +158 -0
  95. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-term.html +304 -0
  96. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-tknzr.html +312 -0
  97. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-token.html +428 -0
  98. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-utils.html +334 -0
  99. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-libcroco-config.html +80 -0
  100. data/vendor/local/share/gtk-doc/html/libcroco/libcroco.devhelp2 +511 -0
  101. data/vendor/local/share/gtk-doc/html/libcroco/right.png +0 -0
  102. data/vendor/local/share/gtk-doc/html/libcroco/style.css +266 -0
  103. data/vendor/local/share/gtk-doc/html/libcroco/up.png +0 -0
  104. data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1420 -0
  105. data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +55 -0
  106. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +55 -0
  107. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +43 -0
  108. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +47 -0
  109. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +46 -0
  110. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +39 -0
  111. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +54 -0
  112. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +53 -0
  113. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +100 -0
  114. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +323 -0
  115. data/vendor/local/share/gtk-doc/html/rsvg-2.0/home.png +0 -0
  116. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +88 -0
  117. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +106 -0
  118. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left-insensitive.png +0 -0
  119. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left.png +0 -0
  120. data/vendor/local/share/gtk-doc/html/rsvg-2.0/licence.html +57 -0
  121. data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +38 -0
  122. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right-insensitive.png +0 -0
  123. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right.png +0 -0
  124. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +94 -0
  125. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +360 -0
  126. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +484 -0
  127. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +154 -0
  128. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +142 -0
  129. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +57 -0
  130. data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +476 -0
  131. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
  132. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
  133. data/vendor/local/share/license/libcroco/AUTHORS +13 -0
  134. data/vendor/local/share/license/libcroco/COPYING +481 -0
  135. data/vendor/local/share/license/libcroco/COPYING.LIB +481 -0
  136. data/vendor/local/share/license/librsvg/AUTHORS +1 -0
  137. data/vendor/local/share/license/librsvg/COPYING +340 -0
  138. data/vendor/local/share/license/librsvg/COPYING.LIB +482 -0
  139. data/vendor/local/share/man/man1/rsvg-convert.1 +55 -0
  140. metadata +209 -0
@@ -0,0 +1,240 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
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">
7
+ <link rel="home" href="index.html" title="Libcroco Reference Manual">
8
+ <link rel="up" href="ch01.html" title="Extensive APIs description">
9
+ <link rel="prev" href="libcroco-cr-selector.html" title="cr-selector">
10
+ <link rel="next" href="libcroco-cr-statement.html" title="cr-statement">
11
+ <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
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>
29
+ <div class="refentry">
30
+ <a name="libcroco-cr-simple-sel"></a><div class="titlepage"></div>
31
+ <div class="refnamediv"><table width="100%"><tr>
32
+ <td valign="top">
33
+ <h2><span class="refentrytitle"><a name="libcroco-cr-simple-sel.top_of_page"></a>cr-simple-sel</span></h2>
34
+ <p>cr-simple-sel</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </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>
54
+ </div>
55
+ <div class="refsect1">
56
+ <a name="libcroco-cr-simple-sel.description"></a><h2>Description</h2>
57
+ <p>
58
+ </p>
59
+ </div>
60
+ <div class="refsect1">
61
+ <a name="libcroco-cr-simple-sel.details"></a><h2>Details</h2>
62
+ <div class="refsect2">
63
+ <a name="CRSimpleSel"></a><h3>struct CRSimpleSel</h3>
64
+ <pre class="programlisting">struct CRSimpleSel {
65
+ enum SimpleSelectorType type_mask ;
66
+ gboolean is_case_sentive ;
67
+ CRString * name ;
68
+ /**
69
+ *The combinator that separates
70
+ *this simple selector from the previous
71
+ *one.
72
+ */
73
+ enum Combinator combinator ;
74
+
75
+ /**
76
+ *The additional selector list of the
77
+ *current simple selector.
78
+ *An additional selector may
79
+ *be a class selector, an id selector,
80
+ *or an attribute selector.
81
+ *Note that this field is a linked list.
82
+ */
83
+ CRAdditionalSel *add_sel ;
84
+
85
+ /*
86
+ *the specificity as specified by
87
+ *chapter 6.4.3 of the spec.
88
+ */
89
+ gulong specificity ;
90
+
91
+ CRSimpleSel *next ;
92
+ CRSimpleSel *prev ;
93
+ CRParsingLocation location ;
94
+ };
95
+ </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
+ </div>
234
+ </div>
235
+ </div>
236
+ <div class="footer">
237
+ <hr>
238
+ Generated by GTK-Doc V1.18</div>
239
+ </body>
240
+ </html>
@@ -0,0 +1,1408 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
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">
7
+ <link rel="home" href="index.html" title="Libcroco Reference Manual">
8
+ <link rel="up" href="ch01.html" title="Extensive APIs description">
9
+ <link rel="prev" href="libcroco-cr-simple-sel.html" title="cr-simple-sel">
10
+ <link rel="next" href="libcroco-cr-string.html" title="cr-string">
11
+ <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
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>
29
+ <div class="refentry">
30
+ <a name="libcroco-cr-statement"></a><div class="titlepage"></div>
31
+ <div class="refnamediv"><table width="100%"><tr>
32
+ <td valign="top">
33
+ <h2><span class="refentrytitle"><a name="libcroco-cr-statement.top_of_page"></a>cr-statement</span></h2>
34
+ <p>cr-statement</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </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
+ <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>
383
+ </table></div>
384
+ </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">
397
+ <tbody>
398
+ <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>
401
+ </tr>
402
+ <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>
406
+ </tr>
407
+ <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>
410
+ </tr>
411
+ </tbody>
412
+ </table></div>
413
+ </div>
414
+ <hr>
415
+ <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>
435
+ </div>
436
+ <hr>
437
+ <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>
456
+ </div>
457
+ <hr>
458
+ <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>
480
+ </div>
481
+ <hr>
482
+ <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>
503
+ </div>
504
+ <hr>
505
+ <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>
524
+ </div>
525
+ <hr>
526
+ <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>
546
+ </div>
547
+ <hr>
548
+ <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>
567
+ </div>
568
+ <hr>
569
+ <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>
590
+ </div>
591
+ <hr>
592
+ <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>
612
+ </div>
613
+ <hr>
614
+ <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>
632
+ </div>
633
+ <hr>
634
+ <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>
653
+ </div>
654
+ <hr>
655
+ <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>
668
+ </div>
669
+ <hr>
670
+ <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>
691
+ </div>
692
+ <hr>
693
+ <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>
713
+ </div>
714
+ <hr>
715
+ <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>
721
+ </div>
722
+ <hr>
723
+ <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>
744
+ </div>
745
+ <hr>
746
+ <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>
766
+ </div>
767
+ <hr>
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>
774
+ </div>
775
+ <hr>
776
+ <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>
785
+ </div>
786
+ <hr>
787
+ <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>
808
+ </div>
809
+ <hr>
810
+ <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>
823
+ </div>
824
+ <hr>
825
+ <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>
838
+ </div>
839
+ <hr>
840
+ <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>
853
+ </div>
854
+ <hr>
855
+ <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>
867
+ </div>
868
+ <hr>
869
+ <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>
882
+ </div>
883
+ <hr>
884
+ <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>
897
+ </div>
898
+ <hr>
899
+ <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>
912
+ </div>
913
+ <hr>
914
+ <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>
935
+ </div>
936
+ <hr>
937
+ <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>
956
+ </div>
957
+ <hr>
958
+ <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>
976
+ </div>
977
+ <hr>
978
+ <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>
984
+ </div>
985
+ <hr>
986
+ <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>
1007
+ </div>
1008
+ <hr>
1009
+ <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>
1027
+ </div>
1028
+ <hr>
1029
+ <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>
1051
+ </div>
1052
+ <hr>
1053
+ <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>
1067
+ </div>
1068
+ <hr>
1069
+ <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>
1092
+ </table></div>
1093
+ </div>
1094
+ <hr>
1095
+ <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>
1121
+ </div>
1122
+ <hr>
1123
+ <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>
1139
+ </div>
1140
+ <hr>
1141
+ <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>
1162
+ </div>
1163
+ <hr>
1164
+ <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>
1184
+ </div>
1185
+ <hr>
1186
+ <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>
1205
+ </div>
1206
+ <hr>
1207
+ <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>
1228
+ </div>
1229
+ <hr>
1230
+ <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>
1252
+ </div>
1253
+ <hr>
1254
+ <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>
1274
+ </div>
1275
+ <hr>
1276
+ <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>
1296
+ </div>
1297
+ <hr>
1298
+ <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>
1317
+ </div>
1318
+ <hr>
1319
+ <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>
1340
+ </div>
1341
+ <hr>
1342
+ <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>
1360
+ </div>
1361
+ <hr>
1362
+ <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>
1381
+ </div>
1382
+ <hr>
1383
+ <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>
1401
+ </div>
1402
+ </div>
1403
+ </div>
1404
+ <div class="footer">
1405
+ <hr>
1406
+ Generated by GTK-Doc V1.18</div>
1407
+ </body>
1408
+ </html>