rsvg2 3.0.7-x86-mingw32 → 3.0.8-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -2
  3. data/ext/rsvg2/extconf.rb +1 -0
  4. data/lib/2.2/rsvg2.so +0 -0
  5. data/lib/2.3/rsvg2.so +0 -0
  6. data/vendor/local/bin/croco-0.6-config +2 -2
  7. data/vendor/local/bin/csslint-0.6.exe +0 -0
  8. data/vendor/local/bin/libcroco-0.6-3.dll +0 -0
  9. data/vendor/local/bin/librsvg-2-2.dll +0 -0
  10. data/vendor/local/bin/rsvg-convert.exe +0 -0
  11. data/vendor/local/include/libcroco-0.6/libcroco/libcroco-config.h +2 -2
  12. data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +26 -4
  13. data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
  14. data/vendor/local/lib/libcroco-0.6.a +0 -0
  15. data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
  16. data/vendor/local/lib/libcroco-0.6.la +3 -3
  17. data/vendor/local/lib/librsvg-2.a +0 -0
  18. data/vendor/local/lib/librsvg-2.dll.a +0 -0
  19. data/vendor/local/lib/librsvg-2.la +2 -2
  20. data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +1 -1
  21. data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +1 -1
  22. data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +2 -2
  23. data/vendor/local/share/gtk-doc/html/libcroco/ch01.html +13 -14
  24. data/vendor/local/share/gtk-doc/html/libcroco/home.png +0 -0
  25. data/vendor/local/share/gtk-doc/html/libcroco/index.html +5 -6
  26. data/vendor/local/share/gtk-doc/html/libcroco/left-insensitive.png +0 -0
  27. data/vendor/local/share/gtk-doc/html/libcroco/left.png +0 -0
  28. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-additional-sel.html +360 -221
  29. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-attr-sel.html +209 -132
  30. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-cascade.html +251 -164
  31. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-declaration.html +693 -449
  32. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-doc-handler.html +365 -259
  33. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-enc-handler.html +148 -107
  34. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-fonts.html +805 -463
  35. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-input.html +1109 -753
  36. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-num.html +267 -180
  37. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-om-parser.html +351 -255
  38. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parser.html +913 -644
  39. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parsing-location.html +234 -124
  40. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-prop-list.html +437 -271
  41. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-pseudo.html +139 -86
  42. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-rgb.html +517 -352
  43. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-sel-eng.html +326 -252
  44. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-selector.html +219 -186
  45. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-simple-sel.html +219 -176
  46. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-statement.html +1231 -1220
  47. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-string.html +142 -83
  48. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-style.html +351 -256
  49. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-stylesheet.html +155 -99
  50. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-term.html +313 -207
  51. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-tknzr.html +321 -210
  52. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-token.html +465 -284
  53. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-utils.html +507 -231
  54. data/vendor/local/share/gtk-doc/html/libcroco/libcroco-libcroco-config.html +54 -40
  55. data/vendor/local/share/gtk-doc/html/libcroco/libcroco.devhelp2 +465 -426
  56. data/vendor/local/share/gtk-doc/html/libcroco/right-insensitive.png +0 -0
  57. data/vendor/local/share/gtk-doc/html/libcroco/right.png +0 -0
  58. data/vendor/local/share/gtk-doc/html/libcroco/style.css +317 -104
  59. data/vendor/local/share/gtk-doc/html/libcroco/up-insensitive.png +0 -0
  60. data/vendor/local/share/gtk-doc/html/libcroco/up.png +0 -0
  61. data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1039 -724
  62. data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +29 -32
  63. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +16 -19
  64. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +13 -16
  65. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +14 -17
  66. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +15 -20
  67. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +12 -15
  68. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +17 -22
  69. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +18 -23
  70. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +31 -36
  71. data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +79 -84
  72. data/vendor/local/share/gtk-doc/html/rsvg-2.0/home.png +0 -0
  73. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +4 -4
  74. data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +31 -28
  75. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left-insensitive.png +0 -0
  76. data/vendor/local/share/gtk-doc/html/rsvg-2.0/left.png +0 -0
  77. data/vendor/local/share/gtk-doc/html/rsvg-2.0/licence.html +9 -9
  78. data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +15 -15
  79. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right-insensitive.png +0 -0
  80. data/vendor/local/share/gtk-doc/html/rsvg-2.0/right.png +0 -0
  81. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +55 -59
  82. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +247 -190
  83. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +336 -239
  84. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +95 -70
  85. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +77 -37
  86. data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +9 -9
  87. data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +314 -104
  88. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
  89. data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
  90. metadata +14 -10
  91. data/lib/2.0/rsvg2.so +0 -0
  92. data/lib/2.1/rsvg2.so +0 -0
  93. data/vendor/local/share/gtk-doc/html/libcroco/index.sgml +0 -582
