2008-12-11 16:57:46 +00:00
|
|
|
<?xml version='1.0' encoding='UTF-8'?>
|
|
|
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
|
2010-06-29 17:04:52 +00:00
|
|
|
<!ENTITY appurl "http://www.clutter-project.org">
|
|
|
|
<!ENTITY docurl "http://docs.clutter-project.org/docs/clutter-cookbook">
|
2010-06-30 16:18:15 +00:00
|
|
|
<!ENTITY license_url "http://creativecommons.org/licenses/by-nc-sa/2.0/uk/">
|
|
|
|
<!ENTITY ebassi_mail "ebassi@linux.intel.com">
|
|
|
|
<!ENTITY elliot_mail "elliot.smith@intel.com">
|
2009-09-03 12:04:59 +00:00
|
|
|
<!ENTITY apiversion "@CLUTTER_API_VERSION@">
|
2008-12-11 16:57:46 +00:00
|
|
|
]>
|
|
|
|
|
2010-07-01 10:29:46 +00:00
|
|
|
<book lang="en"
|
|
|
|
xmlns:xi="http://www.w3.org/2003/XInclude">
|
2010-07-01 10:08:51 +00:00
|
|
|
<bookinfo>
|
2010-06-30 16:18:15 +00:00
|
|
|
<authorgroup>
|
|
|
|
<author>
|
|
|
|
<firstname>Emmanuele</firstname>
|
|
|
|
<surname>Bassi</surname>
|
|
|
|
<address><email>&ebassi_mail;</email></address>
|
|
|
|
</author>
|
|
|
|
<author>
|
|
|
|
<firstname>Elliot</firstname>
|
|
|
|
<surname>Smith</surname>
|
|
|
|
<address><email>&elliot_mail;</email></address>
|
|
|
|
</author>
|
|
|
|
</authorgroup>
|
2008-12-11 16:57:46 +00:00
|
|
|
<copyright>
|
2010-06-29 16:57:29 +00:00
|
|
|
<year>2009, 2010</year>
|
2008-12-11 16:57:46 +00:00
|
|
|
<holder>Intel Corporation</holder>
|
|
|
|
</copyright>
|
|
|
|
<legalnotice>
|
2010-06-30 16:18:15 +00:00
|
|
|
<para>Permission is granted to copy, distribute and/or modify this
|
2010-06-30 16:26:34 +00:00
|
|
|
document under the terms of the <ulink url="&license_url;">Creative
|
2010-06-30 16:18:15 +00:00
|
|
|
Commons Attribution-Non-Commercial-Share Alike 2.0 UK: England &
|
|
|
|
Wales</ulink> as published by Creative Commons.</para>
|
2008-12-11 16:57:46 +00:00
|
|
|
</legalnotice>
|
2009-09-03 12:04:59 +00:00
|
|
|
<title>The Clutter Cookbook</title>
|
|
|
|
<releaseinfo>for Clutter &apiversion;</releaseinfo>
|
2010-07-01 10:08:51 +00:00
|
|
|
</bookinfo>
|
2008-12-11 16:57:46 +00:00
|
|
|
|
2010-07-01 10:29:46 +00:00
|
|
|
<xi:include href="introduction.xml" />
|
|
|
|
<xi:include href="actors.xml" />
|
|
|
|
<xi:include href="events.xml" />
|
|
|
|
<xi:include href="textures.xml" />
|
|
|
|
<!--
|
|
|
|
<xi:include href="animations.xml" />
|
|
|
|
-->
|
2008-12-11 16:57:46 +00:00
|
|
|
|
2010-07-01 10:08:51 +00:00
|
|
|
<appendix id="contributing">
|
2008-12-11 16:57:46 +00:00
|
|
|
<title>Contributing to this document</title>
|
|
|
|
|
2010-07-06 15:00:33 +00:00
|
|
|
<para>This document is written in
|
2010-07-06 15:04:46 +00:00
|
|
|
<ulink url="http://docbook.org/">Docbook XML</ulink>. The source files
|
2010-07-06 15:00:33 +00:00
|
|
|
for this document are located in the subdirectory
|
|
|
|
<filename>doc/cookbook</filename> inside the Clutter source directory.</para>
|
|
|
|
|
|
|
|
<para>To maintain some degree of consistency, try to stick to the
|
|
|
|
following broad guidelines about how to write Docbook for this
|
|
|
|
cookbook:</para>
|
|
|
|
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>If adding a new recipe, use the
|
|
|
|
<filename>recipe-template.xml</filename> XML file as a basis.
|
|
|
|
You can find it in the <filename><clutter_source>/doc/cookbook/</filename>
|
|
|
|
directory.</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Try to indent your XML sensibly using 2 spaces per level
|
|
|
|
(we're not too strict, but some indentation helps reading
|
|
|
|
the source).</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Stick to a column width of around 80 characters.</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Use the <filename> element for file
|
|
|
|
and directory names.</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Use the <property> element for property names
|
|
|
|
(e.g. GObject properties).</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Use the <type> element for GObject class
|
|
|
|
names.</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Use the <constant> element for C defines.</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Use the <keycap> element for keys, where
|
|
|
|
you are referring to what's actually printed on the key, e.g.
|
|
|
|
<keycap>Shift</keycap>. If you're referring to the key some
|
|
|
|
other way (e.g. "the Control key"), don't use
|
|
|
|
<keycap>.</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Use the <function> element for functions;
|
|
|
|
the style adopted is to give the function name followed by
|
|
|
|
empty brackets, e.g. <function>clutter_actor_set_size()</function>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2010-07-06 15:08:43 +00:00
|
|
|
<listitem>
|
|
|
|
<para>Use the <note> element for asides which might
|
|
|
|
otherwise interrupt the flow of the recipe.</para>
|
|
|
|
</listitem>
|
2010-07-06 15:00:33 +00:00
|
|
|
</itemizedlist>
|
|
|
|
|
2010-07-01 10:08:51 +00:00
|
|
|
</appendix>
|
2008-12-11 16:57:46 +00:00
|
|
|
|
|
|
|
</book>
|