| 1 |
<part id="clutter-overview"> |
| 2 |
<partinfo> |
| 3 |
<author> |
| 4 |
<firstname>Emmanuele</firstname> |
| 5 |
<surname>Bassi</surname> |
| 6 |
<affiliation> |
| 7 |
<address> |
| 8 |
<email>[email protected]</email> |
| 9 |
</address> |
| 10 |
</affiliation> |
| 11 |
</author> |
| 12 |
</partinfo> |
| 13 |
|
| 14 |
<title>Overview</title> |
| 15 |
|
| 16 |
<partintro> |
| 17 |
|
| 18 |
<para>Clutter is a GObject based library for creating fast, visually |
| 19 |
rich, graphical user interfaces.</para> |
| 20 |
|
| 21 |
<para>Clutter works by manipulating a scene-graph of 2D surfaces, or |
| 22 |
'actors', inside a 3D space.</para> |
| 23 |
|
| 24 |
<para>#ClutterActor is the base class for such surfaces. All |
| 25 |
#ClutterActor<!-- -->s can be positioned, scaled and rotated in 3D space. |
| 26 |
In addition, other properties can be set, such as 2D clipping, children and |
| 27 |
opacity. Tranforms applied to a parent actor also apply to any children. |
| 28 |
Actors are also able to receive events.</para> |
| 29 |
|
| 30 |
<para>Subclasses of #ClutterActor include #ClutterStage, #ClutterTexture, |
| 31 |
#ClutterText, #ClutterRectangle, #ClutterCairoTexture, #ClutterGroup and |
| 32 |
#ClutterBox. #ClutterActor<!-- -->s are added to a parent, transformed |
| 33 |
and then made visible.</para> |
| 34 |
|
| 35 |
<para>#ClutterStage is the top level #ClutterActor - it's the |
| 36 |
representation of a window, or framebuffer. It is created automatically |
| 37 |
when Clutter is initialised. #ClutterStage is a #ClutterGroup, a class |
| 38 |
implementing the #ClutterContainer interface.</para> |
| 39 |
|
| 40 |
<para>Clutter allows explicit positioning and sizing through the |
| 41 |
#ClutterFixedLayout layout manager; and implicit positioning and sizing |
| 42 |
through fluid layout managers like #ClutterBoxLayout, #ClutterFlowLayout |
| 43 |
and #ClutterTableLayout. Actors inside fixed layout managers like |
| 44 |
#ClutterGroup and #ClutterStage can also be positioned and sized implicitly |
| 45 |
using the #ClutterConstraint sub-classes.</para> |
| 46 |
|
| 47 |
<para>#ClutterTimeline<!-- -->s provide the basis for Clutter's animation |
| 48 |
utilities. #ClutterActor<!-- -->s can be animated using explicit animations |
| 49 |
through the various #ClutterBehaviour implementations, or implicit |
| 50 |
animations, through the clutter_actor_animate() function. Animations can |
| 51 |
also be defined as named states through the #ClutterState class.</para> |
| 52 |
|
| 53 |
<para>Clutter further contains a number of utilities, including; |
| 54 |
#ClutterScript - for loading 'UI definition' files formatted in |
| 55 |
<ulink type="http" url="http://json.org">JSON</ulink>; #ClutterShader - a |
| 56 |
class for applying GPU shaders to actors, #ClutterModel - a utility class |
| 57 |
for MVC list type implementations; #ClutterAction<!-- -->s, |
| 58 |
#ClutterConstraint<!-- -->s and #ClutterEffect<!-- -->s.</para> |
| 59 |
|
| 60 |
</partintro> |
| 61 |
|
| 62 |
</part> |