@@ -2,30 +2,26 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>cr-rgb</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>cr-rgb: Libcroco Reference Manual</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Libcroco Reference Manual">
8
8
  <link rel="up" href="ch01.html" title="Extensive APIs description">
9
9
  <link rel="prev" href="libcroco-cr-pseudo.html" title="cr-pseudo">
10
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)">
11
+ <meta name="generator" content="GTK-Doc V1.24.1 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
- <tr valign="middle">
17
- <td><a accesskey="p" href="libcroco-cr-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>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18
+ <a href="#libcroco-cr-rgb.description" class="shortcut">Description</a></span>
19
+ </td>
20
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21
+ <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22
+ <td><a accesskey="p" href="libcroco-cr-pseudo.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23
+ <td><a accesskey="n" href="libcroco-cr-sel-eng.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24
+ </tr></table>
29
25
  <div class="refentry">
30
26
  <a name="libcroco-cr-rgb"></a><div class="titlepage"></div>
31
27
  <div class="refnamediv"><table width="100%"><tr>
@@ -33,471 +29,640 @@
33
29
  <h2><span class="refentrytitle"><a name="libcroco-cr-rgb.top_of_page"></a>cr-rgb</span></h2>
34
30
  <p>cr-rgb</p>
35
31
  </td>
36
- <td valign="top" align="right"></td>
32
+ <td class="gallery_image" valign="top" align="right"></td>
37
33
  </tr></table></div>
38
- <div class="refsynopsisdiv">
39
- <a name="libcroco-cr-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
34
  <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">
35
+ <a name="libcroco-cr-rgb.functions"></a><h2>Functions</h2>
36
+ <div class="informaltable"><table width="100%" border="0">
37
+ <colgroup>
38
+ <col width="150px" class="functions_return">
39
+ <col class="functions_name">
40
+ </colgroup>
114
41
  <tbody>
115
42
  <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>
43
+ <td class="function_type">
44
+ <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> *
45
+ </td>
46
+ <td class="function_name">
47
+ <a class="link" href="libcroco-cr-rgb.html#cr-rgb-new" title="cr_rgb_new ()">cr_rgb_new</a> <span class="c_punctuation">()</span>
48
+ </td>
49
+ </tr>
50
+ <tr>
51
+ <td class="function_type">
52
+ <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> *
53
+ </td>
54
+ <td class="function_name">
55
+ <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> <span class="c_punctuation">()</span>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td class="function_type">
60
+ <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> *
61
+ </td>
62
+ <td class="function_name">
63
+ <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> <span class="c_punctuation">()</span>
64
+ </td>
65
+ </tr>
66
+ <tr>
67
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
68
+ </td>
69
+ <td class="function_name">
70
+ <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> <span class="c_punctuation">()</span>
118
71
  </td>
119
72
  </tr>
120
73
  <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>
