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,141 @@
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-pseudo</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-prop-list.html" title="cr-prop-list">
10
+ <link rel="next" href="libcroco-cr-rgb.html" title="cr-rgb">
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-prop-list.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-rgb.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-pseudo.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#libcroco-cr-pseudo.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry">
30
+ <a name="libcroco-cr-pseudo"></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-pseudo.top_of_page"></a>cr-pseudo</span></h2>
34
+ <p>cr-pseudo</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv">
39
+ <a name="libcroco-cr-pseudo.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">struct <a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo">CRPseudo</a>;
41
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-pseudo.html#cr-pseudo-destroy" title="cr_pseudo_destroy ()">cr_pseudo_destroy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo"><span class="type">CRPseudo</span></a> *a_this</code></em>);
42
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-pseudo.html#cr-pseudo-dump" title="cr_pseudo_dump ()">cr_pseudo_dump</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo"><span class="type">CRPseudo</span></a> const *a_this</code></em>,
43
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>);
44
+ <a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo"><span class="returnvalue">CRPseudo</span></a> * <a class="link" href="libcroco-cr-pseudo.html#cr-pseudo-new" title="cr_pseudo_new ()">cr_pseudo_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
45
+ <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-pseudo.html#cr-pseudo-to-string" title="cr_pseudo_to_string ()">cr_pseudo_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo"><span class="type">CRPseudo</span></a> const *a_this</code></em>);
46
+ </pre>
47
+ </div>
48
+ <div class="refsect1">
49
+ <a name="libcroco-cr-pseudo.description"></a><h2>Description</h2>
50
+ <p>
51
+ </p>
52
+ </div>
53
+ <div class="refsect1">
54
+ <a name="libcroco-cr-pseudo.details"></a><h2>Details</h2>
55
+ <div class="refsect2">
56
+ <a name="CRPseudo"></a><h3>struct CRPseudo</h3>
57
+ <pre class="programlisting">struct CRPseudo {
58
+ enum CRPseudoType type ;
59
+ CRString *name ;
60
+ CRString *extra ;
61
+ CRParsingLocation location ;
62
+ };
63
+ </pre>
64
+ <p>
65
+ </p>
66
+ </div>
67
+ <hr>
68
+ <div class="refsect2">
69
+ <a name="cr-pseudo-destroy"></a><h3>cr_pseudo_destroy ()</h3>
70
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_pseudo_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo"><span class="type">CRPseudo</span></a> *a_this</code></em>);</pre>
71
+ <p>
72
+ destructor of the <a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo"><span class="type">CRPseudo</span></a> class.
73
+ </p>
74
+ <div class="variablelist"><table border="0">
75
+ <col align="left" valign="top">
76
+ <tbody><tr>
77
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
78
+ <td>the current instance to destroy.</td>
79
+ </tr></tbody>
80
+ </table></div>
81
+ </div>
82
+ <hr>
83
+ <div class="refsect2">
84
+ <a name="cr-pseudo-dump"></a><h3>cr_pseudo_dump ()</h3>
85
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_pseudo_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo"><span class="type">CRPseudo</span></a> const *a_this</code></em>,
86
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>);</pre>
87
+ <p>
88
+ Dumps the pseudo to a file.
89
+ </p>
90
+ <div class="variablelist"><table border="0">
91
+ <col align="left" valign="top">
92
+ <tbody>
93
+ <tr>
94
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
95
+ <td>the current instance of pseudo</td>
96
+ </tr>
97
+ <tr>
98
+ <td><p><span class="term"><em class="parameter"><code>a_fp</code></em> :</span></p></td>
99
+ <td>the destination file pointer.</td>
100
+ </tr>
101
+ </tbody>
102
+ </table></div>
103
+ </div>
104
+ <hr>
105
+ <div class="refsect2">
106
+ <a name="cr-pseudo-new"></a><h3>cr_pseudo_new ()</h3>
107
+ <pre class="programlisting"><a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo"><span class="returnvalue">CRPseudo</span></a> * cr_pseudo_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
108
+ <div class="variablelist"><table border="0">
109
+ <col align="left" valign="top">
110
+ <tbody><tr>
111
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
112
+ <td>the newly build instance.</td>
113
+ </tr></tbody>
114
+ </table></div>
115
+ </div>
116
+ <hr>
117
+ <div class="refsect2">
118
+ <a name="cr-pseudo-to-string"></a><h3>cr_pseudo_to_string ()</h3>
119
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * cr_pseudo_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-pseudo.html#CRPseudo" title="struct CRPseudo"><span class="type">CRPseudo</span></a> const *a_this</code></em>);</pre>
120
+ <div class="variablelist"><table border="0">
121
+ <col align="left" valign="top">
122
+ <tbody>
123
+ <tr>
124
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
125
+ <td>the current instance of <span class="type">CRPseud</span>.</td>
126
+ </tr>
127
+ <tr>
128
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
129
+ <td>the serialized pseudo. Caller must free the returned
130
+ 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>
131
+ </tr>
132
+ </tbody>
133
+ </table></div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ <div class="footer">
138
+ <hr>
139
+ Generated by GTK-Doc V1.18</div>
140
+ </body>
141
+ </html>
@@ -0,0 +1,503 @@
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-rgb</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-pseudo.html" title="cr-pseudo">
10
+ <link rel="next" href="libcroco-cr-sel-eng.html" title="cr-sel-eng">
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-pseudo.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-sel-eng.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-rgb.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#libcroco-cr-rgb.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry">
30
+ <a name="libcroco-cr-rgb"></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-rgb.top_of_page"></a>cr-rgb</span></h2>
34
+ <p>cr-rgb</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv">
39
+ <a name="libcroco-cr-rgb.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">struct <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb">CRRgb</a>;
41
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-compute-from-percentage" title="cr_rgb_compute_from_percentage ()">cr_rgb_compute_from_percentage</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>);
42
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-copy" title="cr_rgb_copy ()">cr_rgb_copy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_dest</code></em>,
43
+ <em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_src</code></em>);
44
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-destroy" title="cr_rgb_destroy ()">cr_rgb_destroy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>);
45
+ <span class="returnvalue">void</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-dump" title="cr_rgb_dump ()">cr_rgb_dump</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_this</code></em>,
46
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>);
47
+ <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-rgb.html#cr-rgb-is-set-to-inherit" title="cr_rgb_is_set_to_inherit ()">cr_rgb_is_set_to_inherit</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_this</code></em>);
48
+ <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-rgb.html#cr-rgb-is-set-to-transparent" title="cr_rgb_is_set_to_transparent ()">cr_rgb_is_set_to_transparent</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_this</code></em>);
49
+ <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> * <a class="link" href="libcroco-cr-rgb.html#cr-rgb-new" title="cr_rgb_new ()">cr_rgb_new</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
50
+ <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> * <a class="link" href="libcroco-cr-rgb.html#cr-rgb-new-with-vals" title="cr_rgb_new_with_vals ()">cr_rgb_new_with_vals</a> (<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_red</code></em>,
51
+ <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_green</code></em>,
52
+ <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_blue</code></em>,
53
+ <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_is_percentage</code></em>);
54
+ <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> * <a class="link" href="libcroco-cr-rgb.html#cr-rgb-parse-from-buf" title="cr_rgb_parse_from_buf ()">cr_rgb_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_str</code></em>,
55
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
56
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-set" title="cr_rgb_set ()">cr_rgb_set</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
57
+ <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_red</code></em>,
58
+ <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_green</code></em>,
59
+ <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_blue</code></em>,
60
+ <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_is_percentage</code></em>);
61
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-set-from-hex-str" title="cr_rgb_set_from_hex_str ()">cr_rgb_set_from_hex_str</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
62
+ <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_hex_value</code></em>);
63
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-set-from-name" title="cr_rgb_set_from_name ()">cr_rgb_set_from_name</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
64
+ <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_color_name</code></em>);
65
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-set-from-rgb" title="cr_rgb_set_from_rgb ()">cr_rgb_set_from_rgb</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
66
+ <em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_rgb</code></em>);
67
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-set-from-term" title="cr_rgb_set_from_term ()">cr_rgb_set_from_term</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
68
+ <em class="parameter"><code>const <span class="type">struct _CRTerm</span> *a_value</code></em>);
69
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-set-to-inherit" title="cr_rgb_set_to_inherit ()">cr_rgb_set_to_inherit</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
70
+ <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_inherit</code></em>);
71
+ enum <span class="returnvalue">CRStatus</span> <a class="link" href="libcroco-cr-rgb.html#cr-rgb-set-to-transparent" title="cr_rgb_set_to_transparent ()">cr_rgb_set_to_transparent</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
72
+ <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_is_transparent</code></em>);
73
+ <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-rgb.html#cr-rgb-to-string" title="cr_rgb_to_string ()">cr_rgb_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_this</code></em>);
74
+ </pre>
75
+ </div>
76
+ <div class="refsect1">
77
+ <a name="libcroco-cr-rgb.description"></a><h2>Description</h2>
78
+ <p>
79
+ </p>
80
+ </div>
81
+ <div class="refsect1">
82
+ <a name="libcroco-cr-rgb.details"></a><h2>Details</h2>
83
+ <div class="refsect2">
84
+ <a name="CRRgb"></a><h3>struct CRRgb</h3>
85
+ <pre class="programlisting">struct CRRgb {
86
+ /*
87
+ *the unit of the rgb.
88
+ *Either NO_UNIT (integer) or
89
+ *UNIT_PERCENTAGE (percentage).
90
+ */
91
+ const guchar *name ;
92
+ glong red ;
93
+ glong green ;
94
+ glong blue ;
95
+ gboolean is_percentage ;
96
+ gboolean inherit ;
97
+ gboolean is_transparent ;
98
+ CRParsingLocation location ;
99
+ };
100
+ </pre>
101
+ <p>
102
+ </p>
103
+ </div>
104
+ <hr>
105
+ <div class="refsect2">
106
+ <a name="cr-rgb-compute-from-percentage"></a><h3>cr_rgb_compute_from_percentage ()</h3>
107
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_rgb_compute_from_percentage (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>);</pre>
108
+ <p>
109
+ If the rgb values are expressed in percentage,
110
+ compute their real value.
111
+ </p>
112
+ <div class="variablelist"><table border="0">
113
+ <col align="left" valign="top">
114
+ <tbody>
115
+ <tr>
116
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
117
+ <td>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>
118
+ </td>
119
+ </tr>
120
+ <tr>
121
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
122
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
123
+ </tr>
124
+ </tbody>
125
+ </table></div>
126
+ </div>
127
+ <hr>
128
+ <div class="refsect2">
129
+ <a name="cr-rgb-copy"></a><h3>cr_rgb_copy ()</h3>
130
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_rgb_copy (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_dest</code></em>,
131
+ <em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_src</code></em>);</pre>
132
+ <p>
133
+ </p>
134
+ </div>
135
+ <hr>
136
+ <div class="refsect2">
137
+ <a name="cr-rgb-destroy"></a><h3>cr_rgb_destroy ()</h3>
138
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_rgb_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>);</pre>
139
+ <p>
140
+ Destructor of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.
141
+ </p>
142
+ <div class="variablelist"><table border="0">
143
+ <col align="left" valign="top">
144
+ <tbody><tr>
145
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
146
+ <td>the "this pointer" of the
147
+ current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</td>
148
+ </tr></tbody>
149
+ </table></div>
150
+ </div>
151
+ <hr>
152
+ <div class="refsect2">
153
+ <a name="cr-rgb-dump"></a><h3>cr_rgb_dump ()</h3>
154
+ <pre class="programlisting"><span class="returnvalue">void</span> cr_rgb_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_this</code></em>,
155
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>);</pre>
156
+ <p>
157
+ Dumps the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>
158
+ to a file.
159
+ </p>
160
+ <div class="variablelist"><table border="0">
161
+ <col align="left" valign="top">
162
+ <tbody>
163
+ <tr>
164
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
165
+ <td>the "this pointer" of
166
+ the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</td>
167
+ </tr>
168
+ <tr>
169
+ <td><p><span class="term"><em class="parameter"><code>a_fp</code></em> :</span></p></td>
170
+ <td>the destination file pointer.</td>
171
+ </tr>
172
+ </tbody>
173
+ </table></div>
174
+ </div>
175
+ <hr>
176
+ <div class="refsect2">
177
+ <a name="cr-rgb-is-set-to-inherit"></a><h3>cr_rgb_is_set_to_inherit ()</h3>
178
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cr_rgb_is_set_to_inherit (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_this</code></em>);</pre>
179
+ <p>
180
+ <em class="parameter"><code>a_this</code></em>: the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.
181
+ </p>
182
+ <div class="variablelist"><table border="0">
183
+ <col align="left" valign="top">
184
+ <tbody><tr>
185
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
186
+ <td>TRUE if the rgb is set to the value "inherit", FALSE otherwise.</td>
187
+ </tr></tbody>
188
+ </table></div>
189
+ </div>
190
+ <hr>
191
+ <div class="refsect2">
192
+ <a name="cr-rgb-is-set-to-transparent"></a><h3>cr_rgb_is_set_to_transparent ()</h3>
193
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> cr_rgb_is_set_to_transparent (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_this</code></em>);</pre>
194
+ <p>
195
+ Tests if the the rgb is set to the
196
+ value "transparent" or not.
197
+ </p>
198
+ <div class="variablelist"><table border="0">
199
+ <col align="left" valign="top">
200
+ <tbody>
201
+ <tr>
202
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
203
+ <td>the current instance of
204
+ <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>
205
+ </td>
206
+ </tr>
207
+ <tr>
208
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
209
+ <td>TRUE if the rgb has been set to
210
+ transparent, FALSE otherwise.</td>
211
+ </tr>
212
+ </tbody>
213
+ </table></div>
214
+ </div>
215
+ <hr>
216
+ <div class="refsect2">
217
+ <a name="cr-rgb-new"></a><h3>cr_rgb_new ()</h3>
218
+ <pre class="programlisting"><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> * cr_rgb_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
219
+ <p>
220
+ The default constructor of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.
221
+ </p>
222
+ <div class="variablelist"><table border="0">
223
+ <col align="left" valign="top">
224
+ <tbody><tr>
225
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
226
+ <td>the newly built instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>
227
+ </td>
228
+ </tr></tbody>
229
+ </table></div>
230
+ </div>
231
+ <hr>
232
+ <div class="refsect2">
233
+ <a name="cr-rgb-new-with-vals"></a><h3>cr_rgb_new_with_vals ()</h3>
234
+ <pre class="programlisting"><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> * cr_rgb_new_with_vals (<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_red</code></em>,
235
+ <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_green</code></em>,
236
+ <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_blue</code></em>,
237
+ <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_is_percentage</code></em>);</pre>
238
+ <p>
239
+ A constructor of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.
240
+ </p>
241
+ <div class="variablelist"><table border="0">
242
+ <col align="left" valign="top">
243
+ <tbody>
244
+ <tr>
245
+ <td><p><span class="term"><em class="parameter"><code>a_red</code></em> :</span></p></td>
246
+ <td>the red component of the color.</td>
247
+ </tr>
248
+ <tr>
249
+ <td><p><span class="term"><em class="parameter"><code>a_green</code></em> :</span></p></td>
250
+ <td>the green component of the color.</td>
251
+ </tr>
252
+ <tr>
253
+ <td><p><span class="term"><em class="parameter"><code>a_blue</code></em> :</span></p></td>
254
+ <td>the blue component of the color.</td>
255
+ </tr>
256
+ <tr>
257
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
258
+ <td>the newly built instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</td>
259
+ </tr>
260
+ </tbody>
261
+ </table></div>
262
+ </div>
263
+ <hr>
264
+ <div class="refsect2">
265
+ <a name="cr-rgb-parse-from-buf"></a><h3>cr_rgb_parse_from_buf ()</h3>
266
+ <pre class="programlisting"><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> * cr_rgb_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_str</code></em>,
267
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
268
+ <p>
269
+ Parses a text buffer that contains a rgb color
270
+ </p>
271
+ <div class="variablelist"><table border="0">
272
+ <col align="left" valign="top">
273
+ <tbody>
274
+ <tr>
275
+ <td><p><span class="term"><em class="parameter"><code>a_str</code></em> :</span></p></td>
276
+ <td>a string that contains a color description</td>
277
+ </tr>
278
+ <tr>
279
+ <td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
280
+ <td>the encoding of a_str</td>
281
+ </tr>
282
+ <tr>
283
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
284
+ <td>the parsed color, or NULL in case of error</td>
285
+ </tr>
286
+ </tbody>
287
+ </table></div>
288
+ </div>
289
+ <hr>
290
+ <div class="refsect2">
291
+ <a name="cr-rgb-set"></a><h3>cr_rgb_set ()</h3>
292
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_rgb_set (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
293
+ <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_red</code></em>,
294
+ <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_green</code></em>,
295
+ <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_blue</code></em>,
296
+ <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_is_percentage</code></em>);</pre>
297
+ <p>
298
+ Sets rgb values to the RGB.
299
+ </p>
300
+ <div class="variablelist"><table border="0">
301
+ <col align="left" valign="top">
302
+ <tbody>
303
+ <tr>
304
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
305
+ <td>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</td>
306
+ </tr>
307
+ <tr>
308
+ <td><p><span class="term"><em class="parameter"><code>a_red</code></em> :</span></p></td>
309
+ <td>the red value.</td>
310
+ </tr>
311
+ <tr>
312
+ <td><p><span class="term"><em class="parameter"><code>a_green</code></em> :</span></p></td>
313
+ <td>the green value.</td>
314
+ </tr>
315
+ <tr>
316
+ <td><p><span class="term"><em class="parameter"><code>a_blue</code></em> :</span></p></td>
317
+ <td>the blue value.</td>
318
+ </tr>
319
+ <tr>
320
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
321
+ <td>CR_OK upon successful completion, an error code
322
+ otherwise.</td>
323
+ </tr>
324
+ </tbody>
325
+ </table></div>
326
+ </div>
327
+ <hr>
328
+ <div class="refsect2">
329
+ <a name="cr-rgb-set-from-hex-str"></a><h3>cr_rgb_set_from_hex_str ()</h3>
330
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_rgb_set_from_hex_str (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
331
+ <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_hex_value</code></em>);</pre>
332
+ <div class="variablelist"><table border="0">
333
+ <col align="left" valign="top">
334
+ <tbody>
335
+ <tr>
336
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
337
+ <td>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>
338
+ </td>
339
+ </tr>
340
+ <tr>
341
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
342
+ <td>CR_OK upon successful completion.</td>
343
+ </tr>
344
+ </tbody>
345
+ </table></div>
346
+ </div>
347
+ <hr>
348
+ <div class="refsect2">
349
+ <a name="cr-rgb-set-from-name"></a><h3>cr_rgb_set_from_name ()</h3>
350
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_rgb_set_from_name (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
351
+ <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_color_name</code></em>);</pre>
352
+ <div class="variablelist"><table border="0">
353
+ <col align="left" valign="top">
354
+ <tbody>
355
+ <tr>
356
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
357
+ <td>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>
358
+ </td>
359
+ </tr>
360
+ <tr>
361
+ <td><p><span class="term"><em class="parameter"><code>a_color_name</code></em> :</span></p></td>
362
+ <td>the color name</td>
363
+ </tr>
364
+ <tr>
365
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
366
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
367
+ </tr>
368
+ </tbody>
369
+ </table></div>
370
+ </div>
371
+ <hr>
372
+ <div class="refsect2">
373
+ <a name="cr-rgb-set-from-rgb"></a><h3>cr_rgb_set_from_rgb ()</h3>
374
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_rgb_set_from_rgb (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
375
+ <em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_rgb</code></em>);</pre>
376
+ <p>
377
+ Sets the rgb from an other one.
378
+ </p>
379
+ <div class="variablelist"><table border="0">
380
+ <col align="left" valign="top">
381
+ <tbody>
382
+ <tr>
383
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
384
+ <td>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</td>
385
+ </tr>
386
+ <tr>
387
+ <td><p><span class="term"><em class="parameter"><code>a_rgb</code></em> :</span></p></td>
388
+ <td>the rgb to "copy"</td>
389
+ </tr>
390
+ <tr>
391
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
392
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
393
+ </tr>
394
+ </tbody>
395
+ </table></div>
396
+ </div>
397
+ <hr>
398
+ <div class="refsect2">
399
+ <a name="cr-rgb-set-from-term"></a><h3>cr_rgb_set_from_term ()</h3>
400
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_rgb_set_from_term (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
401
+ <em class="parameter"><code>const <span class="type">struct _CRTerm</span> *a_value</code></em>);</pre>
402
+ <p>
403
+ Set the rgb from a terminal symbol
404
+ </p>
405
+ <div class="variablelist"><table border="0">
406
+ <col align="left" valign="top">
407
+ <tbody>
408
+ <tr>
409
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
410
+ <td>the instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> to set</td>
411
+ </tr>
412
+ <tr>
413
+ <td><p><span class="term"><em class="parameter"><code>a_value</code></em> :</span></p></td>
414
+ <td>the terminal from which to set</td>
415
+ </tr>
416
+ <tr>
417
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
418
+ <td>CR_OK upon successful completion, an error code otherwise.</td>
419
+ </tr>
420
+ </tbody>
421
+ </table></div>
422
+ </div>
423
+ <hr>
424
+ <div class="refsect2">
425
+ <a name="cr-rgb-set-to-inherit"></a><h3>cr_rgb_set_to_inherit ()</h3>
426
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_rgb_set_to_inherit (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
427
+ <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_inherit</code></em>);</pre>
428
+ <p>
429
+ sets the value of the rgb to inherit.
430
+ Look at the css spec from chapter 6.1 to 6.2 to understand
431
+ the meaning of "inherit".
432
+ </p>
433
+ <div class="variablelist"><table border="0">
434
+ <col align="left" valign="top">
435
+ <tbody>
436
+ <tr>
437
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
438
+ <td>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>
439
+ </td>
440
+ </tr>
441
+ <tr>
442
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
443
+ <td>CR_OK upon succesful completion, an error code otherwise.</td>
444
+ </tr>
445
+ </tbody>
446
+ </table></div>
447
+ </div>
448
+ <hr>
449
+ <div class="refsect2">
450
+ <a name="cr-rgb-set-to-transparent"></a><h3>cr_rgb_set_to_transparent ()</h3>
451
+ <pre class="programlisting">enum <span class="returnvalue">CRStatus</span> cr_rgb_set_to_transparent (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> *a_this</code></em>,
452
+ <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_is_transparent</code></em>);</pre>
453
+ <p>
454
+ Sets the rgb to the "transparent" value (or not)
455
+ </p>
456
+ <div class="variablelist"><table border="0">
457
+ <col align="left" valign="top">
458
+ <tbody>
459
+ <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-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>
462
+ </td>
463
+ </tr>
464
+ <tr>
465
+ <td><p><span class="term"><em class="parameter"><code>a_is_transparent</code></em> :</span></p></td>
466
+ <td>set to transparent or not.</td>
467
+ </tr>
468
+ <tr>
469
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
470
+ <td>CR_OK upon successfull completion, an error code otherwise.</td>
471
+ </tr>
472
+ </tbody>
473
+ </table></div>
474
+ </div>
475
+ <hr>
476
+ <div class="refsect2">
477
+ <a name="cr-rgb-to-string"></a><h3>cr_rgb_to_string ()</h3>
478
+ <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * cr_rgb_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> const *a_this</code></em>);</pre>
479
+ <p>
480
+ Serializes the rgb into a zero terminated string.
481
+ </p>
482
+ <div class="variablelist"><table border="0">
483
+ <col align="left" valign="top">
484
+ <tbody>
485
+ <tr>
486
+ <td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
487
+ <td>the instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> to serialize.</td>
488
+ </tr>
489
+ <tr>
490
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
491
+ <td>the zero terminated string containing the serialized
492
+ rgb. MUST BE FREED by the caller using <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.</td>
493
+ </tr>
494
+ </tbody>
495
+ </table></div>
496
+ </div>
497
+ </div>
498
+ </div>
499
+ <div class="footer">
500
+ <hr>
501
+ Generated by GTK-Doc V1.18</div>
502
+ </body>
503
+ </html>