Script
Object Hierarchy:
Description:
[ CCode ( type_id = "clutter_script_get_type ()" ) ]
[ Version ( since = "0.6" ) ]
public class Script : Object
The Script structure contains only private data and should be accessed using the provided API
Content:
Properties:
- public string filename { owned get; }
The path of the currently parsed file.
- public bool filename_set { get; }
- public string translation_domain { get; set; }
The translation domain, used to localize strings marked as
translatable inside a UI definition.
Creation methods:
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 ()
- 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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref