Xacobeo::GObject - Build GObjects easily.
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;
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.
Glib::Object::Subclass
Emmanuel Rodriguez <potyl@cpan.org>.
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.
To install Xacobeo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Xacobeo
CPAN shell
perl -MCPAN -e shell install Xacobeo
For more information on module installation, please visit the detailed CPAN module installation guide.