GNU.WIKI: The GNU/Linux Knowledge Base

  [HOME] [PHP Manual] [HowTo] [ABS] [MAN1] [MAN2] [MAN3] [MAN4] [MAN5] [MAN6] [MAN7] [MAN8] [MAN9]

  [0-9] [Aa] [Bb] [Cc] [Dd] [Ee] [Ff] [Gg] [Hh] [Ii] [Jj] [Kk] [Ll] [Mm] [Nn] [Oo] [Pp] [Qq] [Rr] [Ss] [Tt] [Uu] [Vv] [Ww] [Xx] [Yy] [Zz]


NAME

       Xacobeo::GObject - Build GObjects easily.

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 <potyl@cpan.org>.

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.



  All copyrights belong to their respective owners. Other content (c) 2014-2018, GNU.WIKI. Please report site errors to webmaster@gnu.wiki.
Page load time: 0.108 seconds. Last modified: November 04 2018 12:49:43.