Clutter.Scriptable¶
- Implementations:
Clutter.Actor
,Clutter.Alpha
,Clutter.Animation
,Clutter.Animator
,Clutter.Behaviour
,Clutter.Interval
,Clutter.Model
,Clutter.State
,Clutter.Timeline
Methods¶
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Clutter.Scriptable¶
- Bases:
- Structure:
Clutter.Scriptable
is an opaque structure whose members cannot be directly accessedNew in version 0.6.
- get_id()¶
- Returns:
the id of the object. The returned string is owned by the scriptable object and should never be modified of freed
- Return type:
Retrieves the id of self set using
Clutter.Scriptable.set_id
().New in version 0.6.
- parse_custom_node(script, value, name, node)¶
- Parameters:
script (
Clutter.Script
) – theClutter.Script
creating the scriptable instancevalue (
GObject.Value
) – the generic value to be setname (
str
) – the name of the nodenode (
Json.Node
) – the JSON node to be parsed
- Returns:
- Return type:
Parses the passed JSON node. The implementation must set the type of the passed
GObject.Value
pointer usingGObject.Value.init
().New in version 0.6.
- set_custom_property(script, name, value)¶
- Parameters:
script (
Clutter.Script
) – theClutter.Script
creating the scriptable instancename (
str
) – the name of the propertyvalue (
GObject.Value
) – the value of the property
Overrides the common properties setting. The underlying virtual function should be used when implementing custom properties.
New in version 0.6.
- set_id(id_)¶
- Parameters:
id (
str
) – theClutter.Script
id of the object
Sets id_ as the unique Clutter script it for this instance of
Clutter.ScriptableIface
.This name can be used by user interface designer applications to define a unique name for an object constructable using the UI definition language parsed by
Clutter.Script
.New in version 0.6.
- do_get_id() virtual¶
- Returns:
the id of the object. The returned string is owned by the scriptable object and should never be modified of freed
- Return type:
Retrieves the id of scriptable set using
Clutter.Scriptable.set_id
().New in version 0.6.
- do_parse_custom_node(script, value, name, node) virtual¶
- Parameters:
script (
Clutter.Script
) – theClutter.Script
creating the scriptable instancevalue (
GObject.Value
) – the generic value to be setname (
str
) – the name of the nodenode (
Json.Node
) – the JSON node to be parsed
- Returns:
- Return type:
Parses the passed JSON node. The implementation must set the type of the passed
GObject.Value
pointer usingGObject.Value.init
().New in version 0.6.
- do_set_custom_property(script, name, value) virtual¶
- Parameters:
script (
Clutter.Script
) – theClutter.Script
creating the scriptable instancename (
str
) – the name of the propertyvalue (
GObject.Value
) – the value of the property
Overrides the common properties setting. The underlying virtual function should be used when implementing custom properties.
New in version 0.6.
- do_set_id(id_) virtual¶
- Parameters:
id (
str
) – theClutter.Script
id of the object
Sets id_ as the unique Clutter script it for this instance of
Clutter.ScriptableIface
.This name can be used by user interface designer applications to define a unique name for an object constructable using the UI definition language parsed by
Clutter.Script
.New in version 0.6.