74
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
75
+ </td>
76
+ <td class="function_name">
77
+ <a class="link" href="libcroco-cr-rgb.html#cr-rgb-set" title="cr_rgb_set ()">cr_rgb_set</a> <span class="c_punctuation">()</span>
78
+ </td>
79
+ </tr>
80
+ <tr>
81
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
82
+ </td>
83
+ <td class="function_name">
84
+ <a class="link" href="libcroco-cr-rgb.html#cr-rgb-copy" title="cr_rgb_copy ()">cr_rgb_copy</a> <span class="c_punctuation">()</span>
85
+ </td>
86
+ </tr>
87
+ <tr>
88
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
89
+ </td>
90
+ <td class="function_name">
91
+ <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> <span class="c_punctuation">()</span>
92
+ </td>
93
+ </tr>
94
+ <tr>
95
+ <td class="function_type">
96
+ <span class="returnvalue">gboolean</span>
97
+ </td>
98
+ <td class="function_name">
99
+ <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> <span class="c_punctuation">()</span>
100
+ </td>
101
+ </tr>
102
+ <tr>
103
+ <td class="function_type">
104
+ <span class="returnvalue">gboolean</span>
105
+ </td>
106
+ <td class="function_name">
107
+ <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> <span class="c_punctuation">()</span>
108
+ </td>
109
+ </tr>
110
+ <tr>
111
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
112
+ </td>
113
+ <td class="function_name">
114
+ <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> <span class="c_punctuation">()</span>
115
+ </td>
116
+ </tr>
117
+ <tr>
118
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
119
+ </td>
120
+ <td class="function_name">
121
+ <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> <span class="c_punctuation">()</span>
122
+ </td>
123
+ </tr>
124
+ <tr>
125
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
126
+ </td>
127
+ <td class="function_name">
128
+ <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> <span class="c_punctuation">()</span>
129
+ </td>
130
+ </tr>
131
+ <tr>
132
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
133
+ </td>
134
+ <td class="function_name">
135
+ <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> <span class="c_punctuation">()</span>
136
+ </td>
137
+ </tr>
138
+ <tr>
139
+ <td class="function_type">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
140
+ </td>
141
+ <td class="function_name">
142
+ <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> <span class="c_punctuation">()</span>
143
+ </td>
144
+ </tr>
145
+ <tr>
146
+ <td class="function_type">
147
+ <span class="returnvalue">guchar</span> *
148
+ </td>
149
+ <td class="function_name">
150
+ <a class="link" href="libcroco-cr-rgb.html#cr-rgb-to-string" title="cr_rgb_to_string ()">cr_rgb_to_string</a> <span class="c_punctuation">()</span>
151
+ </td>
152
+ </tr>
153
+ <tr>
154
+ <td class="function_type">
155
+ <span class="returnvalue">void</span>
156
+ </td>
157
+ <td class="function_name">
158
+ <a class="link" href="libcroco-cr-rgb.html#cr-rgb-dump" title="cr_rgb_dump ()">cr_rgb_dump</a> <span class="c_punctuation">()</span>
159
+ </td>
160
+ </tr>
161
+ <tr>
162
+ <td class="function_type">
163
+ <span class="returnvalue">void</span>
164
+ </td>
165
+ <td class="function_name">
166
+ <a class="link" href="libcroco-cr-rgb.html#cr-rgb-destroy" title="cr_rgb_destroy ()">cr_rgb_destroy</a> <span class="c_punctuation">()</span>
167
+ </td>
123
168
  </tr>
124
169
  </tbody>
125
170
  </table></div>
126
171
  </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">
172
+ <div class="refsect1">
173
+ <a name="libcroco-cr-rgb.other"></a><h2>Types and Values</h2>
174
+ <div class="informaltable"><table width="100%" border="0">
175
+ <colgroup>
176
+ <col width="150px" class="name">
177
+ <col class="description">
178
+ </colgroup>
144
179
  <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>
180
+ <td class="datatype_keyword">struct</td>
181
+ <td class="function_name"><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb">CRRgb</a></td>
148
182
  </tr></tbody>
149
183
  </table></div>
150
184
  </div>
185
+ <div class="refsect1">
186
+ <a name="libcroco-cr-rgb.description"></a><h2>Description</h2>
187
+ </div>
188
+ <div class="refsect1">
189
+ <a name="libcroco-cr-rgb.functions_details"></a><h2>Functions</h2>
190
+ <div class="refsect2">
191
+ <a name="cr-rgb-new"></a><h3>cr_rgb_new ()</h3>
192
+ <pre class="programlisting"><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> *
193
+ cr_rgb_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
194
+ <p>The default constructor of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</p>
195
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a></p>
196
+ </div>
151
197
  <hr>
152
198
  <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">
