mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
0411ba7d32
ClutterActor should allow attaching actions, constraints and effects just like it allows behaviours, e.g.: { ... "constraints" : [ { "type" : "ClutterAlignConstraint", "source" : "stage", "align-axis" : "x-axis", "factor" : 0.5 }, { "type" : "ClutterAlignConstraint", "source" : "stage", "align-axis" : "y-axis", "factor" : 0.5 } ], ... } or: { ... "actions" : [ { "type" : "ClutterDragAction", "signals" : [ { "name" : "drag-end", "handler" : "on_drag_end" } ] } ], ... } In order to do so, we use the Scriptable interface implementation and add three new custom properties accepting an array; then we parse each member of the array as a new object. |
||
---|---|---|
.. | ||
clutter-1.0.suppressions | ||
light0.png | ||
Makefile.am | ||
redhand_alpha.png | ||
redhand.png | ||
test-animator-1.json | ||
test-animator-2.json | ||
test-animator-3.json | ||
test-script-animation.json | ||
test-script-child.json | ||
test-script-implicit-alpha.json | ||
test-script-layout-property.json | ||
test-script-model.json | ||
test-script-named-object.json | ||
test-script-object-property.json | ||
test-script-single.json | ||
test-script.json | ||
test-state-1.json |