Clutter::Script.3pm

Langue: en

Version: 2008-02-20 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

Clutter::Script

HIERARCHY

   Glib::Object
   +----Clutter::Script
 
 

METHODS


script = Clutter::Script->new


$script->connect_signals ($user_data)


$script->connect_signals ($user_data)


$script->connect_signals ($user_data, $package)


$script->connect_signals ($user_data, $package)


$script->connect_signals ($user_data, %handlers)


$script->connect_signals ($user_data, %handlers)

There are four ways to let Clutter::Script do the signal connecting work for you:
"$script->connect_signals ($user_data)"
When invoked like this, Clutter::Script will connect signals to functions in the calling package. The callback names are specified in the UI description.
"$script->connect_signals ($user_data, $package)"
When invoked like this, Clutter::Script will connect signals to functions in the package $package.
"$script->connect_signals ($user_data, $object)"
When invoked like this, Clutter::Script will connect signals to method calls against the object $object.
"$script->connect_signals ($user_data, %handlers)"
When invoked like this, %handlers is used as a mapping from handler names to code references.

$script->connect_signals_full ($func, $user_data=undef)


$script->connect_signals_full ($func, $user_data=undef)

$func (scalar)
$user_data (scalar)

$script->ensure_objects


$script->ensure_objects


integer = $script->load_from_data ($data)


integer = $script->load_from_data ($data)

$data (string)

May croak with a Glib::Error in $@ on failure.

integer = $script->load_from_file ($filename)


integer = $script->load_from_file ($filename)

$filename (string)

May croak with a Glib::Error in $@ on failure.

objects = $script->get_object ($name, ...)


objects = $script->get_object ($name, ...)

$name (string) first object's name
... (list) list of object names

$script->unmerge_objects ($merge_id)


$script->unmerge_objects ($merge_id)

$merge_id (integer)

PROPERTIES

'filename' (string : readable / private)
The path of the currently parsed file
'filename-set' (boolean : readable / private)
Whether the :filename property is set

SEE ALSO

Clutter, Glib::Object Copyright (C) 2006 OpenedHand Ltd.

This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Library version 2.1, or under the terms of the Artistic License. See Clutter for the full copyright notice.