199
+ <a name="cr-rgb-new-with-vals"></a><h3>cr_rgb_new_with_vals ()</h3>
200
+ <pre class="programlisting"><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> *
201
+ cr_rgb_new_with_vals (<em class="parameter"><code><span class="type">gulong</span> a_red</code></em>,
202
+ <em class="parameter"><code><span class="type">gulong</span> a_green</code></em>,
203
+ <em class="parameter"><code><span class="type">gulong</span> a_blue</code></em>,
204
+ <em class="parameter"><code><span class="type">gboolean</span> a_is_percentage</code></em>);</pre>
205
+ <p>A constructor of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</p>
206
+ <p>Returns the newly built instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</p>
207
+ <div class="refsect3">
208
+ <a name="id-1.2.16.6.3.6"></a><h4>Parameters</h4>
209
+ <div class="informaltable"><table width="100%" border="0">
210
+ <colgroup>
211
+ <col width="150px" class="parameters_name">
212
+ <col class="parameters_description">
213
+ <col width="200px" class="parameters_annotations">
214
+ </colgroup>
162
215
  <tbody>
163
216
  <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>
217
+ <td class="parameter_name"><p>a_red</p></td>
218
+ <td class="parameter_description"><p>the red component of the color.</p></td>
219
+ <td class="parameter_annotations"> </td>
220
+ </tr>
221
+ <tr>
222
+ <td class="parameter_name"><p>a_green</p></td>
223
+ <td class="parameter_description"><p>the green component of the color.</p></td>
224
+ <td class="parameter_annotations"> </td>
225
+ </tr>
226
+ <tr>
227
+ <td class="parameter_name"><p>a_blue</p></td>
228
+ <td class="parameter_description"><p>the blue component of the color.</p></td>
229
+ <td class="parameter_annotations"> </td>
167
230
  </tr>
168
231
  <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>
232
+ <td class="parameter_name"><p>a_unit</p></td>
233
+ <td class="parameter_description"><p>the unit of the rgb values.
234
+ (either percentage or integer values)</p></td>
235
+ <td class="parameter_annotations"> </td>
171
236
  </tr>
172
237
  </tbody>
173
238
  </table></div>
174
239
  </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
240
  </div>
190
241
  <hr>
191
242
  <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">
243
+ <a name="cr-rgb-parse-from-buf"></a><h3>cr_rgb_parse_from_buf ()</h3>
244
+ <pre class="programlisting"><a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="returnvalue">CRRgb</span></a> *
245
+ cr_rgb_parse_from_buf (<em class="parameter"><code>const <span class="type">guchar</span> *a_str</code></em>,
246
+ <em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
247
+ <p>Parses a text buffer that contains a rgb color</p>
248
+ <p>Returns the parsed color, or NULL in case of error</p>
249
+ <div class="refsect3">
250
+ <a name="id-1.2.16.6.4.6"></a><h4>Parameters</h4>
251
+ <div class="informaltable"><table width="100%" border="0">
252
+ <colgroup>
253
+ <col width="150px" class="parameters_name">
254
+ <col class="parameters_description">
255
+ <col width="200px" class="parameters_annotations">
256
+ </colgroup>
200
257
  <tbody>
201
258
  <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>
259
+ <td class="parameter_name"><p>a_str</p></td>
260
+ <td class="parameter_description"><p>a string that contains a color description</p></td>
261
+ <td class="parameter_annotations"> </td>
206
262
  </tr>
207
263
  <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>
264
+ <td class="parameter_name"><p>a_enc</p></td>
265
+ <td class="parameter_description"><p>the encoding of a_str</p></td>
266
+ <td class="parameter_annotations"> </td>
211
267
  </tr>
212
268
  </tbody>
213
269
  </table></div>
214
270
  </div>
271
+ </div>
215
272
  <hr>
216
273
  <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">
274
+ <a name="cr-rgb-compute-from-percentage"></a><h3>cr_rgb_compute_from_percentage ()</h3>
275
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
276
+ 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>
277
+ <p>If the rgb values are expressed in percentage,
278
+ compute their real value.</p>
279
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
280
+ <div class="refsect3">
281
+ <a name="id-1.2.16.6.5.6"></a><h4>Parameters</h4>
282
+ <div class="informaltable"><table width="100%" border="0">
283
+ <colgroup>
284
+ <col width="150px" class="parameters_name">
285
+ <col class="parameters_description">
286
+ <col width="200px" class="parameters_annotations">
287
+ </colgroup>
224
288
  <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>
289
+ <td class="parameter_name"><p>a_this</p></td>
290
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a></p></td>
291
+ <td class="parameter_annotations"> </td>
228
292
  </tr></tbody>
229
293
  </table></div>
230
294
  </div>
295
+ </div>
231
296
  <hr>
232
297
  <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">
298
+ <a name="cr-rgb-set"></a><h3>cr_rgb_set ()</h3>
299
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
300
+ 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>,
301
+ <em class="parameter"><code><span class="type">gulong</span> a_red</code></em>,
302
+ <em class="parameter"><code><span class="type">gulong</span> a_green</code></em>,
303
+ <em class="parameter"><code><span class="type">gulong</span> a_blue</code></em>,
304
+ <em class="parameter"><code><span class="type">gboolean</span> a_is_percentage</code></em>);</pre>
305
+ <p>Sets rgb values to the RGB.</p>
306
+ <p>Returns CR_OK upon successful completion, an error code
307
+ otherwise.</p>
308
+ <div class="refsect3">
309
+ <a name="id-1.2.16.6.6.6"></a><h4>Parameters</h4>
310
+ <div class="informaltable"><table width="100%" border="0">
311
+ <colgroup>
312
+ <col width="150px" class="parameters_name">
313
+ <col class="parameters_description">
314
+ <col width="200px" class="parameters_annotations">
315
+ </colgroup>
243
316
  <tbody>
