| 1 |
<?xml version="1.0"?> |
| 2 |
<page id="Regress.test_nested_parameter" |
| 3 |
type="topic" |
| 4 |
style="function" |
| 5 |
xmlns="http://projectmallard.org/1.0/" |
| 6 |
xmlns:api="http://projectmallard.org/experimental/api/" |
| 7 |
xmlns:ui="http://projectmallard.org/1.0/ui/"> |
| 8 |
<info> |
| 9 |
<link xref="index" group="function" type="guide"/> |
| 10 |
<api:function> |
| 11 |
<api:returns> |
| 12 |
<api:type>void</api:type> |
| 13 |
</api:returns> |
| 14 |
<api:name>regress_test_nested_parameter</api:name> |
| 15 |
<api:arg> |
| 16 |
<api:type>int</api:type> |
| 17 |
<api:name>a</api:name> |
| 18 |
</api:arg> |
| 19 |
</api:function> |
| 20 |
</info> |
| 21 |
<title>regress_test_nested_parameter</title> |
| 22 |
<synopsis><code mime="text/x-csrc"> |
| 23 |
void regress_test_nested_parameter (int a); |
| 24 |
</code></synopsis> |
| 25 |
<p><informaltable> |
| 26 |
<tgroup cols="3"> |
| 27 |
<thead> |
| 28 |
<row> |
| 29 |
<entry>Syntax</entry> |
| 30 |
<entry>Explanation</entry> |
| 31 |
<entry>Examples</entry> |
| 32 |
</row> |
| 33 |
</thead> |
| 34 |
<tbody> |
| 35 |
<row> |
| 36 |
<entry>rgb(@r, @g, @b)</entry> |
| 37 |
<entry>An opaque color; @r, @g, @b can be either integers between |
| 38 |
0 and 255 or percentages</entry> |
| 39 |
<entry><literallayout>rgb(128, 10, 54) |
| 40 |
rgb(20%, 30%, 0%)</literallayout></entry> |
| 41 |
</row> |
| 42 |
<row> |
| 43 |
<entry>rgba(@r, @g, @b, <code>a</code>)</entry> |
| 44 |
<entry>A translucent color; @r, @g, @b are as in the previous row, |
| 45 |
<code>a</code> is a floating point number between 0 and 1</entry> |
| 46 |
<entry><literallayout>rgba(255, 255, 0, 0.5)</literallayout></entry> |
| 47 |
</row> |
| 48 |
</tbody> |
| 49 |
</tgroup> |
| 50 |
</informaltable></p> <p>What we're testing here is that the scanner ignores the <code>a</code> nested inside XML.</p> |
| 51 |
|
| 52 |
<terms> |
| 53 |
<item> |
| 54 |
<title><code>a</code></title> |
| 55 |
<p>An integer</p> |
| 56 |
</item> |
| 57 |
<item> |
| 58 |
<title><code>Returns</code></title> |
| 59 |
|
| 60 |
</item> |
| 61 |
</terms> |
| 62 |
|
| 63 |
</page> |