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.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/ext/rsvg2/extconf.rb +1 -0
- data/lib/2.2/rsvg2.so +0 -0
- data/lib/2.3/rsvg2.so +0 -0
- data/vendor/local/bin/croco-0.6-config +2 -2
- data/vendor/local/bin/csslint-0.6.exe +0 -0
- data/vendor/local/bin/libcroco-0.6-3.dll +0 -0
- data/vendor/local/bin/librsvg-2-2.dll +0 -0
- data/vendor/local/bin/rsvg-convert.exe +0 -0
- data/vendor/local/include/libcroco-0.6/libcroco/libcroco-config.h +2 -2
- data/vendor/local/include/librsvg-2.0/librsvg/librsvg-features.h +26 -4
- data/vendor/local/lib/girepository-1.0/Rsvg-2.0.typelib +0 -0
- data/vendor/local/lib/libcroco-0.6.a +0 -0
- data/vendor/local/lib/libcroco-0.6.dll.a +0 -0
- data/vendor/local/lib/libcroco-0.6.la +3 -3
- data/vendor/local/lib/librsvg-2.a +0 -0
- data/vendor/local/lib/librsvg-2.dll.a +0 -0
- data/vendor/local/lib/librsvg-2.la +2 -2
- data/vendor/local/lib/pkgconfig/libcroco-0.6.pc +1 -1
- data/vendor/local/lib/pkgconfig/librsvg-2.0.pc +1 -1
- data/vendor/local/share/gir-1.0/Rsvg-2.0.gir +2 -2
- data/vendor/local/share/gtk-doc/html/libcroco/ch01.html +13 -14
- data/vendor/local/share/gtk-doc/html/libcroco/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/index.html +5 -6
- data/vendor/local/share/gtk-doc/html/libcroco/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-additional-sel.html +360 -221
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-attr-sel.html +209 -132
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-cascade.html +251 -164
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-declaration.html +693 -449
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-doc-handler.html +365 -259
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-enc-handler.html +148 -107
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-fonts.html +805 -463
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-input.html +1109 -753
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-num.html +267 -180
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-om-parser.html +351 -255
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parser.html +913 -644
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-parsing-location.html +234 -124
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-prop-list.html +437 -271
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-pseudo.html +139 -86
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-rgb.html +517 -352
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-sel-eng.html +326 -252
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-selector.html +219 -186
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-simple-sel.html +219 -176
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-statement.html +1231 -1220
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-string.html +142 -83
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-style.html +351 -256
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-stylesheet.html +155 -99
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-term.html +313 -207
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-tknzr.html +321 -210
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-token.html +465 -284
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-cr-utils.html +507 -231
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco-libcroco-config.html +54 -40
- data/vendor/local/share/gtk-doc/html/libcroco/libcroco.devhelp2 +465 -426
- data/vendor/local/share/gtk-doc/html/libcroco/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/style.css +317 -104
- data/vendor/local/share/gtk-doc/html/libcroco/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/libcroco/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/RsvgHandle.html +1039 -724
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/annotation-glossary.html +29 -32
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-14.html +16 -19
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-22.html +13 -16
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-32.html +14 -17
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-36.html +15 -20
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-4.html +12 -15
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-8.html +17 -22
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-2-9.html +18 -23
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-deprecated.html +31 -36
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/api-index-full.html +79 -84
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.html +4 -4
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/index.sgml +31 -28
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/licence.html +9 -9
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/object-tree.html +15 -15
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-2.0.devhelp2 +55 -59
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GIO.html +247 -190
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-GdkPixbuf.html +336 -239
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Using-RSVG-with-cairo.html +95 -70
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg-Version-check-and-feature-tests.html +77 -37
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/rsvg.html +9 -9
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/style.css +314 -104
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/rsvg-2.0/up.png +0 -0
- metadata +14 -10
- data/lib/2.0/rsvg2.so +0 -0
- data/lib/2.1/rsvg2.so +0 -0
- 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-declaration</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
5
|
+
<title>cr-declaration: 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-cascade.html" title="cr-cascade">
|
10
10
|
<link rel="next" href="libcroco-cr-doc-handler.html" title="cr-doc-handler">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
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="
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
19
|
-
|
20
|
-
<
|
21
|
-
<td><a accesskey="
|
22
|
-
|
23
|
-
<
|
24
|
-
|
25
|
-
|
|
26
|
-
<a href="#libcroco-cr-declaration.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-declaration.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-cascade.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
23
|
+
<td><a accesskey="n" href="libcroco-cr-doc-handler.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-declaration"></a><div class="titlepage"></div>
|
31
27
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -33,610 +29,858 @@
|
|
33
29
|
<h2><span class="refentrytitle"><a name="libcroco-cr-declaration.top_of_page"></a>cr-declaration</span></h2>
|
34
30
|
<p>cr-declaration</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-declaration.synopsis"></a><h2>Synopsis</h2>
|
40
|
-
<pre class="synopsis">struct <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration">CRDeclaration</a>;
|
41
|
-
<a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement">CRStatement</a>;
|
42
|
-
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-append" title="cr_declaration_append ()">cr_declaration_append</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
43
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_new</code></em>);
|
44
|
-
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-append2" title="cr_declaration_append2 ()">cr_declaration_append2</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
45
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
|
46
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);
|
47
|
-
<span class="returnvalue">void</span> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-destroy" title="cr_declaration_destroy ()">cr_declaration_destroy</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);
|
48
|
-
<span class="returnvalue">void</span> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-dump" title="cr_declaration_dump ()">cr_declaration_dump</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
49
|
-
<em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
|
50
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_indent</code></em>,
|
51
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> a_one_per_line</code></em>);
|
52
|
-
<span class="returnvalue">void</span> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-dump-one" title="cr_declaration_dump_one ()">cr_declaration_dump_one</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
53
|
-
<em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
|
54
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#glong"><span class="type">glong</span></a> a_indent</code></em>);
|
55
|
-
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-get-by-prop-name" title="cr_declaration_get_by_prop_name ()">cr_declaration_get_by_prop_name</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
56
|
-
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_str</code></em>);
|
57
|
-
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-get-from-list" title="cr_declaration_get_from_list ()">cr_declaration_get_from_list</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
58
|
-
<em class="parameter"><code><span class="type">int</span> itemnr</code></em>);
|
59
|
-
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-list-to-string" title="cr_declaration_list_to_string ()">cr_declaration_list_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
60
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);
|
61
|
-
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="returnvalue">guchar</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-list-to-string2" title="cr_declaration_list_to_string2 ()">cr_declaration_list_to_string2</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
62
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>,
|
63
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> a_one_decl_per_line</code></em>);
|
64
|
-
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-new" title="cr_declaration_new ()">cr_declaration_new</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_statement</code></em>,
|
65
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_property</code></em>,
|
66
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);
|
67
|
-
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-nr-props" title="cr_declaration_nr_props ()">cr_declaration_nr_props</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>);
|
68
|
-
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-parse-from-buf" title="cr_declaration_parse_from_buf ()">cr_declaration_parse_from_buf</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_statement</code></em>,
|
69
|
-
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_str</code></em>,
|
70
|
-
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
|
71
|
-
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-parse-list-from-buf" title="cr_declaration_parse_list_from_buf ()">cr_declaration_parse_list_from_buf</a> (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guchar"><span class="type">guchar</span></a> *a_str</code></em>,
|
72
|
-
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);
|
73
|
-
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-prepend" title="cr_declaration_prepend ()">cr_declaration_prepend</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
74
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_new</code></em>);
|
75
|
-
<span class="returnvalue">void</span> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-ref" title="cr_declaration_ref ()">cr_declaration_ref</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);
|
76
|
-
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-to-string" title="cr_declaration_to_string ()">cr_declaration_to_string</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
77
|
-
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gulong"><span class="type">gulong</span></a> a_indent</code></em>);
|
78
|
-
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * <a class="link" href="libcroco-cr-declaration.html#cr-declaration-unlink" title="cr_declaration_unlink ()">cr_declaration_unlink</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl</code></em>);
|
79
|
-
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libcroco-cr-declaration.html#cr-declaration-unref" title="cr_declaration_unref ()">cr_declaration_unref</a> (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);
|
80
|
-
</pre>
|
81
|
-
</div>
|
82
|
-
<div class="refsect1">
|
83
|
-
<a name="libcroco-cr-declaration.description"></a><h2>Description</h2>
|
84
|
-
<p>
|
85
|
-
</p>
|
86
|
-
</div>
|
87
34
|
<div class="refsect1">
|
88
|
-
<a name="libcroco-cr-declaration.
|
89
|
-
<div class="
|
90
|
-
<
|
91
|
-
<
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
/**The value of the property.*/
|
96
|
-
CRTerm *value ;
|
97
|
-
|
98
|
-
/*the ruleset that contains this declaration*/
|
99
|
-
CRStatement *parent_statement ;
|
100
|
-
|
101
|
-
/*the next declaration*/
|
102
|
-
CRDeclaration *next ;
|
103
|
-
|
104
|
-
/*the previous one declaration*/
|
105
|
-
CRDeclaration *prev ;
|
106
|
-
|
107
|
-
/*does the declaration have the important keyword ?*/
|
108
|
-
gboolean important ;
|
109
|
-
|
110
|
-
glong ref_count ;
|
111
|
-
|
112
|
-
CRParsingLocation location ;
|
113
|
-
/*reserved for future usage*/
|
114
|
-
gpointer rfu0 ;
|
115
|
-
gpointer rfu1 ;
|
116
|
-
gpointer rfu2 ;
|
117
|
-
gpointer rfu3 ;
|
118
|
-
};
|
119
|
-
</pre>
|
120
|
-
<p>
|
121
|
-
</p>
|
122
|
-
</div>
|
123
|
-
<hr>
|
124
|
-
<div class="refsect2">
|
125
|
-
<a name="CRStatement"></a><h3>CRStatement</h3>
|
126
|
-
<pre class="programlisting">typedef struct {
|
127
|
-
/**
|
128
|
-
*The type of the statement.
|
129
|
-
*/
|
130
|
-
enum CRStatementType type ;
|
131
|
-
|
132
|
-
union
|
133
|
-
{
|
134
|
-
CRRuleSet *ruleset ;
|
135
|
-
CRAtImportRule *import_rule ;
|
136
|
-
CRAtMediaRule *media_rule ;
|
137
|
-
CRAtPageRule *page_rule ;
|
138
|
-
CRAtCharsetRule *charset_rule ;
|
139
|
-
CRAtFontFaceRule *font_face_rule ;
|
140
|
-
} kind ;
|
141
|
-
|
142
|
-
/*
|
143
|
-
*the specificity of the selector
|
144
|
-
*that matched this statement.
|
145
|
-
*This is only used by the cascading
|
146
|
-
*order determination algorithm.
|
147
|
-
*/
|
148
|
-
gulong specificity ;
|
149
|
-
|
150
|
-
/*
|
151
|
-
*the style sheet that contains
|
152
|
-
*this css statement.
|
153
|
-
*/
|
154
|
-
CRStyleSheet *parent_sheet ;
|
155
|
-
CRStatement *next ;
|
156
|
-
CRStatement *prev ;
|
157
|
-
|
158
|
-
CRParsingLocation location ;
|
159
|
-
|
160
|
-
/**
|
161
|
-
*a custom pointer useable by
|
162
|
-
*applications that use libcroco.
|
163
|
-
*libcroco itself will never modify
|
164
|
-
*this pointer.
|
165
|
-
*/
|
166
|
-
gpointer app_data ;
|
167
|
-
|
168
|
-
/**
|
169
|
-
*a custom pointer used
|
170
|
-
*by the upper layers of libcroco.
|
171
|
-
*application should never use this
|
172
|
-
*pointer.
|
173
|
-
*/
|
174
|
-
gpointer croco_data ;
|
175
|
-
} CRStatement;
|
176
|
-
</pre>
|
177
|
-
<p>
|
178
|
-
</p>
|
179
|
-
</div>
|
180
|
-
<hr>
|
181
|
-
<div class="refsect2">
|
182
|
-
<a name="cr-declaration-append"></a><h3>cr_declaration_append ()</h3>
|
183
|
-
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> * cr_declaration_append (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
184
|
-
<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_new</code></em>);</pre>
|
185
|
-
<p>
|
186
|
-
Appends a new declaration to the current declarations list.
|
187
|
-
</p>
|
188
|
-
<div class="variablelist"><table border="0">
|
189
|
-
<col align="left" valign="top">
|
35
|
+
<a name="libcroco-cr-declaration.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>
|
190
41
|
<tbody>
|
191
42
|
<tr>
|
192
|
-
<td
|
193
|
-
<
|
43
|
+
<td class="function_type">
|
44
|
+
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
45
|
+
</td>
|
46
|
+
<td class="function_name">
|
47
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-new" title="cr_declaration_new ()">cr_declaration_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-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
53
|
+
</td>
|
54
|
+
<td class="function_name">
|
55
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-parse-from-buf" title="cr_declaration_parse_from_buf ()">cr_declaration_parse_from_buf</a> <span class="c_punctuation">()</span>
|
56
|
+
</td>
|
57
|
+
</tr>
|
58
|
+
<tr>
|
59
|
+
<td class="function_type">
|
60
|
+
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
61
|
+
</td>
|
62
|
+
<td class="function_name">
|
63
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-parse-list-from-buf" title="cr_declaration_parse_list_from_buf ()">cr_declaration_parse_list_from_buf</a> <span class="c_punctuation">()</span>
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td class="function_type">
|
68
|
+
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
69
|
+
</td>
|
70
|
+
<td class="function_name">
|
71
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-append" title="cr_declaration_append ()">cr_declaration_append</a> <span class="c_punctuation">()</span>
|
72
|
+
</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<td class="function_type">
|
76
|
+
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
77
|
+
</td>
|
78
|
+
<td class="function_name">
|
79
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-append2" title="cr_declaration_append2 ()">cr_declaration_append2</a> <span class="c_punctuation">()</span>
|
80
|
+
</td>
|
81
|
+
</tr>
|
82
|
+
<tr>
|
83
|
+
<td class="function_type">
|
84
|
+
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
85
|
+
</td>
|
86
|
+
<td class="function_name">
|
87
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-prepend" title="cr_declaration_prepend ()">cr_declaration_prepend</a> <span class="c_punctuation">()</span>
|
88
|
+
</td>
|
89
|
+
</tr>
|
90
|
+
<tr>
|
91
|
+
<td class="function_type">
|
92
|
+
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
93
|
+
</td>
|
94
|
+
<td class="function_name">
|
95
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-unlink" title="cr_declaration_unlink ()">cr_declaration_unlink</a> <span class="c_punctuation">()</span>
|
96
|
+
</td>
|
97
|
+
</tr>
|
98
|
+
<tr>
|
99
|
+
<td class="function_type">
|
100
|
+
<span class="returnvalue">void</span>
|
101
|
+
</td>
|
102
|
+
<td class="function_name">
|
103
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-dump" title="cr_declaration_dump ()">cr_declaration_dump</a> <span class="c_punctuation">()</span>
|
104
|
+
</td>
|
105
|
+
</tr>
|
106
|
+
<tr>
|
107
|
+
<td class="function_type">
|
108
|
+
<span class="returnvalue">void</span>
|
109
|
+
</td>
|
110
|
+
<td class="function_name">
|
111
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-dump-one" title="cr_declaration_dump_one ()">cr_declaration_dump_one</a> <span class="c_punctuation">()</span>
|
112
|
+
</td>
|
113
|
+
</tr>
|
114
|
+
<tr>
|
115
|
+
<td class="function_type">
|
116
|
+
<span class="returnvalue">gint</span>
|
117
|
+
</td>
|
118
|
+
<td class="function_name">
|
119
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-nr-props" title="cr_declaration_nr_props ()">cr_declaration_nr_props</a> <span class="c_punctuation">()</span>
|
120
|
+
</td>
|
121
|
+
</tr>
|
122
|
+
<tr>
|
123
|
+
<td class="function_type">
|
124
|
+
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
125
|
+
</td>
|
126
|
+
<td class="function_name">
|
127
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-get-from-list" title="cr_declaration_get_from_list ()">cr_declaration_get_from_list</a> <span class="c_punctuation">()</span>
|
128
|
+
</td>
|
129
|
+
</tr>
|
130
|
+
<tr>
|
131
|
+
<td class="function_type">
|
132
|
+
<a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
133
|
+
</td>
|
134
|
+
<td class="function_name">
|
135
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-get-by-prop-name" title="cr_declaration_get_by_prop_name ()">cr_declaration_get_by_prop_name</a> <span class="c_punctuation">()</span>
|
136
|
+
</td>
|
137
|
+
</tr>
|
138
|
+
<tr>
|
139
|
+
<td class="function_type">
|
140
|
+
<span class="returnvalue">gchar</span> *
|
141
|
+
</td>
|
142
|
+
<td class="function_name">
|
143
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-to-string" title="cr_declaration_to_string ()">cr_declaration_to_string</a> <span class="c_punctuation">()</span>
|
144
|
+
</td>
|
145
|
+
</tr>
|
146
|
+
<tr>
|
147
|
+
<td class="function_type">
|
148
|
+
<span class="returnvalue">guchar</span> *
|
149
|
+
</td>
|
150
|
+
<td class="function_name">
|
151
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-list-to-string" title="cr_declaration_list_to_string ()">cr_declaration_list_to_string</a> <span class="c_punctuation">()</span>
|
152
|
+
</td>
|
194
153
|
</tr>
|
195
154
|
<tr>
|
196
|
-
<td
|
197
|
-
<
|
155
|
+
<td class="function_type">
|
156
|
+
<span class="returnvalue">guchar</span> *
|
157
|
+
</td>
|
158
|
+
<td class="function_name">
|
159
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-list-to-string2" title="cr_declaration_list_to_string2 ()">cr_declaration_list_to_string2</a> <span class="c_punctuation">()</span>
|
160
|
+
</td>
|
198
161
|
</tr>
|
199
162
|
<tr>
|
200
|
-
<td
|
201
|
-
<
|
202
|
-
|
163
|
+
<td class="function_type">
|
164
|
+
<span class="returnvalue">void</span>
|
165
|
+
</td>
|
166
|
+
<td class="function_name">
|
167
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-ref" title="cr_declaration_ref ()">cr_declaration_ref</a> <span class="c_punctuation">()</span>
|
168
|
+
</td>
|
169
|
+
</tr>
|
170
|
+
<tr>
|
171
|
+
<td class="function_type">
|
172
|
+
<span class="returnvalue">gboolean</span>
|
173
|
+
</td>
|
174
|
+
<td class="function_name">
|
175
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-unref" title="cr_declaration_unref ()">cr_declaration_unref</a> <span class="c_punctuation">()</span>
|
176
|
+
</td>
|
177
|
+
</tr>
|
178
|
+
<tr>
|
179
|
+
<td class="function_type">
|
180
|
+
<span class="returnvalue">void</span>
|
181
|
+
</td>
|
182
|
+
<td class="function_name">
|
183
|
+
<a class="link" href="libcroco-cr-declaration.html#cr-declaration-destroy" title="cr_declaration_destroy ()">cr_declaration_destroy</a> <span class="c_punctuation">()</span>
|
184
|
+
</td>
|
203
185
|
</tr>
|
204
186
|
</tbody>
|
205
187
|
</table></div>
|
206
188
|
</div>
|
207
|
-
<
|
208
|
-
<
|
209
|
-
<
|
210
|
-
<
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
Appends a declaration to the current declaration list.
|
215
|
-
</p>
|
216
|
-
<div class="variablelist"><table border="0">
|
217
|
-
<col align="left" valign="top">
|
189
|
+
<div class="refsect1">
|
190
|
+
<a name="libcroco-cr-declaration.other"></a><h2>Types and Values</h2>
|
191
|
+
<div class="informaltable"><table width="100%" border="0">
|
192
|
+
<colgroup>
|
193
|
+
<col width="150px" class="name">
|
194
|
+
<col class="description">
|
195
|
+
</colgroup>
|
218
196
|
<tbody>
|
219
197
|
<tr>
|
220
|
-
<td
|
221
|
-
<td
|
198
|
+
<td class="datatype_keyword">struct</td>
|
199
|
+
<td class="function_name"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration">CRDeclaration</a></td>
|
222
200
|
</tr>
|
223
201
|
<tr>
|
224
|
-
<td
|
225
|
-
<td
|
202
|
+
<td class="datatype_keyword"> </td>
|
203
|
+
<td class="function_name"><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement">CRStatement</a></td>
|
226
204
|
</tr>
|
205
|
+
</tbody>
|
206
|
+
</table></div>
|
207
|
+
</div>
|
208
|
+
<div class="refsect1">
|
209
|
+
<a name="libcroco-cr-declaration.description"></a><h2>Description</h2>
|
210
|
+
</div>
|
211
|
+
<div class="refsect1">
|
212
|
+
<a name="libcroco-cr-declaration.functions_details"></a><h2>Functions</h2>
|
213
|
+
<div class="refsect2">
|
214
|
+
<a name="cr-declaration-new"></a><h3>cr_declaration_new ()</h3>
|
215
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
216
|
+
cr_declaration_new (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_statement</code></em>,
|
217
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_property</code></em>,
|
218
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);</pre>
|
219
|
+
<p>Returns the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>, or NULL in
|
220
|
+
case of error.</p>
|
221
|
+
<p>The returned CRDeclaration takes ownership of <em class="parameter"><code>a_property</code></em>
|
222
|
+
and <em class="parameter"><code>a_value</code></em>
|
223
|
+
.
|
224
|
+
(E.g. cr_declaration_destroy on this CRDeclaration will also free
|
225
|
+
<em class="parameter"><code>a_property</code></em>
|
226
|
+
and <em class="parameter"><code>a_value</code></em>
|
227
|
+
.)</p>
|
228
|
+
<div class="refsect3">
|
229
|
+
<a name="id-1.2.5.6.2.6"></a><h4>Parameters</h4>
|
230
|
+
<div class="informaltable"><table width="100%" border="0">
|
231
|
+
<colgroup>
|
232
|
+
<col width="150px" class="parameters_name">
|
233
|
+
<col class="parameters_description">
|
234
|
+
<col width="200px" class="parameters_annotations">
|
235
|
+
</colgroup>
|
236
|
+
<tbody>
|
227
237
|
<tr>
|
228
|
-
<td
|
229
|
-
<td>the
|
238
|
+
<td class="parameter_name"><p>a_statement</p></td>
|
239
|
+
<td class="parameter_description"><p>the statement this declaration belongs to. can be NULL.</p></td>
|
240
|
+
<td class="parameter_annotations"> </td>
|
230
241
|
</tr>
|
231
242
|
<tr>
|
232
|
-
<td
|
233
|
-
<td>the
|
234
|
-
|
243
|
+
<td class="parameter_name"><p>a_property</p></td>
|
244
|
+
<td class="parameter_description"><p>the property string of the declaration</p></td>
|
245
|
+
<td class="parameter_annotations"> </td>
|
246
|
+
</tr>
|
247
|
+
<tr>
|
248
|
+
<td class="parameter_name"><p>a_value</p></td>
|
249
|
+
<td class="parameter_description"><p>the value expression of the declaration.
|
250
|
+
Constructor of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
251
|
+
<td class="parameter_annotations"> </td>
|
235
252
|
</tr>
|
236
253
|
</tbody>
|
237
254
|
</table></div>
|
238
255
|
</div>
|
239
|
-
<hr>
|
240
|
-
<div class="refsect2">
|
241
|
-
<a name="cr-declaration-destroy"></a><h3>cr_declaration_destroy ()</h3>
|
242
|
-
<pre class="programlisting"><span class="returnvalue">void</span> cr_declaration_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);</pre>
|
243
|
-
<p>
|
244
|
-
Destructor of the declaration list.
|
245
|
-
</p>
|
246
|
-
<div class="variablelist"><table border="0">
|
247
|
-
<col align="left" valign="top">
|
248
|
-
<tbody><tr>
|
249
|
-
<td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
|
250
|
-
<td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
|
251
|
-
</tr></tbody>
|
252
|
-
</table></div>
|
253
256
|
</div>
|
254
257
|
<hr>
|
255
258
|
<div class="refsect2">
|
256
|
-
<a name="cr-declaration-
|
257
|
-
<pre class="programlisting"><
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
<p>
|
262
|
-
|
263
|
-
|
264
|
-
<div class="
|
265
|
-
<
|
259
|
+
<a name="cr-declaration-parse-from-buf"></a><h3>cr_declaration_parse_from_buf ()</h3>
|
260
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
261
|
+
cr_declaration_parse_from_buf (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRStatement" title="CRStatement"><span class="type">CRStatement</span></a> *a_statement</code></em>,
|
262
|
+
<em class="parameter"><code>const <span class="type">guchar</span> *a_str</code></em>,
|
263
|
+
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
|
264
|
+
<p>Parses a text buffer that contains
|
265
|
+
a css declaration.
|
266
|
+
Returns the parsed declaration, or NULL in case of error.</p>
|
267
|
+
<div class="refsect3">
|
268
|
+
<a name="id-1.2.5.6.3.5"></a><h4>Parameters</h4>
|
269
|
+
<div class="informaltable"><table width="100%" border="0">
|
270
|
+
<colgroup>
|
271
|
+
<col width="150px" class="parameters_name">
|
272
|
+
<col class="parameters_description">
|
273
|
+
<col width="200px" class="parameters_annotations">
|
274
|
+
</colgroup>
|
266
275
|
<tbody>
|
267
276
|
<tr>
|
268
|
-
<td
|
269
|
-
<td
|
270
|
-
|
271
|
-
|
272
|
-
<td
|
273
|
-
<td>the destination file.</td>
|
277
|
+
<td class="parameter_name"><p>a_statement</p></td>
|
278
|
+
<td class="parameter_description"><p>the parent css2 statement of this
|
279
|
+
this declaration. Must be non NULL and of type
|
280
|
+
RULESET_STMT (must be a ruleset).</p></td>
|
281
|
+
<td class="parameter_annotations"> </td>
|
274
282
|
</tr>
|
275
283
|
<tr>
|
276
|
-
<td
|
277
|
-
<td>the
|
284
|
+
<td class="parameter_name"><p>a_str</p></td>
|
285
|
+
<td class="parameter_description"><p>the string that contains the statement.</p></td>
|
286
|
+
<td class="parameter_annotations"> </td>
|
278
287
|
</tr>
|
279
288
|
<tr>
|
280
|
-
<td
|
281
|
-
<td>
|
289
|
+
<td class="parameter_name"><p>a_enc</p></td>
|
290
|
+
<td class="parameter_description"><p>the encoding of a_str.</p></td>
|
291
|
+
<td class="parameter_annotations"> </td>
|
282
292
|
</tr>
|
283
293
|
</tbody>
|
284
294
|
</table></div>
|
285
295
|
</div>
|
296
|
+
</div>
|
286
297
|
<hr>
|
287
298
|
<div class="refsect2">
|
288
|
-
<a name="cr-declaration-
|
289
|
-
<pre class="programlisting"><
|
290
|
-
|
291
|
-
|
292
|
-
<p>
|
293
|
-
|
294
|
-
|
295
|
-
<
|
296
|
-
<
|
299
|
+
<a name="cr-declaration-parse-list-from-buf"></a><h3>cr_declaration_parse_list_from_buf ()</h3>
|
300
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
301
|
+
cr_declaration_parse_list_from_buf (<em class="parameter"><code>const <span class="type">guchar</span> *a_str</code></em>,
|
302
|
+
<em class="parameter"><code><span class="type">enum CREncoding</span> a_enc</code></em>);</pre>
|
303
|
+
<p>Parses a ';' separated list of properties declaration.
|
304
|
+
Returns the parsed list of declaration, NULL if parsing failed.</p>
|
305
|
+
<div class="refsect3">
|
306
|
+
<a name="id-1.2.5.6.4.5"></a><h4>Parameters</h4>
|
307
|
+
<div class="informaltable"><table width="100%" border="0">
|
308
|
+
<colgroup>
|
309
|
+
<col width="150px" class="parameters_name">
|
310
|
+
<col class="parameters_description">
|
311
|
+
<col width="200px" class="parameters_annotations">
|
312
|
+
</colgroup>
|
297
313
|
<tbody>
|
298
314
|
<tr>
|
299
|
-
<td
|
300
|
-
<td>the
|
315
|
+
<td class="parameter_name"><p>a_str</p></td>
|
316
|
+
<td class="parameter_description"><p>the input buffer that contains the list of declaration to
|
317
|
+
parse.</p></td>
|
318
|
+
<td class="parameter_annotations"> </td>
|
301
319
|
</tr>
|
302
320
|
<tr>
|
303
|
-
<td
|
304
|
-
<td>the
|
305
|
-
</
|
306
|
-
<tr>
|
307
|
-
<td><p><span class="term"><em class="parameter"><code>a_indent</code></em> :</span></p></td>
|
308
|
-
<td>the number of indentation white char.</td>
|
321
|
+
<td class="parameter_name"><p>a_enc</p></td>
|
322
|
+
<td class="parameter_description"><p>the encoding of a_str</p></td>
|
323
|
+
<td class="parameter_annotations"> </td>
|
309
324
|
</tr>
|
310
325
|
</tbody>
|
311
326
|
</table></div>
|
312
327
|
</div>
|
328
|
+
</div>
|
313
329
|
<hr>
|
314
330
|
<div class="refsect2">
|
315
|
-
<a name="cr-declaration-
|
316
|
-
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a>
|
317
|
-
|
318
|
-
<
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
<
|
331
|
+
<a name="cr-declaration-append"></a><h3>cr_declaration_append ()</h3>
|
332
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
333
|
+
cr_declaration_append (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
334
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_new</code></em>);</pre>
|
335
|
+
<p>Appends a new declaration to the current declarations list.
|
336
|
+
Returns the declaration list with a_new appended to it, or NULL
|
337
|
+
in case of error.</p>
|
338
|
+
<div class="refsect3">
|
339
|
+
<a name="id-1.2.5.6.5.5"></a><h4>Parameters</h4>
|
340
|
+
<div class="informaltable"><table width="100%" border="0">
|
341
|
+
<colgroup>
|
342
|
+
<col width="150px" class="parameters_name">
|
343
|
+
<col class="parameters_description">
|
344
|
+
<col width="200px" class="parameters_annotations">
|
345
|
+
</colgroup>
|
323
346
|
<tbody>
|
324
347
|
<tr>
|
325
|
-
<td
|
326
|
-
<td
|
348
|
+
<td class="parameter_name"><p>a_this</p></td>
|
349
|
+
<td class="parameter_description"><p>the current declaration list.</p></td>
|
350
|
+
<td class="parameter_annotations"> </td>
|
327
351
|
</tr>
|
328
352
|
<tr>
|
329
|
-
<td
|
330
|
-
<td>
|
331
|
-
<
|
353
|
+
<td class="parameter_name"><p>a_new</p></td>
|
354
|
+
<td class="parameter_description"><p>the declaration to append.</p></td>
|
355
|
+
<td class="parameter_annotations"> </td>
|
332
356
|
</tr>
|
333
357
|
</tbody>
|
334
358
|
</table></div>
|
335
359
|
</div>
|
360
|
+
</div>
|
336
361
|
<hr>
|
337
362
|
<div class="refsect2">
|
338
|
-
<a name="cr-declaration-
|
339
|
-
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a>
|
340
|
-
|
341
|
-
<
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
363
|
+
<a name="cr-declaration-append2"></a><h3>cr_declaration_append2 ()</h3>
|
364
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
365
|
+
cr_declaration_append2 (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
366
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-string.html#CRString" title="struct CRString"><span class="type">CRString</span></a> *a_prop</code></em>,
|
367
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-term.html#CRTerm" title="struct CRTerm"><span class="type">CRTerm</span></a> *a_value</code></em>);</pre>
|
368
|
+
<p>Appends a declaration to the current declaration list.
|
369
|
+
Returns the list with the new property appended to it, or NULL in
|
370
|
+
case of an error.</p>
|
371
|
+
<div class="refsect3">
|
372
|
+
<a name="id-1.2.5.6.6.5"></a><h4>Parameters</h4>
|
373
|
+
<div class="informaltable"><table width="100%" border="0">
|
374
|
+
<colgroup>
|
375
|
+
<col width="150px" class="parameters_name">
|
376
|
+
<col class="parameters_description">
|
377
|
+
<col width="200px" class="parameters_annotations">
|
378
|
+
</colgroup>
|
346
379
|
<tbody>
|
347
380
|
<tr>
|
348
|
-
<td
|
349
|
-
<td
|
381
|
+
<td class="parameter_name"><p>a_this</p></td>
|
382
|
+
<td class="parameter_description"><p>the current declaration list.</p></td>
|
383
|
+
<td class="parameter_annotations"> </td>
|
350
384
|
</tr>
|
351
385
|
<tr>
|
352
|
-
<td
|
353
|
-
<td>the
|
386
|
+
<td class="parameter_name"><p>a_prop</p></td>
|
387
|
+
<td class="parameter_description"><p>the property string of the declaration to append.</p></td>
|
388
|
+
<td class="parameter_annotations"> </td>
|
354
389
|
</tr>
|
355
390
|
<tr>
|
356
|
-
<td
|
357
|
-
<td>
|
358
|
-
<
|
359
|
-
if itemnr > number of declarations - 1,
|
360
|
-
it will return NULL.</td>
|
391
|
+
<td class="parameter_name"><p>a_value</p></td>
|
392
|
+
<td class="parameter_description"><p>the value of the declaration to append.</p></td>
|
393
|
+
<td class="parameter_annotations"> </td>
|
361
394
|
</tr>
|
362
395
|
</tbody>
|
363
396
|
</table></div>
|
364
397
|
</div>
|
398
|
+
</div>
|
365
399
|
<hr>
|
366
400
|
<div class="refsect2">
|
367
|
-
<a name="cr-declaration-
|
368
|
-
<pre class="programlisting"><a
|
369
|
-
|
370
|
-
<
|
371
|
-
|
372
|
-
|
373
|
-
<div class="
|
374
|
-
<
|
401
|
+
<a name="cr-declaration-prepend"></a><h3>cr_declaration_prepend ()</h3>
|
402
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
403
|
+
cr_declaration_prepend (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
404
|
+
<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_new</code></em>);</pre>
|
405
|
+
<p>prepends a declaration to the current declaration list.</p>
|
406
|
+
<p>Returns the list with a_new prepended or NULL in case of error.</p>
|
407
|
+
<div class="refsect3">
|
408
|
+
<a name="id-1.2.5.6.7.6"></a><h4>Parameters</h4>
|
409
|
+
<div class="informaltable"><table width="100%" border="0">
|
410
|
+
<colgroup>
|
411
|
+
<col width="150px" class="parameters_name">
|
412
|
+
<col class="parameters_description">
|
413
|
+
<col width="200px" class="parameters_annotations">
|
414
|
+
</colgroup>
|
375
415
|
<tbody>
|
376
416
|
<tr>
|
377
|
-
<td
|
378
|
-
<td
|
417
|
+
<td class="parameter_name"><p>a_this</p></td>
|
418
|
+
<td class="parameter_description"><p>the current declaration list.</p></td>
|
419
|
+
<td class="parameter_annotations"> </td>
|
379
420
|
</tr>
|
380
421
|
<tr>
|
381
|
-
<td
|
382
|
-
<td>the
|
383
|
-
|
422
|
+
<td class="parameter_name"><p>a_new</p></td>
|
423
|
+
<td class="parameter_description"><p>the declaration to prepend.</p></td>
|
424
|
+
<td class="parameter_annotations"> </td>
|
384
425
|
</tr>
|
385
426
|
</tbody>
|
386
427
|
</table></div>
|
387
428
|
</div>
|
429
|
+
</div>
|
430
|
+
<hr>
|
431
|
+
<div class="refsect2">
|
432
|
+
<a name="cr-declaration-unlink"></a><h3>cr_declaration_unlink ()</h3>
|
433
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
434
|
+
cr_declaration_unlink (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_decl</code></em>);</pre>
|
435
|
+
<p>Unlinks the declaration from the declaration list.
|
436
|
+
case of a successfull completion, NULL otherwise.</p>
|
437
|
+
<p>Returns a pointer to the unlinked declaration in</p>
|
438
|
+
<div class="refsect3">
|
439
|
+
<a name="id-1.2.5.6.8.6"></a><h4>Parameters</h4>
|
440
|
+
<div class="informaltable"><table width="100%" border="0">
|
441
|
+
<colgroup>
|
442
|
+
<col width="150px" class="parameters_name">
|
443
|
+
<col class="parameters_description">
|
444
|
+
<col width="200px" class="parameters_annotations">
|
445
|
+
</colgroup>
|
446
|
+
<tbody><tr>
|
447
|
+
<td class="parameter_name"><p>a_decls</p></td>
|
448
|
+
<td class="parameter_description"><p>the declaration to unlink.</p></td>
|
449
|
+
<td class="parameter_annotations"> </td>
|
450
|
+
</tr></tbody>
|
451
|
+
</table></div>
|
452
|
+
</div>
|
453
|
+
</div>
|
388
454
|
<hr>
|
389
455
|
<div class="refsect2">
|
390
|
-
<a name="cr-declaration-
|
391
|
-
<pre class="programlisting"><
|
392
|
-
|
393
|
-
|
394
|
-
<
|
395
|
-
|
396
|
-
|
397
|
-
<div class="
|
398
|
-
<
|
456
|
+
<a name="cr-declaration-dump"></a><h3>cr_declaration_dump ()</h3>
|
457
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
458
|
+
cr_declaration_dump (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
459
|
+
<em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
|
460
|
+
<em class="parameter"><code><span class="type">glong</span> a_indent</code></em>,
|
461
|
+
<em class="parameter"><code><span class="type">gboolean</span> a_one_per_line</code></em>);</pre>
|
462
|
+
<p>Dumps a declaration list to a file.</p>
|
463
|
+
<div class="refsect3">
|
464
|
+
<a name="id-1.2.5.6.9.5"></a><h4>Parameters</h4>
|
465
|
+
<div class="informaltable"><table width="100%" border="0">
|
466
|
+
<colgroup>
|
467
|
+
<col width="150px" class="parameters_name">
|
468
|
+
<col class="parameters_description">
|
469
|
+
<col width="200px" class="parameters_annotations">
|
470
|
+
</colgroup>
|
399
471
|
<tbody>
|
400
472
|
<tr>
|
401
|
-
<td
|
402
|
-
<td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
|
473
|
+
<td class="parameter_name"><p>a_this</p></td>
|
474
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
475
|
+
<td class="parameter_annotations"> </td>
|
403
476
|
</tr>
|
404
477
|
<tr>
|
405
|
-
<td
|
406
|
-
<td>the
|
478
|
+
<td class="parameter_name"><p>a_fp</p></td>
|
479
|
+
<td class="parameter_description"><p>the destination file.</p></td>
|
480
|
+
<td class="parameter_annotations"> </td>
|
407
481
|
</tr>
|
408
482
|
<tr>
|
409
|
-
<td
|
410
|
-
<td>
|
411
|
-
|
483
|
+
<td class="parameter_name"><p>a_indent</p></td>
|
484
|
+
<td class="parameter_description"><p>the number of indentation white char.</p></td>
|
485
|
+
<td class="parameter_annotations"> </td>
|
412
486
|
</tr>
|
413
487
|
<tr>
|
414
|
-
<td
|
415
|
-
<td>
|
488
|
+
<td class="parameter_name"><p>a_one_per_line</p></td>
|
489
|
+
<td class="parameter_description"><p>whether to put one declaration per line of not .</p></td>
|
490
|
+
<td class="parameter_annotations"> </td>
|
416
491
|
</tr>
|
417
492
|
</tbody>
|
418
493
|
</table></div>
|
419
494
|
</div>
|
495
|
+
</div>
|
420
496
|
<hr>
|
421
497
|
<div class="refsect2">
|
422
|
-
<a name="cr-declaration-
|
423
|
-
<pre class="programlisting"><
|
424
|
-
|
425
|
-
|
426
|
-
<
|
427
|
-
<
|
498
|
+
<a name="cr-declaration-dump-one"></a><h3>cr_declaration_dump_one ()</h3>
|
499
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
500
|
+
cr_declaration_dump_one (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
501
|
+
<em class="parameter"><code><span class="type">FILE</span> *a_fp</code></em>,
|
502
|
+
<em class="parameter"><code><span class="type">glong</span> a_indent</code></em>);</pre>
|
503
|
+
<p>Dumps the first declaration of the declaration list to a file.</p>
|
504
|
+
<div class="refsect3">
|
505
|
+
<a name="id-1.2.5.6.10.5"></a><h4>Parameters</h4>
|
506
|
+
<div class="informaltable"><table width="100%" border="0">
|
507
|
+
<colgroup>
|
508
|
+
<col width="150px" class="parameters_name">
|
509
|
+
<col class="parameters_description">
|
510
|
+
<col width="200px" class="parameters_annotations">
|
511
|
+
</colgroup>
|
428
512
|
<tbody>
|
429
513
|
<tr>
|
430
|
-
<td
|
431
|
-
<td>the
|
514
|
+
<td class="parameter_name"><p>a_this</p></td>
|
515
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
516
|
+
<td class="parameter_annotations"> </td>
|
432
517
|
</tr>
|
433
518
|
<tr>
|
434
|
-
<td
|
435
|
-
<td>the
|
519
|
+
<td class="parameter_name"><p>a_fp</p></td>
|
520
|
+
<td class="parameter_description"><p>the destination file.</p></td>
|
521
|
+
<td class="parameter_annotations"> </td>
|
436
522
|
</tr>
|
437
523
|
<tr>
|
438
|
-
<td
|
439
|
-
<td>the
|
440
|
-
|
441
|
-
</tr>
|
442
|
-
<tr>
|
443
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
444
|
-
<td>the newly built instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>, or NULL in
|
445
|
-
case of error.
|
446
|
-
The returned CRDeclaration takes ownership of <em class="parameter"><code>a_property</code></em> and <em class="parameter"><code>a_value</code></em>.
|
447
|
-
(E.g. cr_declaration_destroy on this CRDeclaration will also free
|
448
|
-
<em class="parameter"><code>a_property</code></em> and <em class="parameter"><code>a_value</code></em>.)</td>
|
524
|
+
<td class="parameter_name"><p>a_indent</p></td>
|
525
|
+
<td class="parameter_description"><p>the number of indentation white char.</p></td>
|
526
|
+
<td class="parameter_annotations"> </td>
|
449
527
|
</tr>
|
450
528
|
</tbody>
|
451
529
|
</table></div>
|
452
530
|
</div>
|
531
|
+
</div>
|
453
532
|
<hr>
|
454
533
|
<div class="refsect2">
|
455
|
-
<a name="cr-declaration-nr-props"></a><h3>cr_declaration_nr_props
|
456
|
-
<pre class="programlisting"><
|
457
|
-
<
|
458
|
-
<
|
534
|
+
<a name="cr-declaration-nr-props"></a><h3>cr_declaration_nr_props ()</h3>
|
535
|
+
<pre class="programlisting"><span class="returnvalue">gint</span>
|
536
|
+
cr_declaration_nr_props (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>);</pre>
|
537
|
+
<div class="refsect3">
|
538
|
+
<a name="id-1.2.5.6.11.4"></a><h4>Parameters</h4>
|
539
|
+
<div class="informaltable"><table width="100%" border="0">
|
540
|
+
<colgroup>
|
541
|
+
<col width="150px" class="parameters_name">
|
542
|
+
<col class="parameters_description">
|
543
|
+
<col width="200px" class="parameters_annotations">
|
544
|
+
</colgroup>
|
459
545
|
<tbody><tr>
|
460
|
-
<td
|
461
|
-
<td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.
|
462
|
-
Return the number of properties in the declaration</td>
|
546
|
+
<td class="parameter_name"><p>a_this</p></td>
|
547
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.
|
548
|
+
Return the number of properties in the declaration</p></td>
|
549
|
+
<td class="parameter_annotations"> </td>
|
463
550
|
</tr></tbody>
|
464
551
|
</table></div>
|
465
552
|
</div>
|
553
|
+
</div>
|
466
554
|
<hr>
|
467
555
|
<div class="refsect2">
|
468
|
-
<a name="cr-declaration-
|
469
|
-
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a>
|
470
|
-
|
471
|
-
|
472
|
-
<p>
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
<div class="
|
477
|
-
<
|
556
|
+
<a name="cr-declaration-get-from-list"></a><h3>cr_declaration_get_from_list ()</h3>
|
557
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
558
|
+
cr_declaration_get_from_list (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
559
|
+
<em class="parameter"><code><span class="type">int</span> itemnr</code></em>);</pre>
|
560
|
+
<p>Use an index to get a CRDeclaration from the declaration list.</p>
|
561
|
+
<p>Returns <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> at position itemnr,
|
562
|
+
if itemnr > number of declarations - 1,
|
563
|
+
it will return NULL.</p>
|
564
|
+
<div class="refsect3">
|
565
|
+
<a name="id-1.2.5.6.12.6"></a><h4>Parameters</h4>
|
566
|
+
<div class="informaltable"><table width="100%" border="0">
|
567
|
+
<colgroup>
|
568
|
+
<col width="150px" class="parameters_name">
|
569
|
+
<col class="parameters_description">
|
570
|
+
<col width="200px" class="parameters_annotations">
|
571
|
+
</colgroup>
|
478
572
|
<tbody>
|
479
573
|
<tr>
|
480
|
-
<td
|
481
|
-
<td>the
|
482
|
-
|
483
|
-
RULESET_STMT (must be a ruleset).</td>
|
574
|
+
<td class="parameter_name"><p>a_this</p></td>
|
575
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
576
|
+
<td class="parameter_annotations"> </td>
|
484
577
|
</tr>
|
485
578
|
<tr>
|
486
|
-
<td
|
487
|
-
<td>the
|
579
|
+
<td class="parameter_name"><p>itemnr</p></td>
|
580
|
+
<td class="parameter_description"><p>the index into the declaration list.</p></td>
|
581
|
+
<td class="parameter_annotations"> </td>
|
488
582
|
</tr>
|
583
|
+
</tbody>
|
584
|
+
</table></div>
|
585
|
+
</div>
|
586
|
+
</div>
|
587
|
+
<hr>
|
588
|
+
<div class="refsect2">
|
589
|
+
<a name="cr-declaration-get-by-prop-name"></a><h3>cr_declaration_get_by_prop_name ()</h3>
|
590
|
+
<pre class="programlisting"><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="returnvalue">CRDeclaration</span></a> *
|
591
|
+
cr_declaration_get_by_prop_name (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>,
|
592
|
+
<em class="parameter"><code>const <span class="type">guchar</span> *a_str</code></em>);</pre>
|
593
|
+
<p>Use property name to get a CRDeclaration from the declaration list.
|
594
|
+
Returns <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> with property name a_prop, or NULL if not found.</p>
|
595
|
+
<div class="refsect3">
|
596
|
+
<a name="id-1.2.5.6.13.5"></a><h4>Parameters</h4>
|
597
|
+
<div class="informaltable"><table width="100%" border="0">
|
598
|
+
<colgroup>
|
599
|
+
<col width="150px" class="parameters_name">
|
600
|
+
<col class="parameters_description">
|
601
|
+
<col width="200px" class="parameters_annotations">
|
602
|
+
</colgroup>
|
603
|
+
<tbody>
|
489
604
|
<tr>
|
490
|
-
<td
|
491
|
-
<td>the
|
605
|
+
<td class="parameter_name"><p>a_this</p></td>
|
606
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
607
|
+
<td class="parameter_annotations"> </td>
|
492
608
|
</tr>
|
493
609
|
<tr>
|
494
|
-
<td
|
495
|
-
<td>the
|
610
|
+
<td class="parameter_name"><p>a_prop</p></td>
|
611
|
+
<td class="parameter_description"><p>the property name to search for.</p></td>
|
612
|
+
<td class="parameter_annotations"> </td>
|
496
613
|
</tr>
|
497
614
|
</tbody>
|
498
615
|
</table></div>
|
499
616
|
</div>
|
617
|
+
</div>
|
500
618
|
<hr>
|
501
619
|
<div class="refsect2">
|
502
|
-
<a name="cr-declaration-
|
503
|
-
<pre class="programlisting"><
|
504
|
-
|
505
|
-
<
|
506
|
-
|
507
|
-
|
508
|
-
<
|
509
|
-
<
|
620
|
+
<a name="cr-declaration-to-string"></a><h3>cr_declaration_to_string ()</h3>
|
621
|
+
<pre class="programlisting"><span class="returnvalue">gchar</span> *
|
622
|
+
cr_declaration_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
623
|
+
<em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>);</pre>
|
624
|
+
<p>Serializes the declaration into a string
|
625
|
+
Returns the serialized form the declaration. The caller must
|
626
|
+
free the string using <code class="function">g_free()</code>.</p>
|
627
|
+
<div class="refsect3">
|
628
|
+
<a name="id-1.2.5.6.14.5"></a><h4>Parameters</h4>
|
629
|
+
<div class="informaltable"><table width="100%" border="0">
|
630
|
+
<colgroup>
|
631
|
+
<col width="150px" class="parameters_name">
|
632
|
+
<col class="parameters_description">
|
633
|
+
<col width="200px" class="parameters_annotations">
|
634
|
+
</colgroup>
|
510
635
|
<tbody>
|
511
636
|
<tr>
|
512
|
-
<td
|
513
|
-
<td>the
|
514
|
-
|
515
|
-
</tr>
|
516
|
-
<tr>
|
517
|
-
<td><p><span class="term"><em class="parameter"><code>a_enc</code></em> :</span></p></td>
|
518
|
-
<td>the encoding of a_str</td>
|
637
|
+
<td class="parameter_name"><p>a_this</p></td>
|
638
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
639
|
+
<td class="parameter_annotations"> </td>
|
519
640
|
</tr>
|
520
641
|
<tr>
|
521
|
-
<td
|
522
|
-
<td>the
|
642
|
+
<td class="parameter_name"><p>a_indent</p></td>
|
643
|
+
<td class="parameter_description"><p>the number of indentation white char
|
644
|
+
to put before the actual serialisation.</p></td>
|
645
|
+
<td class="parameter_annotations"> </td>
|
523
646
|
</tr>
|
524
647
|
</tbody>
|
525
648
|
</table></div>
|
526
649
|
</div>
|
650
|
+
</div>
|
527
651
|
<hr>
|
528
652
|
<div class="refsect2">
|
529
|
-
<a name="cr-declaration-
|
530
|
-
<pre class="programlisting"><
|
531
|
-
|
532
|
-
<
|
533
|
-
|
534
|
-
|
535
|
-
<
|
536
|
-
<
|
653
|
+
<a name="cr-declaration-list-to-string"></a><h3>cr_declaration_list_to_string ()</h3>
|
654
|
+
<pre class="programlisting"><span class="returnvalue">guchar</span> *
|
655
|
+
cr_declaration_list_to_string (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
656
|
+
<em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>);</pre>
|
657
|
+
<p>Serializes the declaration list into a string</p>
|
658
|
+
<div class="refsect3">
|
659
|
+
<a name="id-1.2.5.6.15.5"></a><h4>Parameters</h4>
|
660
|
+
<div class="informaltable"><table width="100%" border="0">
|
661
|
+
<colgroup>
|
662
|
+
<col width="150px" class="parameters_name">
|
663
|
+
<col class="parameters_description">
|
664
|
+
<col width="200px" class="parameters_annotations">
|
665
|
+
</colgroup>
|
537
666
|
<tbody>
|
538
667
|
<tr>
|
539
|
-
<td
|
540
|
-
<td>the current declaration
|
668
|
+
<td class="parameter_name"><p>a_this</p></td>
|
669
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
670
|
+
<td class="parameter_annotations"> </td>
|
541
671
|
</tr>
|
542
672
|
<tr>
|
543
|
-
<td
|
544
|
-
<td>the
|
545
|
-
|
546
|
-
<
|
547
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
548
|
-
<td>the list with a_new prepended or NULL in case of error.</td>
|
673
|
+
<td class="parameter_name"><p>a_indent</p></td>
|
674
|
+
<td class="parameter_description"><p>the number of indentation white char
|
675
|
+
to put before the actual serialisation.</p></td>
|
676
|
+
<td class="parameter_annotations"> </td>
|
549
677
|
</tr>
|
550
678
|
</tbody>
|
551
679
|
</table></div>
|
552
680
|
</div>
|
553
|
-
<hr>
|
554
|
-
<div class="refsect2">
|
555
|
-
<a name="cr-declaration-ref"></a><h3>cr_declaration_ref ()</h3>
|
556
|
-
<pre class="programlisting"><span class="returnvalue">void</span> cr_declaration_ref (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);</pre>
|
557
|
-
<p>
|
558
|
-
Increases the ref count of the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.
|
559
|
-
</p>
|
560
|
-
<div class="variablelist"><table border="0">
|
561
|
-
<col align="left" valign="top">
|
562
|
-
<tbody><tr>
|
563
|
-
<td><p><span class="term"><em class="parameter"><code>a_this</code></em> :</span></p></td>
|
564
|
-
<td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
|
565
|
-
</tr></tbody>
|
566
|
-
</table></div>
|
567
681
|
</div>
|
568
682
|
<hr>
|
569
683
|
<div class="refsect2">
|
570
|
-
<a name="cr-declaration-to-
|
571
|
-
<pre class="programlisting"><
|
572
|
-
|
573
|
-
<
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
<
|
684
|
+
<a name="cr-declaration-list-to-string2"></a><h3>cr_declaration_list_to_string2 ()</h3>
|
685
|
+
<pre class="programlisting"><span class="returnvalue">guchar</span> *
|
686
|
+
cr_declaration_list_to_string2 (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> const *a_this</code></em>,
|
687
|
+
<em class="parameter"><code><span class="type">gulong</span> a_indent</code></em>,
|
688
|
+
<em class="parameter"><code><span class="type">gboolean</span> a_one_decl_per_line</code></em>);</pre>
|
689
|
+
<p>Serializes the declaration list into a string
|
690
|
+
Returns the serialized form the declararation.</p>
|
691
|
+
<div class="refsect3">
|
692
|
+
<a name="id-1.2.5.6.16.5"></a><h4>Parameters</h4>
|
693
|
+
<div class="informaltable"><table width="100%" border="0">
|
694
|
+
<colgroup>
|
695
|
+
<col width="150px" class="parameters_name">
|
696
|
+
<col class="parameters_description">
|
697
|
+
<col width="200px" class="parameters_annotations">
|
698
|
+
</colgroup>
|
578
699
|
<tbody>
|
579
700
|
<tr>
|
580
|
-
<td
|
581
|
-
<td>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</td>
|
701
|
+
<td class="parameter_name"><p>a_this</p></td>
|
702
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
703
|
+
<td class="parameter_annotations"> </td>
|
582
704
|
</tr>
|
583
705
|
<tr>
|
584
|
-
<td
|
585
|
-
<td>the number of indentation white char
|
586
|
-
|
706
|
+
<td class="parameter_name"><p>a_indent</p></td>
|
707
|
+
<td class="parameter_description"><p>the number of indentation white char</p></td>
|
708
|
+
<td class="parameter_annotations"> </td>
|
587
709
|
</tr>
|
588
710
|
<tr>
|
589
|
-
<td
|
590
|
-
<td>
|
591
|
-
|
711
|
+
<td class="parameter_name"><p>a_one_decl_per_line</p></td>
|
712
|
+
<td class="parameter_description"><p>whether to output one doc per line or not.
|
713
|
+
to put before the actual serialisation.</p></td>
|
714
|
+
<td class="parameter_annotations"> </td>
|
592
715
|
</tr>
|
593
716
|
</tbody>
|
594
717
|
</table></div>
|
595
718
|
</div>
|
719
|
+
</div>
|
596
720
|
<hr>
|
597
721
|
<div class="refsect2">
|
598
|
-
<a name="cr-declaration-
|
599
|
-
<pre class="programlisting"><
|
600
|
-
<
|
601
|
-
|
602
|
-
|
603
|
-
</
|
604
|
-
<div class="
|
605
|
-
<
|
722
|
+
<a name="cr-declaration-ref"></a><h3>cr_declaration_ref ()</h3>
|
723
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
724
|
+
cr_declaration_ref (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);</pre>
|
725
|
+
<p>Increases the ref count of the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p>
|
726
|
+
<div class="refsect3">
|
727
|
+
<a name="id-1.2.5.6.17.5"></a><h4>Parameters</h4>
|
728
|
+
<div class="informaltable"><table width="100%" border="0">
|
729
|
+
<colgroup>
|
730
|
+
<col width="150px" class="parameters_name">
|
731
|
+
<col class="parameters_description">
|
732
|
+
<col width="200px" class="parameters_annotations">
|
733
|
+
</colgroup>
|
606
734
|
<tbody><tr>
|
607
|
-
<td
|
608
|
-
<td>
|
735
|
+
<td class="parameter_name"><p>a_this</p></td>
|
736
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
737
|
+
<td class="parameter_annotations"> </td>
|
609
738
|
</tr></tbody>
|
610
739
|
</table></div>
|
611
740
|
</div>
|
741
|
+
</div>
|
612
742
|
<hr>
|
613
743
|
<div class="refsect2">
|
614
|
-
<a name="cr-declaration-unref"></a><h3>cr_declaration_unref
|
615
|
-
<pre class="programlisting"><
|
616
|
-
<
|
617
|
-
Decrements the ref count of the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.
|
744
|
+
<a name="cr-declaration-unref"></a><h3>cr_declaration_unref ()</h3>
|
745
|
+
<pre class="programlisting"><span class="returnvalue">gboolean</span>
|
746
|
+
cr_declaration_unref (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);</pre>
|
747
|
+
<p>Decrements the ref count of the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.
|
618
748
|
If the ref count reaches zero, the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>
|
619
749
|
if destroyed.
|
620
|
-
</
|
621
|
-
|
622
|
-
|
623
|
-
<
|
624
|
-
<
|
625
|
-
<
|
626
|
-
<
|
627
|
-
|
628
|
-
<
|
629
|
-
<
|
630
|
-
|
631
|
-
|
632
|
-
</
|
633
|
-
</
|
750
|
+
Returns TRUE if <em class="parameter"><code>a_this</code></em>
|
751
|
+
was destroyed (ref count reached zero),
|
752
|
+
FALSE otherwise.</p>
|
753
|
+
<div class="refsect3">
|
754
|
+
<a name="id-1.2.5.6.18.5"></a><h4>Parameters</h4>
|
755
|
+
<div class="informaltable"><table width="100%" border="0">
|
756
|
+
<colgroup>
|
757
|
+
<col width="150px" class="parameters_name">
|
758
|
+
<col class="parameters_description">
|
759
|
+
<col width="200px" class="parameters_annotations">
|
760
|
+
</colgroup>
|
761
|
+
<tbody><tr>
|
762
|
+
<td class="parameter_name"><p>a_this</p></td>
|
763
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
764
|
+
<td class="parameter_annotations"> </td>
|
765
|
+
</tr></tbody>
|
634
766
|
</table></div>
|
635
767
|
</div>
|
636
768
|
</div>
|
769
|
+
<hr>
|
770
|
+
<div class="refsect2">
|
771
|
+
<a name="cr-declaration-destroy"></a><h3>cr_declaration_destroy ()</h3>
|
772
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
773
|
+
cr_declaration_destroy (<em class="parameter"><code><a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a> *a_this</code></em>);</pre>
|
774
|
+
<p>Destructor of the declaration list.</p>
|
775
|
+
<div class="refsect3">
|
776
|
+
<a name="id-1.2.5.6.19.5"></a><h4>Parameters</h4>
|
777
|
+
<div class="informaltable"><table width="100%" border="0">
|
778
|
+
<colgroup>
|
779
|
+
<col width="150px" class="parameters_name">
|
780
|
+
<col class="parameters_description">
|
781
|
+
<col width="200px" class="parameters_annotations">
|
782
|
+
</colgroup>
|
783
|
+
<tbody><tr>
|
784
|
+
<td class="parameter_name"><p>a_this</p></td>
|
785
|
+
<td class="parameter_description"><p>the current instance of <a class="link" href="libcroco-cr-declaration.html#CRDeclaration" title="struct CRDeclaration"><span class="type">CRDeclaration</span></a>.</p></td>
|
786
|
+
<td class="parameter_annotations"> </td>
|
787
|
+
</tr></tbody>
|
788
|
+
</table></div>
|
789
|
+
</div>
|
790
|
+
</div>
|
791
|
+
</div>
|
792
|
+
<div class="refsect1">
|
793
|
+
<a name="libcroco-cr-declaration.other_details"></a><h2>Types and Values</h2>
|
794
|
+
<div class="refsect2">
|
795
|
+
<a name="CRDeclaration"></a><h3>struct CRDeclaration</h3>
|
796
|
+
<pre class="programlisting">struct CRDeclaration {
|
797
|
+
/**The property.*/
|
798
|
+
CRString *property ;
|
799
|
+
|
800
|
+
/**The value of the property.*/
|
801
|
+
CRTerm *value ;
|
802
|
+
|
803
|
+
/*the ruleset that contains this declaration*/
|
804
|
+
CRStatement *parent_statement ;
|
805
|
+
|
806
|
+
/*the next declaration*/
|
807
|
+
CRDeclaration *next ;
|
808
|
+
|
809
|
+
/*the previous one declaration*/
|
810
|
+
CRDeclaration *prev ;
|
811
|
+
|
812
|
+
/*does the declaration have the important keyword ?*/
|
813
|
+
gboolean important ;
|
814
|
+
|
815
|
+
glong ref_count ;
|
816
|
+
|
817
|
+
CRParsingLocation location ;
|
818
|
+
/*reserved for future usage*/
|
819
|
+
gpointer rfu0 ;
|
820
|
+
gpointer rfu1 ;
|
821
|
+
gpointer rfu2 ;
|
822
|
+
gpointer rfu3 ;
|
823
|
+
};
|
824
|
+
</pre>
|
637
825
|
</div>
|
638
|
-
<div class="footer">
|
639
826
|
<hr>
|
640
|
-
|
827
|
+
<div class="refsect2">
|
828
|
+
<a name="CRStatement"></a><h3>CRStatement</h3>
|
829
|
+
<pre class="programlisting">typedef struct {
|
830
|
+
/**
|
831
|
+
*The type of the statement.
|
832
|
+
*/
|
833
|
+
enum CRStatementType type ;
|
834
|
+
|
835
|
+
union
|
836
|
+
{
|
837
|
+
CRRuleSet *ruleset ;
|
838
|
+
CRAtImportRule *import_rule ;
|
839
|
+
CRAtMediaRule *media_rule ;
|
840
|
+
CRAtPageRule *page_rule ;
|
841
|
+
CRAtCharsetRule *charset_rule ;
|
842
|
+
CRAtFontFaceRule *font_face_rule ;
|
843
|
+
} kind ;
|
844
|
+
|
845
|
+
/*
|
846
|
+
*the specificity of the selector
|
847
|
+
*that matched this statement.
|
848
|
+
*This is only used by the cascading
|
849
|
+
*order determination algorithm.
|
850
|
+
*/
|
851
|
+
gulong specificity ;
|
852
|
+
|
853
|
+
/*
|
854
|
+
*the style sheet that contains
|
855
|
+
*this css statement.
|
856
|
+
*/
|
857
|
+
CRStyleSheet *parent_sheet ;
|
858
|
+
CRStatement *next ;
|
859
|
+
CRStatement *prev ;
|
860
|
+
|
861
|
+
CRParsingLocation location ;
|
862
|
+
|
863
|
+
/**
|
864
|
+
*a custom pointer useable by
|
865
|
+
*applications that use libcroco.
|
866
|
+
*libcroco itself will never modify
|
867
|
+
*this pointer.
|
868
|
+
*/
|
869
|
+
gpointer app_data ;
|
870
|
+
|
871
|
+
/**
|
872
|
+
*a custom pointer used
|
873
|
+
*by the upper layers of libcroco.
|
874
|
+
*application should never use this
|
875
|
+
*pointer.
|
876
|
+
*/
|
877
|
+
gpointer croco_data ;
|
878
|
+
} CRStatement;
|
879
|
+
</pre>
|
880
|
+
</div>
|
881
|
+
</div>
|
882
|
+
</div>
|
883
|
+
<div class="footer">
|
884
|
+
<hr>Generated by GTK-Doc V1.24.1</div>
|
641
885
|
</body>
|
642
886
|
</html>
|