Script
Object Hierarchy:
Description:
[ CCode ( type_id = "clutter_script_get_type ()" ) ]
[ Version ( since = "0.6" ) ]
public class Script : Object
[ Version ( since = "0.6" ) ]
public class Script : Object
The Script structure contains only private data and should be accessed using the provided API
Namespace: Clutter
Package: clutter-1.0
Content:
Properties:
- public string filename { owned get; }
The path of the currently parsed file.
- public bool filename_set { get; }
Whether the filename property is set.
- public string translation_domain { get; set; }
The translation domain, used to localize strings marked as translatable inside a UI definition.
Creation methods:
- public Script ()
Creates a new Script instance.
Methods:
- public void add_search_paths (string[] paths)
Adds
paths
to the list of search paths held by this. - public void add_states (string? name, State state)
Associates a State to the Script instance using the given name.
- public void connect_signals (void* user_data)
Connects all the signals defined into a UI definition file to their handlers.
- public void connect_signals_full (ScriptConnectFunc func)
Connects all the signals defined into a UI definition file to their handlers.
- public void ensure_objects ()
Ensure that every object defined inside this is correctly constructed.
- public unowned Object get_object (string name)
Retrieves the object bound to
name
. - public int get_objects (...)
Retrieves a list of objects for the given names.
- public unowned State get_states (string? name)
Retrieves the State for the given
state_name
. - public unowned string get_translation_domain ()
Retrieves the translation domain set using set_translation_domain.
- public virtual Type get_type_from_name (string type_name)
Looks up a type by name, using the virtual function that Script has for that purpose.
- public List<unowned Object> list_objects ()
Retrieves all the objects created by this.
- public uint load_from_data (string data, ssize_t length) throws Error
Loads the definitions from
data
into this and merges with the currently loaded ones, if any. - public uint load_from_file (string filename) throws Error
Loads the definitions from
filename
into this and merges with the currently loaded ones, if any. - public uint load_from_resource (string resource_path) throws Error
Loads the definitions from a resource file into this and merges with the currently loaded ones, if any.
- public string lookup_filename (string filename)
Looks up
filename
inside the search paths of this. - public void set_translation_domain (string? domain)
Sets the translation domain for this.
- public void unmerge_objects (uint merge_id)
Unmerges the objects identified by
merge_id
.
Inherited Members:
All known members inherited from class GLib.Object