Xacobeo::GObject(3pm)

Xacobeo::GObject3pm

Build gobjects easily.

Usage

        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;

Overview

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.

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

Authors

Emmanuel Rodriguez <[email protected]>.

From xacobeo 0.15-3+b2 in Debian 9 (Stretch). Parsed by carta from the page's man source.