mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
67 lines
1.6 KiB
XML
67 lines
1.6 KiB
XML
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
|
|
|
<chapter id="text"
|
|
xmlns:xi="http://www.w3.org/2003/XInclude">
|
|
<title>Text</title>
|
|
|
|
<epigraph>
|
|
<attribution>Antoine de Saint-Exupery</attribution>
|
|
<para>A rock pile ceases to be a rock pile the moment a single man
|
|
contemplates it, bearing within him the image of a cathedral.</para>
|
|
</epigraph>
|
|
|
|
<section id="text-introduction">
|
|
<title>Introduction</title>
|
|
|
|
</section>
|
|
|
|
<section id="text-shadow">
|
|
<title>Drawing a shadow under the text</title>
|
|
|
|
<section>
|
|
<title>Problem</title>
|
|
|
|
<para>You want to draw a shadow under the text displayed by a
|
|
ClutterText actor.</para>
|
|
</section>
|
|
|
|
<section>
|
|
<title>Solution</title>
|
|
|
|
<screenshot>
|
|
<mediaobject>
|
|
<imageobject>
|
|
<imagedata format="PNG"
|
|
fileref="images/text-shadow.png" />
|
|
</imageobject>
|
|
<alt>
|
|
<para>A ClutterText actor painting a shadow underneath its
|
|
contents</para>
|
|
</alt>
|
|
</mediaobject>
|
|
</screenshot>
|
|
</section>
|
|
|
|
<section>
|
|
<title>Discussion</title>
|
|
|
|
</section>
|
|
|
|
<section>
|
|
<title>Full example</title>
|
|
|
|
<example id="text-shadow-example">
|
|
<title>Creating a shadow of a text</title>
|
|
<programlisting>
|
|
<xi:include href="examples/text-shadow.c" parse="text">
|
|
<xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback>
|
|
</xi:include>
|
|
</programlisting>
|
|
</example>
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</chapter>
|