244
317
  <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>
318
+ <td class="parameter_name"><p>a_this</p></td>
319
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</p></td>
320
+ <td class="parameter_annotations"> </td>
247
321
  </tr>
248
322
  <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>
323
+ <td class="parameter_name"><p>a_red</p></td>
324
+ <td class="parameter_description"><p>the red value.</p></td>
325
+ <td class="parameter_annotations"> </td>
251
326
  </tr>
252
327
  <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>
328
+ <td class="parameter_name"><p>a_green</p></td>
329
+ <td class="parameter_description"><p>the green value.</p></td>
330
+ <td class="parameter_annotations"> </td>
255
331
  </tr>
256
332
  <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>
333
+ <td class="parameter_name"><p>a_blue</p></td>
334
+ <td class="parameter_description"><p>the blue value.</p></td>
335
+ <td class="parameter_annotations"> </td>
259
336
  </tr>
260
337
  </tbody>
261
338
  </table></div>
262
339
  </div>
340
+ </div>
263
341
  <hr>
264
342
  <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>
343
+ <a name="cr-rgb-copy"></a><h3>cr_rgb_copy ()</h3>
344
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
345
+ 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>,
346
+ <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>
347
+ </div>
348
+ <hr>
349
+ <div class="refsect2">
350
+ <a name="cr-rgb-set-to-inherit"></a><h3>cr_rgb_set_to_inherit ()</h3>
351
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
352
+ 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>,
353
+ <em class="parameter"><code><span class="type">gboolean</span> a_inherit</code></em>);</pre>
354
+ <p>sets the value of the rgb to inherit.
355
+ Look at the css spec from chapter 6.1 to 6.2 to understand
356
+ the meaning of "inherit".</p>
357
+ <p>Returns CR_OK upon succesful completion, an error code otherwise.</p>
358
+ <div class="refsect3">
359
+ <a name="id-1.2.16.6.8.6"></a><h4>Parameters</h4>
360
+ <div class="informaltable"><table width="100%" border="0">
361
+ <colgroup>
362
+ <col width="150px" class="parameters_name">
363
+ <col class="parameters_description">
364
+ <col width="200px" class="parameters_annotations">
365
+ </colgroup>
366
+ <tbody><tr>
367
+ <td class="parameter_name"><p>a_this</p></td>
368
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a></p></td>
369
+ <td class="parameter_annotations"> </td>
370
+ </tr></tbody>
287
371
  </table></div>
288
372
  </div>
373
+ </div>
289
374
  <hr>
290
375
  <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>
