SYNOPSIS
package My::Widget;
use Xacobeo::GObject;
Xacobeo::GObject->register_package('Gtk2::Entry' =>
properties => [
Glib::ParamSpec->object(
'ui-manager',
'UI Manager',
"The UI Manager that provides the UI",
'Gtk2::UIManager',
['readable', 'writable'],
),
],
);
# Builtin constructor
my $widget = My::Widget->new();
# Set the property and fires the signal 'notify::ui-manager'
$widget->set_ui_manager(Gtk2::UIManager->new);
# Get the property
$widget->get_ui_manager;
# Direct accessor/setter (the setter doesn't fire any signal)
$widget->ui_manager;
DESCRIPTION
Simple framework for building GObjects. This package is very similar to "Glib::Object::Subclass" except this one create accessors and setters for the object properties.AUTHORS
Emmanuel Rodriguez <[email protected]>.COPYRIGHT AND LICENSE
Copyright (C) 2008,2009 by Emmanuel Rodriguez.This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.