Packages
clutter-1.0
Clutter
Script
filename
filename_set
translation_domain
Script
add_search_paths
add_states
connect_signals
connect_signals_full
ensure_objects
get_object
get_objects
get_states
get_translation_domain
get_type_from_name
list_objects
load_from_data
load_from_file
load_from_resource
lookup_filename
set_translation_domain
unmerge_objects
Stays crunchy ...
... even in milk.
Valadoc
Vala
Tutorial
Vala Journal
API-References
Markup
About
Script
Object Hierarchy:
Description:
public
class
Script
:
Object
The
Script
structure contains only private data
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
{
set
;
get
; }
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
script
.
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
script
is correctly constructed.
public
weak
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
weak
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
<
weak
Object
>
list_objects
()
Retrieves all the objects created by
script
.
public
uint
load_from_data
(
string
data,
ssize_t
length)
throws
Error
Loads the definitions from
data
into
script
and merges with the currently loaded ones, if any.
public
uint
load_from_file
(
string
filename)
throws
Error
Loads the definitions from
filename
into
script
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
script
and merges with the currently loaded ones, if any.
public
string
lookup_filename
(
string
filename)
Looks up
filename
inside the search paths of
script
.
public
void
set_translation_domain
(
string
? domain)
Sets the translation domain for
script
.
public
void
unmerge_objects
(
uint
merge_id)
Unmerges the objects identified by
merge_id
.
Inherited Members:
All known members inherited from class GLib.Object
@new
newv
new_valist
get_type
get_class
@ref
unref
ref_sink
weak_ref
weak_unref
add_weak_pointer
remove_weak_pointer
@get
@set
get_property
set_property
get_data
set_data
set_data_full
steal_data
get_qdata
set_qdata
set_qdata_full
steal_qdata
freeze_notify
thaw_notify
dispose
constructed
notify_property
connect
disconnect
add_toggle_ref
remove_toggle_ref
bind_property
notify
ref_count