1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>Part III. Running Clutter</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="Clutter Reference Manual">
8 <link rel="up" href="index.html" title="Clutter Reference Manual">
9 <link rel="prev" href="building-clutter.html" title="Part II. Building Clutter">
10 <link rel="next" href="clutterbase.html" title="Part IV. Clutter Core Reference">
11 <meta name="generator" content="GTK-Doc V1.18.1 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
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="2"><tr valign="middle">
16 <td><a accesskey="p" href="building-clutter.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
19 <th width="100%" align="center">Clutter Reference Manual</th>
20 <td><a accesskey="n" href="clutterbase.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <div class="titlepage"><div>
24 <div><h1 class="title">
25 <a name="running-clutter"></a>Part III. Running Clutter</h1></div>
26 <div><div class="author">
28 <span class="firstname">Emmanuele</span> <span class="surname">Bassi</span>
30 <div class="affiliation"><div class="address"><p><br>
31 <code class="email"><<a class="email" href="mailto:ebassilinux.intel.com">ebassi<em class="parameter"><code>linux.intel.com</code></em></a>></code><br>
35 <div class="partintro">
38 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
39 <a name="environment-variables"></a>Environment Variables</h2></div></div></div>
41 Clutter automatically checks environment variables during
42 its initialization. These environment variables are meant
43 as debug tools, overrides for default behaviours or to
44 address known hardware issues:
46 <div class="variablelist"><table border="0">
47 <col align="left" valign="top">
50 <td><p><span class="term">CLUTTER_TEXT_DIRECTION</span></p></td>
51 <td><p>Forces the text direction of every Pango layout
52 inside Clutter. Valid values are: ltr or rtl</p></td>
55 <td><p><span class="term">CLUTTER_SHOW_FPS</span></p></td>
56 <td><p>Prints out the frames per second achieved by Clutter.</p></td>
59 <td><p><span class="term">CLUTTER_DEFAULT_FPS</span></p></td>
60 <td><p>Sets the default framerate.</p></td>
63 <td><p><span class="term">CLUTTER_DISABLE_MIPMAPPED_TEXT</span></p></td>
64 <td><p>Disables mipmapping when rendering text.</p></td>
67 <td><p><span class="term">CLUTTER_FUZZY_PICK</span></p></td>
68 <td><p>Enables "fuzzy picking".</p></td>
71 <td><p><span class="term">CLUTTER_DEBUG</span></p></td>
72 <td><p>Enables debugging modes for Clutter; debugging modes are
73 used to print debugging messages on the console. Clutter must be
74 compiled with the --enable-debug configuration switch for these
75 messages to be printed out. Multiple debugging modes can be
76 enabled by separating them using a colon (":") or a comma
80 <td><p><span class="term">CLUTTER_PAINT</span></p></td>
81 <td><p>Enables paint debugging modes for Clutter; the modes change
82 the way Clutter paints a scene and are useful for debugging the
83 behaviour of the paint cycle.</p></td>
86 <td><p><span class="term">CLUTTER_ENABLE_DIAGNOSTIC</span></p></td>
87 <td><p>When set to 1, enables diagnostic messages for run-time
88 deprecations, similarly to <code class="varname">G_ENABLE_DIAGNOSTIC</code> in
93 <p>On the GLX backend there is also:</p>
94 <div class="variablelist"><table border="0">
95 <col align="left" valign="top">
97 <td><p><span class="term">CLUTTER_VBLANK</span></p></td>
98 <td><p>Selects the sync-to-vblank mode to be used.
99 Valid values are: none, dri or glx</p></td>
103 <div class="section">
104 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
105 <a name="command-line"></a>Command Line Arguments</h2></div></div></div>
106 <p>Similarly to the environment variables, Clutter also installs
107 command line switches that are parsed during initialization:</p>
108 <div class="variablelist"><table border="0">
109 <col align="left" valign="top">
112 <td><p><span class="term">--clutter-show-fps</span></p></td>
113 <td><p>Equivalent of CLUTTER_SHOW_FPS. Prints the
114 current rendering speed in frames per second.</p></td>
117 <td><p><span class="term">--clutter-default-fps=FPS</span></p></td>
118 <td><p>Equivalent of CLUTTER_DEFAULT_FPS. Sets the
119 default framerate.</p></td>
122 <td><p><span class="term">--clutter-text-direction=DIRECTION</span></p></td>
123 <td><p>Equivalent of CLUTTER_TEXT_DIRECTION. Sets the
124 direction for the text.</p></td>
127 <td><p><span class="term">--clutter-disable-mipmapped-text</span></p></td>
128 <td><p>Equivalent of CLUTTER_DISABLE_MIPMAPPED_TEXT.
129 Disables mipmapping when rendering text.</p></td>
132 <td><p><span class="term">--clutter-use-fuzzy-picking</span></p></td>
133 <td><p>Equivalent of CLUTTER_FUZZY_PICK. Enables
134 "fuzzy" picking.</p></td>
137 <td><p><span class="term">--clutter-debug=FLAGS</span></p></td>
138 <td><p>Equivalent of CLUTTER_DEBUG. Sets FLAGS as the
139 Clutter debugging flags.</p></td>
142 <td><p><span class="term">--clutter-no-debug=FLAGS</span></p></td>
143 <td><p>Unsets FLAGS from the Clutter debugging
147 <td><p><span class="term">--cogl-debug=FLAGS</span></p></td>
148 <td><p>Equivalent of COGL_DEBUG. Sets FLAGS as the
149 Cogl debugging flags.</p></td>
152 <td><p><span class="term">--cogl-no-debug=FLAGS</span></p></td>
153 <td><p>Unsets FLAGS from the Cogl debugging
157 <td><p><span class="term">--clutter-enable-accessibility</span></p></td>
158 <td><p>Enables accessibility support.</p></td>
162 <p>The X11 backends also have the following command line
164 <div class="variablelist"><table border="0">
165 <col align="left" valign="top">
168 <td><p><span class="term">--display=DISPLAY</span></p></td>
169 <td><p>Sets the X11 display to use.</p></td>
172 <td><p><span class="term">--screen=SCREEN</span></p></td>
173 <td><p>Sets the X11 screen number to use.</p></td>
176 <td><p><span class="term">--synch</span></p></td>
177 <td><p>Make X11 calls synchronous.</p></td>
182 <p>The GLX backend also has the following command line option:</p>
183 <div class="variablelist"><table border="0">
184 <col align="left" valign="top">
186 <td><p><span class="term">--vblank=METHOD</span></p></td>
187 <td><p>Equivalent of CLUTTER_VBLANK. Sets the sync-to-vblank
188 method to be used.</p></td>
191 <div class="section">
192 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
193 <a name="clutter-Debug-Flags"></a>Debug flags for Clutter</h2></div></div></div>
194 <p>The debugging flags can be used for the CLUTTER_DEBUG environment
195 variable and the --clutter-debug command line switch. Multiple flags can
196 be separated by a colon (:) or a comma (,).</p>
197 <div class="variablelist"><table border="0">
198 <col align="left" valign="top">
201 <td><p><span class="term">actor</span></p></td>
202 <td><p>Generic actor-related notes</p></td>
205 <td><p><span class="term">animation</span></p></td>
206 <td><p><a class="link" href="clutter-Implicit-Animations.html#ClutterAnimation"><span class="type">ClutterAnimation</span></a> notes</p></td>
209 <td><p><span class="term">backend</span></p></td>
210 <td><p>Backend-related notes, including initialization of
211 the backend features and GL context creation</p></td>
214 <td><p><span class="term">event</span></p></td>
215 <td><p>Event handling notes</p></td>
218 <td><p><span class="term">layout</span></p></td>
219 <td><p><a class="link" href="ClutterLayoutManager.html" title="ClutterLayoutManager"><span class="type">ClutterLayoutManager</span></a> notes</p></td>
222 <td><p><span class="term">misc</span></p></td>
223 <td><p>Miscellaneous notes</p></td>
226 <td><p><span class="term">scheduler</span></p></td>
227 <td><p>Notes related to timelines and the master
231 <td><p><span class="term">script</span></p></td>
232 <td><p>Notes related to <a class="link" href="ClutterScript.html" title="ClutterScript"><span class="type">ClutterScript</span></a></p></td>
236 <p>It is possible to get all the debugging notes using the
237 special "all" flag.</p>
239 <div class="section">
240 <div class="titlepage"><div><div><h2 class="title" style="clear: both">
241 <a name="configuration-file"></a>Configuration File</h2></div></div></div>
242 <p>Clutter will look for files named <code class="filename">settings.ini</code>
243 located in the <code class="filename">/etc/clutter-1.0</code> and
244 <code class="filename">$XDG_CONFIG_HOME/clutter-1.0</code> directories. These files
245 must be valid key files (see <a href="../glib/glib-Key-value-file-parser.html#GKeyFile"><span class="type">GKeyFile</span></a> in the GLib documentation) and may
246 have three sections:</p>
247 <div class="variablelist"><table border="0">
248 <col align="left" valign="top">
251 <td><p><span class="term">Environment</span></p></td>
252 <td><p>The keys in this section map the environment variables
253 honoured by Clutter.</p></td>
256 <td><p><span class="term">Debug</span></p></td>
257 <td><p>The keys in this section related to the debugging notes
258 that Clutter exposes when compiled with debugging support; similarly to
259 the environment variables and command line arguments related to the
260 debugging notes, Clutter must be compiled with support for these notes
261 in order to use them.</p></td>
264 <td><p><span class="term">Settings</span></p></td>
265 <td><p>The keys in this section strictly map to the <a href="../gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>
266 properties exposed by the <a class="link" href="ClutterSettings.html" title="ClutterSettings"><span class="type">ClutterSettings</span></a> type; if Clutter is running
267 on an X11 platform, the XSettings manager will take precedence over the
268 values specified in the <code class="filename">settings.ini</code>
273 <div class="section">
274 <div class="titlepage"><div><div><h3 class="title">
275 <a name="configuration-keys-environment"></a>Keys available for the Environment group</h3></div></div></div>
276 <div class="variablelist"><table border="0">
277 <col align="left" valign="top">
280 <td><p><span class="term">ShowFps</span></p></td>
281 <td><p>A boolean value, equivalent to setting
282 <code class="code">CLUTTER_SHOW_FPS</code>.</p></td>
285 <td><p><span class="term">DisableMipmappedText</span></p></td>
286 <td><p>A boolean value, equivalent to setting
287 <code class="code">CLUTTER_DISABLE_MIPMAPPED_TEXT</code>.</p></td>
290 <td><p><span class="term">UseFuzzyPicking</span></p></td>
291 <td><p>A boolean value, equivalent to setting
292 <code class="code">CLUTTER_FUZZY_PICK</code>.</p></td>
295 <td><p><span class="term">EnableAccessibility</span></p></td>
296 <td><p>A boolean value, equivalent to setting
297 <code class="code">CLUTTER_ENABLE_ACCESSIBILITY</code>.</p></td>
300 <td><p><span class="term">DefaultFps</span></p></td>
301 <td><p>An integer value, equivalent to setting
302 <code class="code">CLUTTER_DEFAULT_FPS</code>.</p></td>
305 <td><p><span class="term">TextDirection</span></p></td>
306 <td><p>A string value, equivalent to setting
307 <code class="code">CLUTTER_TEXT_DIRECTION</code>.</p></td>
312 <div class="section">
313 <div class="titlepage"><div><div><h3 class="title">
314 <a name="configuration-keys-debug"></a>Keys available for the Debug group</h3></div></div></div>
315 <div class="variablelist"><table border="0">
316 <col align="left" valign="top">
319 <td><p><span class="term">Debug</span></p></td>
320 <td><p>A string containing the debugging flags, in the same
321 format that should be used with the <code class="code">CLUTTER_DEBUG</code>
322 environment variable.</p></td>
325 <td><p><span class="term">PaintDebug</span></p></td>
326 <td><p>A string containing the paint debugging flags, in the same
327 format that should be used with the <code class="code">CLUTTER_PAINT</code>
328 environment variable.</p></td>
331 <td><p><span class="term">PickDebug</span></p></td>
332 <td><p>A string containing the pick debugging flags, in the same
333 format that should be used with the <code class="code">CLUTTER_PICK</code>
334 environment variable.</p></td>
344 Generated by GTK-Doc V1.18.1</div>