mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
script, docs: Update documentation for alphas
It is now possible to have Alpha instances defined explicitly for behaviours, so we need to fix the documentation.
This commit is contained in:
parent
f0ed71c77d
commit
01bc3fa2c8
@ -86,8 +86,8 @@
|
|||||||
* "angle-end" : 360.0,
|
* "angle-end" : 360.0,
|
||||||
* "axis" : "z-axis",
|
* "axis" : "z-axis",
|
||||||
* "alpha" : {
|
* "alpha" : {
|
||||||
* "timeline" : { "duration" : 4000, "fps" : 60, "loop" : true },
|
* "timeline" : { "duration" : 4000, "loop" : true },
|
||||||
* "function" : "sine"
|
* "mode" : "easeInSine"
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ]|
|
* ]|
|
||||||
@ -105,13 +105,35 @@
|
|||||||
* ]|
|
* ]|
|
||||||
*
|
*
|
||||||
* A #ClutterAlpha belonging to a #ClutterBehaviour can only be defined
|
* A #ClutterAlpha belonging to a #ClutterBehaviour can only be defined
|
||||||
* implicitely. A #ClutterTimeline belonging to a #ClutterAlpha can be
|
* implicitly like in the example above, or explicitly by setting the
|
||||||
* either defined implicitely or explicitely. Implicitely defined
|
* "alpha" property to point to a previously defined #ClutterAlpha, e.g.:
|
||||||
* #ClutterAlpha<!-- -->s and #ClutterTimeline<!-- -->s can omit the
|
*
|
||||||
* <varname>id</varname> member, as well as the <varname>type</varname> member,
|
* |[
|
||||||
* but will not be available using clutter_script_get_object() (they can,
|
* {
|
||||||
* however, be extracted using the #ClutterBehaviour and #ClutterAlpha
|
* "id" : "rotate-behaviour",
|
||||||
* API respectively).
|
* "type" : "ClutterBehaviourRotate",
|
||||||
|
* "angle-start" : 0.0,
|
||||||
|
* "angle-end" : 360.0,
|
||||||
|
* "axis" : "z-axis",
|
||||||
|
* "alpha" : {
|
||||||
|
* "id" : "rotate-alpha",
|
||||||
|
* "type" : "ClutterAlpha",
|
||||||
|
* "timeline" : {
|
||||||
|
* "id" : "rotate-timeline",
|
||||||
|
* "type : "ClutterTimeline",
|
||||||
|
* "duration" : 4000,
|
||||||
|
* "loop" : true
|
||||||
|
* },
|
||||||
|
* "function" : "custom_sine_alpha"
|
||||||
|
* }
|
||||||
|
* }
|
||||||
|
* ]|
|
||||||
|
*
|
||||||
|
* Implicitely defined #ClutterAlpha<!-- -->s and #ClutterTimeline<!-- -->s
|
||||||
|
* can omit the <varname>id</varname> member, as well as the
|
||||||
|
* <varname>type</varname> member, but will not be available using
|
||||||
|
* clutter_script_get_object() (they can, however, be extracted using the
|
||||||
|
* #ClutterBehaviour and #ClutterAlpha API respectively).
|
||||||
*
|
*
|
||||||
* Signal handlers can be defined inside a Clutter UI definition file and
|
* Signal handlers can be defined inside a Clutter UI definition file and
|
||||||
* then autoconnected to their respective signals using the
|
* then autoconnected to their respective signals using the
|
||||||
|
Loading…
Reference in New Issue
Block a user