Glib::Object - Bindings for GObject


NAME

Glib::Object - Bindings for GObject


DESCRIPTION

GObject is the base object class provided by the gobject library. It provides object properties with a notification system, and emittable signals.

Glib::Object is the corresponding Perl object class. Glib::Objects are represented by blessed hash references, with a magical connection to the underlying C object.


HIERARCHY

  Glib::Object


METHODS

object = $class->new (...)

scalar = Glib::Object->new_from_pointer ($pointer, $noinc=FALSE)

unsigned = $object->get_data ($key)

$object->set_data ($key, $data)

pspec = $object_or_class_name->find_property ($name)

$object->freeze_notify

Stops emission of ``notify'' signals on $object. The signals are queued until thaw_notify is called on $object.

list = $object->get (...)

$object->set (key => $value, ...)

list = $object_or_class_name->list_properties

List all the object properties for $object_or_class_name; returns them as a list of hashes, containing these keys:

name
The name of the property

type
The type of the property

owner_type
The type that owns the property

descr
The description of the property

flags
The Glib::ParamFlags of the property

$object->notify ($property_name)

gpointer = $object->get_pointer

Complement of new_from_pointer.

list = $object->get_property (...)

Alias for get.

$object->set_property (key => $value, ...)

Alias for set.

unsigned = $object_or_class_name->signal_add_emission_hook ($detailed_signal, $hook_func, $hook_data=undef)

list = $instance->signal_chain_from_overridden (...)

unsigned = $instance->signal_connect ($detailed_signal, $callback, $data=undef)

unsigned = $instance->signal_connect_after ($detailed_signal, $callback, $data=undef)

unsigned = $instance->signal_connect_swapped ($detailed_signal, $callback, $data=undef)

retval = $object->signal_emit ($name, ...)

$object->signal_handler_block ($handler_id)

$object->signal_handler_disconnect ($handler_id)

boolean = $object->signal_handler_is_connected ($handler_id)

$object->signal_handler_unblock ($handler_id)

integer = $instance->signal_handlers_block_by_func ($func, $data=undef)

integer = $instance->signal_handlers_disconnect_by_func ($func, $data=undef)

integer = $instance->signal_handlers_unblock_by_func ($func, $data=undef)

scalar = $object_or_class_name->signal_query ($name)

$object_or_class_name->signal_remove_emission_hook ($signal_name, $hook_id)

$instance->signal_stop_emission_by_name ($detailed_signal)

$object->thaw_notify

Reverts the effect of a previous call to freeze_notify. This causes all queued ``notify'' signals on $object to be emitted.

boolean = Glib::Object->set_threadsafe ($threadsafe)

$object->tie_properties ($all=FALSE)


SIGNALS

notify (Glib::Object, Glib::ParamSpec)


ENUMS AND FLAGS

flags Glib::SignalFlags


SEE ALSO

the Glib manpage


COPYRIGHT

Copyright (C) 2003-2007 by the gtk2-perl team.

This software is licensed under the LGPL. See the Glib manpage for a full notice.

 Glib::Object - Bindings for GObject