376
+ <a name="cr-rgb-is-set-to-inherit"></a><h3>cr_rgb_is_set_to_inherit ()</h3>
377
+ <pre class="programlisting"><span class="returnvalue">gboolean</span>
378
+ 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>
379
+ <p><em class="parameter"><code>a_this</code></em>
380
+ : the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</p>
381
+ <p>Returns TRUE if the rgb is set to the value "inherit", FALSE otherwise.</p>
382
+ </div>
383
+ <hr>
384
+ <div class="refsect2">
385
+ <a name="cr-rgb-is-set-to-transparent"></a><h3>cr_rgb_is_set_to_transparent ()</h3>
386
+ <pre class="programlisting"><span class="returnvalue">gboolean</span>
387
+ 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>
388
+ <p>Tests if the the rgb is set to the
389
+ value "transparent" or not.</p>
390
+ <p>Returns TRUE if the rgb has been set to
391
+ transparent, FALSE otherwise.</p>
392
+ <div class="refsect3">
393
+ <a name="id-1.2.16.6.10.6"></a><h4>Parameters</h4>
394
+ <div class="informaltable"><table width="100%" border="0">
395
+ <colgroup>
396
+ <col width="150px" class="parameters_name">
397
+ <col class="parameters_description">
398
+ <col width="200px" class="parameters_annotations">
399
+ </colgroup>
400
+ <tbody><tr>
401
+ <td class="parameter_name"><p>a_this</p></td>
402
+ <td class="parameter_description"><p>the current instance of
403
+ <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a></p></td>
404
+ <td class="parameter_annotations"> </td>
405
+ </tr></tbody>
325
406
  </table></div>
326
407
  </div>
408
+ </div>
327
409
  <hr>
328
410
  <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">
411
+ <a name="cr-rgb-set-to-transparent"></a><h3>cr_rgb_set_to_transparent ()</h3>
412
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
413
+ 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>,
414
+ <em class="parameter"><code><span class="type">gboolean</span> a_is_transparent</code></em>);</pre>
415
+ <p>Sets the rgb to the "transparent" value (or not)
416
+ Returns CR_OK upon successfull completion, an error code otherwise.</p>
417
+ <div class="refsect3">
418
+ <a name="id-1.2.16.6.11.5"></a><h4>Parameters</h4>
419
+ <div class="informaltable"><table width="100%" border="0">
420
+ <colgroup>
421
+ <col width="150px" class="parameters_name">
422
+ <col class="parameters_description">
423
+ <col width="200px" class="parameters_annotations">
424
+ </colgroup>
334
425
  <tbody>
335
426
  <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>
427
+ <td class="parameter_name"><p>a_this</p></td>
428
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a></p></td>
429
+ <td class="parameter_annotations"> </td>
339
430
  </tr>
340
431
  <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>
432
+ <td class="parameter_name"><p>a_is_transparent</p></td>
433
+ <td class="parameter_description"><p>set to transparent or not.</p></td>
434
+ <td class="parameter_annotations"> </td>
343
435
  </tr>
344
436
  </tbody>
345
437
  </table></div>
346
438
  </div>
439
+ </div>
347
440
  <hr>
348
441
  <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">
442
+ <a name="cr-rgb-set-from-rgb"></a><h3>cr_rgb_set_from_rgb ()</h3>
443
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
444
+ 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>,
445
+ <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>
446
+ <p>Sets the rgb from an other one.</p>
447
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
448
+ <div class="refsect3">
449
+ <a name="id-1.2.16.6.12.6"></a><h4>Parameters</h4>
450
+ <div class="informaltable"><table width="100%" border="0">
451
+ <colgroup>
452
+ <col width="150px" class="parameters_name">
453
+ <col class="parameters_description">
454
+ <col width="200px" class="parameters_annotations">
455
+ </colgroup>
354
456
  <tbody>
355
457
  <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>
458
+ <td class="parameter_name"><p>a_this</p></td>
459
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</p></td>
460
+ <td class="parameter_annotations"> </td>
363
461
  </tr>
364
462
  <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>
463
+ <td class="parameter_name"><p>a_rgb</p></td>
464
+ <td class="parameter_description"><p>the rgb to "copy"</p></td>
465
+ <td class="parameter_annotations"> </td>
367
466
  </tr>
368
467
  </tbody>
369
468
  </table></div>
370
469
  </div>
470
+ </div>
371
471
  <hr>
372
472
  <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">
473
+ <a name="cr-rgb-set-from-name"></a><h3>cr_rgb_set_from_name ()</h3>
474
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
475
+ 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>,
476
+ <em class="parameter"><code>const <span class="type">guchar</span> *a_color_name</code></em>);</pre>
477
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
478
+ <div class="refsect3">
479
+ <a name="id-1.2.16.6.13.5"></a><h4>Parameters</h4>
480
+ <div class="informaltable"><table width="100%" border="0">
481
+ <colgroup>
482
+ <col width="150px" class="parameters_name">
483
+ <col class="parameters_description">
484
+ <col width="200px" class="parameters_annotations">
485
+ </colgroup>
381
486
  <tbody>
