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-cascade</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-attr-sel.html" title="cr-attr-sel">
10
+ <link rel="next" href="libcroco-cr-declaration.html" title="cr-declaration">
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-attr-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-declaration.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-cascade.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#libcroco-cr-cascade.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry">
30
+ <a name="libcroco-cr-cascade"></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-cascade.top_of_page"></a>cr-cascade</span></h2>
34
+ <p>cr-cascade</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv">
39
+ <a name="libcroco-cr-cascade.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">struct <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade">CRCascade</a>;
41
+ <a class="link" href="libcroco-cr-cascade.html#CRCascadePriv" title="CRCascadePriv">CRCascadePriv</a>;
42
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-cascade.html#cr-cascade-destroy" title="cr_cascade_destroy ()">cr_cascade_destroy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>);
43
+ <a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="returnvalue">CRStyleSheet</span></a> * <a class="link" href="libcroco-cr-cascade.html#cr-cascade-get-sheet" title="cr_cascade_get_sheet ()">cr_cascade_get_sheet</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>,
44
+ <em class="parameter"><code><span class="type">enum CRStyleOrigin</span> a_origin</code></em>);
45
+ <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="returnvalue">CRCascade</span></a> * <a class="link" href="libcroco-cr-cascade.html#cr-cascade-new" title="cr_cascade_new ()">cr_cascade_new</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_author_sheet</code></em>,
46
+ <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_user_sheet</code></em>,
47
+ <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_ua_sheet</code></em>);
48
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-cascade.html#cr-cascade-ref" title="cr_cascade_ref ()">cr_cascade_ref</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>);
49
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-cascade.html#cr-cascade-set-sheet" title="cr_cascade_set_sheet ()">cr_cascade_set_sheet</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>,
50
+ <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>,
51
+ <em class="parameter"><code><span class="type">enum CRStyleOrigin</span> a_origin</code></em>);
52
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-cascade.html#cr-cascade-unref" title="cr_cascade_unref ()">cr_cascade_unref</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>);
53
+ </pre>
54
+ </div>
55
+ <div class="refsect1">
56
+ <a name="libcroco-cr-cascade.description"></a><h2>Description</h2>
57
+ <p>
58
+ </p>
59
+ </div>
60
+ <div class="refsect1">
61
+ <a name="libcroco-cr-cascade.details"></a><h2>Details</h2>
62
+ <div class="refsect2">
63
+ <a name="CRCascade"></a><h3>struct CRCascade</h3>
64
+ <pre class="programlisting">struct CRCascade {
65
+ CRCascadePriv *priv ;
66
+ };
67
+ </pre>
68
+ <p>
69
+ </p>
70
+ </div>
71
+ <hr>
72
+ <div class="refsect2">
73
+ <a name="CRCascadePriv"></a><h3>CRCascadePriv</h3>
74
+ <pre class="programlisting">typedef struct _CRCascadePriv CRCascadePriv;</pre>
75
+ <p>
76
+ </p>
77
+ </div>
78
+ <hr>
79
+ <div class="refsect2">
80
+ <a name="cr-cascade-destroy"></a><h3>cr_cascade_destroy ()</h3>
81
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_cascade_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>);</pre>
82
+ <p>
83
+ Destructor of <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a>.
84
+ </p>
85
+ <div class="variablelist"><table border="0">
86
+ <col align="left" valign="top">
87
+ <tbody><tr>
88
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
89
+ <td>the current instance of <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a>
90
+ </td>
91
+ </tr></tbody>
92
+ </table></div>
93
+ </div>
94
+ <hr>
95
+ <div class="refsect2">
96
+ <a name="cr-cascade-get-sheet"></a><h3>cr_cascade_get_sheet ()</h3>
97
+ <pre class="programlisting"><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="returnvalue">CRStyleSheet</span></a> * cr_cascade_get_sheet (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>,
98
+ <em class="parameter"><code><span class="type">enum CRStyleOrigin</span> a_origin</code></em>);</pre>
99
+ <p>
100
+ Gets a sheet, part of the cascade.
101
+ Note that the returned stylesheet
102
+ is refcounted so if the caller wants
103
+ to manage it's lifecycle, it must use
104
+ <a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-ref" title="cr_stylesheet_ref ()"><code class="function">cr_stylesheet_ref()</code></a>/<a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-unref" title="cr_stylesheet_unref ()"><code class="function">cr_stylesheet_unref()</code></a> instead
105
+ of the <a class="link" href="libcroco-cr-stylesheet.html#cr-stylesheet-destroy" title="cr_stylesheet_destroy ()"><code class="function">cr_stylesheet_destroy()</code></a> method.
106
+ </p>
107
+ <div class="variablelist"><table border="0">
108
+ <col align="left" valign="top">
109
+ <tbody>
110
+ <tr>
111
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
112
+ <td>the current instance of <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a>.</td>
113
+ </tr>
114
+ <tr>
115
+ <td><p><span class="term"><em class="parameter"><code>a_origin</code></em> :</span></p></td>
116
+ <td>the origin of the style sheet as
117
+ defined in the css2 spec in chapter 6.4.
118
+ Gets a given origin sheet.</td>
119
+ </tr>
120
+ <tr>
121
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
122
+ <td>the style sheet, or NULL if it does not
123
+ exist.</td>
124
+ </tr>
125
+ </tbody>
126
+ </table></div>
127
+ </div>
128
+ <hr>
129
+ <div class="refsect2">
130
+ <a name="cr-cascade-new"></a><h3>cr_cascade_new ()</h3>
131
+ <pre class="programlisting"><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="returnvalue">CRCascade</span></a> * cr_cascade_new (<em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_author_sheet</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_user_sheet</code></em>,
133
+ <em class="parameter"><code><a class="link" href="libcroco-cr-statement.html#CRStyleSheet" title="CRStyleSheet"><span class="type">CRStyleSheet</span></a> *a_ua_sheet</code></em>);</pre>
134
+ <p>
135
+ Constructor of the <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> class.
136
+ Note that all three parameters of this
137
+ method are ref counted and their refcount is increased.
138
+ Their refcount will be decreased at the destruction of
139
+ the instance of <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a>.
140
+ So the caller should not call their destructor. The caller
141
+ should call their ref/unref method instead if it wants
142
+ </p>
143
+ <div class="variablelist"><table border="0">
144
+ <col align="left" valign="top">
145
+ <tbody>
146
+ <tr>
147
+ <td><p><span class="term"><em class="parameter"><code>a_author_sheet</code></em> :</span></p></td>
148
+ <td>the author origin style sheet. May be NULL.</td>
149
+ </tr>
150
+ <tr>
151
+ <td><p><span class="term"><em class="parameter"><code>a_user_sheet</code></em> :</span></p></td>
152
+ <td>the user origin style sheet. May be NULL.</td>
153
+ </tr>
154
+ <tr>
155
+ <td><p><span class="term"><em class="parameter"><code>a_ua_sheet</code></em> :</span></p></td>
156
+ <td>the user agent origin style sheet. May be NULL.</td>
157
+ </tr>
158
+ <tr>
159
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
160
+ <td>the newly built instance of CRCascade or NULL if
161
+ an error arose during constrution.</td>
162
+ </tr>
163
+ </tbody>
164
+ </table></div>
165
+ </div>
166
+ <hr>
167
+ <div class="refsect2">
168
+ <a name="cr-cascade-ref"></a><h3>cr_cascade_ref ()</h3>
169
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_cascade_ref (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>);</pre>
170
+ <p>
171
+ Increases the reference counter of the current instance
172
+ of <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a>.
173
+ </p>
174
+ <div class="variablelist"><table border="0">
175
+ <col align="left" valign="top">
176
+ <tbody><tr>
177
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
178
+ <td>the current instance of <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a>
179
+ </td>
180
+ </tr></tbody>
181
+ </table></div>
182
+ </div>
183
+ <hr>
184
+ <div class="refsect2">
185
+ <a name="cr-cascade-set-sheet"></a><h3>cr_cascade_set_sheet ()</h3>
186
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_cascade_set_sheet (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>,
187
+ <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>,
188
+ <em class="parameter"><code><span class="type">enum CRStyleOrigin</span> a_origin</code></em>);</pre>
189
+ <p>
190
+ Sets a stylesheet in the cascade
191
+ </p>
192
+ <div class="variablelist"><table border="0">
193
+ <col align="left" valign="top">
194
+ <tbody>
195
+ <tr>
196
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
197
+ <td>the current instance of <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a>.</td>
198
+ </tr>
199
+ <tr>
200
+ <td><p><span class="term"><em class="parameter"><code>a_sheet</code></em> :</span></p></td>
201
+ <td>the stylesheet to set.</td>
202
+ </tr>
203
+ <tr>
204
+ <td><p><span class="term"><em class="parameter"><code>a_origin</code></em> :</span></p></td>
205
+ <td>the origin of the stylesheet.</td>
206
+ </tr>
207
+ <tr>
208
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
209
+ <td>CR_OK upon successfull completion, an error
210
+ code otherwise.</td>
211
+ </tr>
212
+ </tbody>
213
+ </table></div>
214
+ </div>
215
+ <hr>
216
+ <div class="refsect2">
217
+ <a name="cr-cascade-unref"></a><h3>cr_cascade_unref ()</h3>
218
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_cascade_unref (<em class="parameter"><code><a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a> *a_this</code></em>);</pre>
219
+ <p>
220
+ Decrements the reference counter associated
221
+ to this instance of <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a>. If the reference
222
+ counter reaches zero, the instance is destroyed
223
+ using <a class="link" href="libcroco-cr-cascade.html#cr-cascade-destroy" title="cr_cascade_destroy ()"><code class="function">cr_cascade_destroy()</code></a>
224
+ </p>
225
+ <div class="variablelist"><table border="0">
226
+ <col align="left" valign="top">
227
+ <tbody><tr>
228
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
229
+ <td>the current instance of
230
+ <a class="link" href="libcroco-cr-cascade.html#CRCascade" title="struct CRCascade"><span class="type">CRCascade</span></a>.</td>
231
+ </tr></tbody>
232
+ </table></div>
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,642 @@
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-declaration</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-cascade.html" title="cr-cascade">
10
+ <link rel="next" href="libcroco-cr-doc-handler.html" title="cr-doc-handler">
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-cascade.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-doc-handler.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-declaration.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#libcroco-cr-declaration.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry">
30
+ <a name="libcroco-cr-declaration"></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-declaration.top_of_page"></a>cr-declaration</span></h2>
34
+ <p>cr-declaration</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv">
39
+ <a name="libcroco-cr-declaration.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">struct <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration">CRDeclaration</a>;
41
+ <a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement">CRStatement</a>;
42
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-append" title="cr_declaration_append ()">cr_declaration_append</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
43
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_new</code></em>);
44
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-append2" title="cr_declaration_append2 ()">cr_declaration_append2</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
45
+ <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>,
46
+ <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>);
47
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-destroy" title="cr_declaration_destroy ()">cr_declaration_destroy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);
48
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-dump" title="cr_declaration_dump ()">cr_declaration_dump</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
49
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
50
+ <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>,
51
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> a_one_per_line</code></em>);
52
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-dump-one" title="cr_declaration_dump_one ()">cr_declaration_dump_one</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
53
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
54
+ <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>);
55
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-get-by-prop-name" title="cr_declaration_get_by_prop_name ()">cr_declaration_get_by_prop_name</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
56
+ <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_str</code></em>);
57
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-get-from-list" title="cr_declaration_get_from_list ()">cr_declaration_get_from_list</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
58
+ <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);
59
+ <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-declaration.html#cr-declaration-list-to-string" title="cr_declaration_list_to_string ()">cr_declaration_list_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
60
+ <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>);
61
+ <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-declaration.html#cr-declaration-list-to-string2" title="cr_declaration_list_to_string2 ()">cr_declaration_list_to_string2</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
62
+ <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>,
63
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> a_one_decl_per_line</code></em>);
64
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-new" title="cr_declaration_new ()">cr_declaration_new</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_statement</code></em>,
65
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_property</code></em>,
66
+ <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>);
67
+ <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-declaration.html#cr-declaration-nr-props" title="cr_declaration_nr_props ()">cr_declaration_nr_props</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>);
68
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-parse-from-buf" title="cr_declaration_parse_from_buf ()">cr_declaration_parse_from_buf</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_statement</code></em>,
69
+ <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_str</code></em>,
70
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
71
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-parse-list-from-buf" title="cr_declaration_parse_list_from_buf ()">cr_declaration_parse_list_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_str</code></em>,
72
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
73
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-prepend" title="cr_declaration_prepend ()">cr_declaration_prepend</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
74
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_new</code></em>);
75
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-ref" title="cr_declaration_ref ()">cr_declaration_ref</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);
76
+ <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-declaration.html#cr-declaration-to-string" title="cr_declaration_to_string ()">cr_declaration_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
77
+ <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>);
78
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-unlink" title="cr_declaration_unlink ()">cr_declaration_unlink</a> (<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>);
79
+ <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-declaration.html#cr-declaration-unref" title="cr_declaration_unref ()">cr_declaration_unref</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);
80
+ </pre>
81
+ </div>
82
+ <div class="refsect1">
83
+ <a name="libcroco-cr-declaration.description"></a><h2>Description</h2>
84
+ <p>
85
+ </p>
86
+ </div>
87
+ <div class="refsect1">
88
+ <a name="libcroco-cr-declaration.details"></a><h2>Details</h2>
89
+ <div class="refsect2">
90
+ <a name="CRDeclaration"></a><h3>struct CRDeclaration</h3>
91
+ <pre class="programlisting">struct CRDeclaration {
92
+ /**The property.*/
93
+ CRString *property ;
94
+
95
+ /**The value of the property.*/
96
+ CRTerm *value ;
97
+
98
+ /*the ruleset that contains this declaration*/
99
+ CRStatement *parent_statement ;
100
+
101
+ /*the next declaration*/
102
+ CRDeclaration *next ;
103
+
104
+ /*the previous one declaration*/
105
+ CRDeclaration *prev ;
106
+
107
+ /*does the declaration have the important keyword ?*/
108
+ gboolean important ;
109
+
110
+ glong ref_count ;
111
+
112
+ CRParsingLocation location ;
113
+ /*reserved for future usage*/
114
+ gpointer rfu0 ;
115
+ gpointer rfu1 ;
116
+ gpointer rfu2 ;
117
+ gpointer rfu3 ;
118
+ };
119
+ </pre>
120
+ <p>
121
+ </p>
122
+ </div>
123
+ <hr>
124
+ <div class="refsect2">
125
+ <a name="CRStatement"></a><h3>CRStatement</h3>
126
+ <pre class="programlisting">typedef struct {
127
+ /**
128
+ *The type of the statement.
129
+ */
130
+ enum CRStatementType type ;
131
+
132
+ union
133
+ {
134
+ CRRuleSet *ruleset ;
135
+ CRAtImportRule *import_rule ;
136
+ CRAtMediaRule *media_rule ;
137
+ CRAtPageRule *page_rule ;
138
+ CRAtCharsetRule *charset_rule ;
139
+ CRAtFontFaceRule *font_face_rule ;
140
+ } kind ;
141
+
142
+ /*
143
+ *the specificity of the selector
144
+ *that matched this statement.
145
+ *This is only used by the cascading
146
+ *order determination algorithm.
147
+ */
148
+ gulong specificity ;
149
+
150
+ /*
151
+ *the style sheet that contains
152
+ *this css statement.
153
+ */
154
+ CRStyleSheet *parent_sheet ;
155
+ CRStatement *next ;
156
+ CRStatement *prev ;
157
+
158
+ CRParsingLocation location ;
159
+
160
+ /**
161
+ *a custom pointer useable by
162
+ *applications that use libcroco.
163
+ *libcroco itself will never modify
164
+ *this pointer.
165
+ */
166
+ gpointer app_data ;
167
+
168
+ /**
169
+ *a custom pointer used
170
+ *by the upper layers of libcroco.
171
+ *application should never use this
172
+ *pointer.
173
+ */
174
+ gpointer croco_data ;
175
+ } CRStatement;
176
+ </pre>
177
+ <p>
178
+ </p>
179
+ </div>
180
+ <hr>
181
+ <div class="refsect2">
182
+ <a name="cr-declaration-append"></a><h3>cr_declaration_append ()</h3>
183
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_append (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
184
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_new</code></em>);</pre>
185
+ <p>
186
+ Appends a new declaration to the current declarations list.
187
+ </p>
188
+ <div class="variablelist"><table border="0">
189
+ <col align="left" valign="top">
190
+ <tbody>
191
+ <tr>
192
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
193
+ <td>the current declaration list.</td>
194
+ </tr>
195
+ <tr>
196
+ <td><p><span class="term"><em class="parameter"><code>a_new</code></em> :</span></p></td>
197
+ <td>the declaration to append.</td>
198
+ </tr>
199
+ <tr>
200
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
201
+ <td>the declaration list with a_new appended to it, or NULL
202
+ in case of error.</td>
203
+ </tr>
204
+ </tbody>
205
+ </table></div>
206
+ </div>
207
+ <hr>
208
+ <div class="refsect2">
209
+ <a name="cr-declaration-append2"></a><h3>cr_declaration_append2 ()</h3>
210
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_append2 (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
211
+ <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>,
212
+ <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>
213
+ <p>
214
+ Appends a declaration to the current declaration list.
215
+ </p>
216
+ <div class="variablelist"><table border="0">
217
+ <col align="left" valign="top">
218
+ <tbody>
219
+ <tr>
220
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
221
+ <td>the current declaration list.</td>
222
+ </tr>
223
+ <tr>
224
+ <td><p><span class="term"><em class="parameter"><code>a_prop</code></em> :</span></p></td>
225
+ <td>the property string of the declaration to append.</td>
226
+ </tr>
227
+ <tr>
228
+ <td><p><span class="term"><em class="parameter"><code>a_value</code></em> :</span></p></td>
229
+ <td>the value of the declaration to append.</td>
230
+ </tr>
231
+ <tr>
232
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
233
+ <td>the list with the new property appended to it, or NULL in
234
+ case of an error.</td>
235
+ </tr>
236
+ </tbody>
237
+ </table></div>
238
+ </div>
239
+ <hr>
240
+ <div class="refsect2">
241
+ <a name="cr-declaration-destroy"></a><h3>cr_declaration_destroy ()</h3>
242
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_declaration_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);</pre>
243
+ <p>
244
+ Destructor of the declaration list.
245
+ </p>
246
+ <div class="variablelist"><table border="0">
247
+ <col align="left" valign="top">
248
+ <tbody><tr>
249
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
250
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
251
+ </tr></tbody>
252
+ </table></div>
253
+ </div>
254
+ <hr>
255
+ <div class="refsect2">
256
+ <a name="cr-declaration-dump"></a><h3>cr_declaration_dump ()</h3>
257
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_declaration_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
258
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
259
+ <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>,
260
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> a_one_per_line</code></em>);</pre>
261
+ <p>
262
+ Dumps a declaration list to a file.
263
+ </p>
264
+ <div class="variablelist"><table border="0">
265
+ <col align="left" valign="top">
266
+ <tbody>
267
+ <tr>
268
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
269
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
270
+ </tr>
271
+ <tr>
272
+ <td><p><span class="term"><em class="parameter"><code>a_fp</code></em> :</span></p></td>
273
+ <td>the destination file.</td>
274
+ </tr>
275
+ <tr>
276
+ <td><p><span class="term"><em class="parameter"><code>a_indent</code></em> :</span></p></td>
277
+ <td>the number of indentation white char.</td>
278
+ </tr>
279
+ <tr>
280
+ <td><p><span class="term"><em class="parameter"><code>a_one_per_line</code></em> :</span></p></td>
281
+ <td>whether to put one declaration per line of not .</td>
282
+ </tr>
283
+ </tbody>
284
+ </table></div>
285
+ </div>
286
+ <hr>
287
+ <div class="refsect2">
288
+ <a name="cr-declaration-dump-one"></a><h3>cr_declaration_dump_one ()</h3>
289
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_declaration_dump_one (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
290
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
291
+ <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>
292
+ <p>
293
+ Dumps the first declaration of the declaration list to a file.
294
+ </p>
295
+ <div class="variablelist"><table border="0">
296
+ <col align="left" valign="top">
297
+ <tbody>
298
+ <tr>
299
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
300
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
301
+ </tr>
302
+ <tr>
303
+ <td><p><span class="term"><em class="parameter"><code>a_fp</code></em> :</span></p></td>
304
+ <td>the destination file.</td>
305
+ </tr>
306
+ <tr>
307
+ <td><p><span class="term"><em class="parameter"><code>a_indent</code></em> :</span></p></td>
308
+ <td>the number of indentation white char.</td>
309
+ </tr>
310
+ </tbody>
311
+ </table></div>
312
+ </div>
313
+ <hr>
314
+ <div class="refsect2">
315
+ <a name="cr-declaration-get-by-prop-name"></a><h3>cr_declaration_get_by_prop_name ()</h3>
316
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_get_by_prop_name (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
317
+ <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_str</code></em>);</pre>
318
+ <p>
319
+ Use property name to get a CRDeclaration from the declaration list.
320
+ </p>
321
+ <div class="variablelist"><table border="0">
322
+ <col align="left" valign="top">
323
+ <tbody>
324
+ <tr>
325
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
326
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
327
+ </tr>
328
+ <tr>
329
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
330
+ <td>
331
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> with property name a_prop, or NULL if not found.</td>
332
+ </tr>
333
+ </tbody>
334
+ </table></div>
335
+ </div>
336
+ <hr>
337
+ <div class="refsect2">
338
+ <a name="cr-declaration-get-from-list"></a><h3>cr_declaration_get_from_list ()</h3>
339
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_get_from_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
340
+ <em class="parameter"><code><span class="type">int</span> itemnr</code></em>);</pre>
341
+ <p>
342
+ Use an index to get a CRDeclaration from the declaration list.
343
+ </p>
344
+ <div class="variablelist"><table border="0">
345
+ <col align="left" valign="top">
346
+ <tbody>
347
+ <tr>
348
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
349
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
350
+ </tr>
351
+ <tr>
352
+ <td><p><span class="term"><em class="parameter"><code>itemnr</code></em> :</span></p></td>
353
+ <td>the index into the declaration list.</td>
354
+ </tr>
355
+ <tr>
356
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
357
+ <td>
358
+ <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> at position itemnr,
359
+ if itemnr &gt; number of declarations - 1,
360
+ it will return NULL.</td>
361
+ </tr>
362
+ </tbody>
363
+ </table></div>
364
+ </div>
365
+ <hr>
366
+ <div class="refsect2">
367
+ <a name="cr-declaration-list-to-string"></a><h3>cr_declaration_list_to_string ()</h3>
368
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * cr_declaration_list_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
369
+ <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>
370
+ <p>
371
+ Serializes the declaration list into a string
372
+ </p>
373
+ <div class="variablelist"><table border="0">
374
+ <col align="left" valign="top">
375
+ <tbody>
376
+ <tr>
377
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
378
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
379
+ </tr>
380
+ <tr>
381
+ <td><p><span class="term"><em class="parameter"><code>a_indent</code></em> :</span></p></td>
382
+ <td>the number of indentation white char
383
+ to put before the actual serialisation.</td>
384
+ </tr>
385
+ </tbody>
386
+ </table></div>
387
+ </div>
388
+ <hr>
389
+ <div class="refsect2">
390
+ <a name="cr-declaration-list-to-string2"></a><h3>cr_declaration_list_to_string2 ()</h3>
391
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * cr_declaration_list_to_string2 (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
392
+ <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>,
393
+ <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> a_one_decl_per_line</code></em>);</pre>
394
+ <p>
395
+ Serializes the declaration list into a string
396
+ </p>
397
+ <div class="variablelist"><table border="0">
398
+ <col align="left" valign="top">
399
+ <tbody>
400
+ <tr>
401
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
402
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
403
+ </tr>
404
+ <tr>
405
+ <td><p><span class="term"><em class="parameter"><code>a_indent</code></em> :</span></p></td>
406
+ <td>the number of indentation white char</td>
407
+ </tr>
408
+ <tr>
409
+ <td><p><span class="term"><em class="parameter"><code>a_one_decl_per_line</code></em> :</span></p></td>
410
+ <td>whether to output one doc per line or not.
411
+ to put before the actual serialisation.</td>
412
+ </tr>
413
+ <tr>
414
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
415
+ <td>the serialized form the declararation.</td>
416
+ </tr>
417
+ </tbody>
418
+ </table></div>
419
+ </div>
420
+ <hr>
421
+ <div class="refsect2">
422
+ <a name="cr-declaration-new"></a><h3>cr_declaration_new ()</h3>
423
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_new (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_statement</code></em>,
424
+ <em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_property</code></em>,
425
+ <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>
426
+ <div class="variablelist"><table border="0">
427
+ <col align="left" valign="top">
428
+ <tbody>
429
+ <tr>
430
+ <td><p><span class="term"><em class="parameter"><code>a_statement</code></em> :</span></p></td>
431
+ <td>the statement this declaration belongs to. can be NULL.</td>
432
+ </tr>
433
+ <tr>
434
+ <td><p><span class="term"><em class="parameter"><code>a_property</code></em> :</span></p></td>
435
+ <td>the property string of the declaration</td>
436
+ </tr>
437
+ <tr>
438
+ <td><p><span class="term"><em class="parameter"><code>a_value</code></em> :</span></p></td>
439
+ <td>the value expression of the declaration.
440
+ Constructor of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
441
+ </tr>
442
+ <tr>
443
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
444
+ <td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>, or NULL in
445
+ case of error.
446
+ The returned CRDeclaration takes ownership of <em class="parameter"><code>a_property</code></em> and <em class="parameter"><code>a_value</code></em>.
447
+ (E.g. cr_declaration_destroy on this CRDeclaration will also free
448
+ <em class="parameter"><code>a_property</code></em> and <em class="parameter"><code>a_value</code></em>.)</td>
449
+ </tr>
450
+ </tbody>
451
+ </table></div>
452
+ </div>
453
+ <hr>
454
+ <div class="refsect2">
455
+ <a name="cr-declaration-nr-props"></a><h3>cr_declaration_nr_props ()</h3>
456
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> cr_declaration_nr_props (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>);</pre>
457
+ <div class="variablelist"><table border="0">
458
+ <col align="left" valign="top">
459
+ <tbody><tr>
460
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
461
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.
462
+ Return the number of properties in the declaration</td>
463
+ </tr></tbody>
464
+ </table></div>
465
+ </div>
466
+ <hr>
467
+ <div class="refsect2">
468
+ <a name="cr-declaration-parse-from-buf"></a><h3>cr_declaration_parse_from_buf ()</h3>
469
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_parse_from_buf (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_statement</code></em>,
470
+ <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_str</code></em>,
471
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
472
+ <p>
473
+ Parses a text buffer that contains
474
+ a css declaration.
475
+ </p>
476
+ <div class="variablelist"><table border="0">
477
+ <col align="left" valign="top">
478
+ <tbody>
479
+ <tr>
480
+ <td><p><span class="term"><em class="parameter"><code>a_statement</code></em> :</span></p></td>
481
+ <td>the parent css2 statement of this
482
+ this declaration. Must be non NULL and of type
483
+ RULESET_STMT (must be a ruleset).</td>
484
+ </tr>
485
+ <tr>
486
+ <td><p><span class="term"><em class="parameter"><code>a_str</code></em> :</span></p></td>
487
+ <td>the string that contains the statement.</td>
488
+ </tr>
489
+ <tr>
490
+ <td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
491
+ <td>the encoding of a_str.</td>
492
+ </tr>
493
+ <tr>
494
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
495
+ <td>the parsed declaration, or NULL in case of error.</td>
496
+ </tr>
497
+ </tbody>
498
+ </table></div>
499
+ </div>
500
+ <hr>
501
+ <div class="refsect2">
502
+ <a name="cr-declaration-parse-list-from-buf"></a><h3>cr_declaration_parse_list_from_buf ()</h3>
503
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_parse_list_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_str</code></em>,
504
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
505
+ <p>
506
+ Parses a ';' separated list of properties declaration.
507
+ </p>
508
+ <div class="variablelist"><table border="0">
509
+ <col align="left" valign="top">
510
+ <tbody>
511
+ <tr>
512
+ <td><p><span class="term"><em class="parameter"><code>a_str</code></em> :</span></p></td>
513
+ <td>the input buffer that contains the list of declaration to
514
+ parse.</td>
515
+ </tr>
516
+ <tr>
517
+ <td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
518
+ <td>the encoding of a_str</td>
519
+ </tr>
520
+ <tr>
521
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
522
+ <td>the parsed list of declaration, NULL if parsing failed.</td>
523
+ </tr>
524
+ </tbody>
525
+ </table></div>
526
+ </div>
527
+ <hr>
528
+ <div class="refsect2">
529
+ <a name="cr-declaration-prepend"></a><h3>cr_declaration_prepend ()</h3>
530
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_prepend (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
531
+ <em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_new</code></em>);</pre>
532
+ <p>
533
+ prepends a declaration to the current declaration list.
534
+ </p>
535
+ <div class="variablelist"><table border="0">
536
+ <col align="left" valign="top">
537
+ <tbody>
538
+ <tr>
539
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
540
+ <td>the current declaration list.</td>
541
+ </tr>
542
+ <tr>
543
+ <td><p><span class="term"><em class="parameter"><code>a_new</code></em> :</span></p></td>
544
+ <td>the declaration to prepend.</td>
545
+ </tr>
546
+ <tr>
547
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
548
+ <td>the list with a_new prepended or NULL in case of error.</td>
549
+ </tr>
550
+ </tbody>
551
+ </table></div>
552
+ </div>
553
+ <hr>
554
+ <div class="refsect2">
555
+ <a name="cr-declaration-ref"></a><h3>cr_declaration_ref ()</h3>
556
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_declaration_ref (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);</pre>
557
+ <p>
558
+ Increases the ref count of the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.
559
+ </p>
560
+ <div class="variablelist"><table border="0">
561
+ <col align="left" valign="top">
562
+ <tbody><tr>
563
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
564
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
565
+ </tr></tbody>
566
+ </table></div>
567
+ </div>
568
+ <hr>
569
+ <div class="refsect2">
570
+ <a name="cr-declaration-to-string"></a><h3>cr_declaration_to_string ()</h3>
571
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * cr_declaration_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
572
+ <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>
573
+ <p>
574
+ Serializes the declaration into a string
575
+ </p>
576
+ <div class="variablelist"><table border="0">
577
+ <col align="left" valign="top">
578
+ <tbody>
579
+ <tr>
580
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
581
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
582
+ </tr>
583
+ <tr>
584
+ <td><p><span class="term"><em class="parameter"><code>a_indent</code></em> :</span></p></td>
585
+ <td>the number of indentation white char
586
+ to put before the actual serialisation.</td>
587
+ </tr>
588
+ <tr>
589
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
590
+ <td>the serialized form the declaration. The caller must
591
+ free the string using <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
592
+ </tr>
593
+ </tbody>
594
+ </table></div>
595
+ </div>
596
+ <hr>
597
+ <div class="refsect2">
598
+ <a name="cr-declaration-unlink"></a><h3>cr_declaration_unlink ()</h3>
599
+ <pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_unlink (<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>
600
+ <p>
601
+ Unlinks the declaration from the declaration list.
602
+ case of a successfull completion, NULL otherwise.
603
+ </p>
604
+ <div class="variablelist"><table border="0">
605
+ <col align="left" valign="top">
606
+ <tbody><tr>
607
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
608
+ <td>a pointer to the unlinked declaration in</td>
609
+ </tr></tbody>
610
+ </table></div>
611
+ </div>
612
+ <hr>
613
+ <div class="refsect2">
614
+ <a name="cr-declaration-unref"></a><h3>cr_declaration_unref ()</h3>
615
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cr_declaration_unref (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);</pre>
616
+ <p>
617
+ Decrements the ref count of the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.
618
+ If the ref count reaches zero, the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>
619
+ if destroyed.
620
+ </p>
621
+ <div class="variablelist"><table border="0">
622
+ <col align="left" valign="top">
623
+ <tbody>
624
+ <tr>
625
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
626
+ <td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
627
+ </tr>
628
+ <tr>
629
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
630
+ <td>TRUE if <em class="parameter"><code>a_this</code></em> was destroyed (ref count reached zero),
631
+ FALSE otherwise.</td>
632
+ </tr>
633
+ </tbody>
634
+ </table></div>
635
+ </div>
636
+ </div>
637
+ </div>
638
+ <div class="footer">
639
+ <hr>
640
+ Generated by GTK-Doc V1.18</div>
641
+ </body>
642
+ </html>