382
487
  <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>
488
+ <td class="parameter_name"><p>a_this</p></td>
489
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a></p></td>
490
+ <td class="parameter_annotations"> </td>
385
491
  </tr>
386
492
  <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>
493
+ <td class="parameter_name"><p>a_color_name</p></td>
494
+ <td class="parameter_description"><p>the color name</p></td>
495
+ <td class="parameter_annotations"> </td>
393
496
  </tr>
394
497
  </tbody>
395
498
  </table></div>
396
499
  </div>
500
+ </div>
397
501
  <hr>
398
502
  <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">
503
+ <a name="cr-rgb-set-from-hex-str"></a><h3>cr_rgb_set_from_hex_str ()</h3>
504
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
505
+ 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>,
506
+ <em class="parameter"><code>const <span class="type">guchar</span> *a_hex_value</code></em>);</pre>
507
+ <p>Returns CR_OK upon successful completion.</p>
508
+ <div class="refsect3">
509
+ <a name="id-1.2.16.6.14.5"></a><h4>Parameters</h4>
510
+ <div class="informaltable"><table width="100%" border="0">
511
+ <colgroup>
512
+ <col width="150px" class="parameters_name">
513
+ <col class="parameters_description">
514
+ <col width="200px" class="parameters_annotations">
515
+ </colgroup>
407
516
  <tbody>
408
517
  <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>
518
+ <td class="parameter_name"><p>a_this</p></td>
519
+ <td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a></p></td>
520
+ <td class="parameter_annotations"> </td>
411
521
  </tr>
412
522
  <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>
523
+ <td class="parameter_name"><p>a_hex</p></td>
524
+ <td class="parameter_description"><p>the hexadecimal value to set.</p></td>
525
+ <td class="parameter_annotations"> </td>
419
526
  </tr>
420
527
  </tbody>
421
528
  </table></div>
422
529
  </div>
530
+ </div>
423
531
  <hr>
424
532
  <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">
533
+ <a name="cr-rgb-set-from-term"></a><h3>cr_rgb_set_from_term ()</h3>
534
+ <pre class="programlisting">enum <a class="link" href="libcroco-cr-utils.html#CRStatus" title="enum CRStatus"><span class="returnvalue">CRStatus</span></a>
535
+ 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>,
536
+ <em class="parameter"><code>const <span class="type">struct _CRTerm</span> *a_value</code></em>);</pre>
537
+ <p>Set the rgb from a terminal symbol</p>
538
+ <p>Returns CR_OK upon successful completion, an error code otherwise.</p>
539
+ <div class="refsect3">
540
+ <a name="id-1.2.16.6.15.6"></a><h4>Parameters</h4>
541
+ <div class="informaltable"><table width="100%" border="0">
542
+ <colgroup>
543
+ <col width="150px" class="parameters_name">
544
+ <col class="parameters_description">
545
+ <col width="200px" class="parameters_annotations">
546
+ </colgroup>
435
547
  <tbody>
436
548
  <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>
549
+ <td class="parameter_name"><p>a_this</p></td>
550
+ <td class="parameter_description"><p>the instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> to set</p></td>
551
+ <td class="parameter_annotations"> </td>
440
552
  </tr>
441
553
  <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>
554
+ <td class="parameter_name"><p>a_value</p></td>
555
+ <td class="parameter_description"><p>the terminal from which to set</p></td>
556
+ <td class="parameter_annotations"> </td>
444
557
  </tr>
445
558
  </tbody>
446
559
  </table></div>
447
560
  </div>
561
+ </div>
448
562
  <hr>
449
563
  <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>
564
+ <a name="cr-rgb-to-string"></a><h3>cr_rgb_to_string ()</h3>
565
+ <pre class="programlisting"><span class="returnvalue">guchar</span> *
566
+ 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>
567
+ <p>Serializes the rgb into a zero terminated string.</p>
568
+ <p>Returns the zero terminated string containing the serialized
569
+ rgb. MUST BE FREED by the caller using <code class="function">g_free()</code>.</p>
570
+ <div class="refsect3">
571
+ <a name="id-1.2.16.6.16.6"></a><h4>Parameters</h4>
572
+ <div class="informaltable"><table width="100%" border="0">
573
+ <colgroup>
574
+ <col width="150px" class="parameters_name">
575
+ <col class="parameters_description">
576
+ <col width="200px" class="parameters_annotations">
577
+ </colgroup>
578
+ <tbody><tr>
579
+ <td class="parameter_name"><p>a_this</p></td>
580
+ <td class="parameter_description"><p>the instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a> to serialize.</p></td>
581
+ <td class="parameter_annotations"> </td>
582
+ </tr></tbody>
473
583
  </table></div>
474
584
  </div>
585
+ </div>
475
586
  <hr>
476
587
  <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">
588
+ <a name="cr-rgb-dump"></a><h3>cr_rgb_dump ()</h3>
589
+ <pre class="programlisting"><span class="returnvalue">void</span>
590
+ 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>,
591
+ <em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>);</pre>
592
+ <p>Dumps the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>
593
+ to a file.</p>
594
+ <div class="refsect3">
595
+ <a name="id-1.2.16.6.17.5"></a><h4>Parameters</h4>
596
+ <div class="informaltable"><table width="100%" border="0">
597
+ <colgroup>
598
+ <col width="150px" class="parameters_name">
599
+ <col class="parameters_description">
600
+ <col width="200px" class="parameters_annotations">
601
+ </colgroup>
484
602
  <tbody>
485
603
  <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>
604
+ <td class="parameter_name"><p>a_this</p></td>
605
+ <td class="parameter_description"><p>the "this pointer" of
606
+ the current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</p></td>
607
+ <td class="parameter_annotations"> </td>
488
608
  </tr>
489
609
  <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>
610
+ <td class="parameter_name"><p>a_fp</p></td>
611
+ <td class="parameter_description"><p>the destination file pointer.</p></td>
612
+ <td class="parameter_annotations"> </td>
493
613
  </tr>
494
614
  </tbody>
495
615
  </table></div>
496
616
  </div>
497
617
  </div>
618
+ <hr>
619
+ <div class="refsect2">
620
+ <a name="cr-rgb-destroy"></a><h3>cr_rgb_destroy ()</h3>
621
+ <pre class="programlisting"><span class="returnvalue">void</span>
622
+ 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>
623
+ <p>Destructor of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</p>
624
+ <div class="refsect3">
625
+ <a name="id-1.2.16.6.18.5"></a><h4>Parameters</h4>
626
+ <div class="informaltable"><table width="100%" border="0">
627
+ <colgroup>
628
+ <col width="150px" class="parameters_name">
629
+ <col class="parameters_description">
630
+ <col width="200px" class="parameters_annotations">
631
+ </colgroup>
632
+ <tbody><tr>
633
+ <td class="parameter_name"><p>a_this</p></td>
634
+ <td class="parameter_description"><p>the "this pointer" of the
635
+ current instance of <a class="link" href="libcroco-cr-rgb.html#CRRgb" title="struct CRRgb"><span class="type">CRRgb</span></a>.</p></td>
636
+ <td class="parameter_annotations"> </td>
637
+ </tr></tbody>
638
+ </table></div>
639
+ </div>
640
+ </div>
641
+ </div>
642
+ <div class="refsect1">
643
+ <a name="libcroco-cr-rgb.other_details"></a><h2>Types and Values</h2>
644
+ <div class="refsect2">
645
+ <a name="CRRgb"></a><h3>struct CRRgb</h3>
646
+ <pre class="programlisting">struct CRRgb {
647
+ /*
648
+ *the unit of the rgb.
649
+ *Either NO_UNIT (integer) or
650
+ *UNIT_PERCENTAGE (percentage).
651
+ */
652
+ const guchar *name ;
653
+ glong red ;
654
+ glong green ;
655
+ glong blue ;
656
+ gboolean is_percentage ;
657
+ gboolean inherit ;
658
+ gboolean is_transparent ;
659
+ CRParsingLocation location ;
660
+ };
661
+ </pre>
662
+ </div>
663
+ </div>
498
664
  </div>
499
665
  <div class="footer">
500
- <hr>
501
- Generated by GTK-Doc V1.18</div>
666
+ <hr>Generated by GTK-Doc V1.24.1</div>
502
667
  </body>
503
668
  </html>