They are altered such that when the boolean is true, only the additional out arguments are returned, and when the boolean is false, an empty list is returned. The following functions normally return a boolean and additional out arguments, where the boolean indicates whether the out arguments are valid. The array ref normally returned by the following functions is flattened into a list: Gtk3::ActionGroup::list_actions Gtk3::Builder::get_objects Gtk3::CellLayout::get_cells Gtk3::Container::get_children Gtk3::SizeGroup::get_widgets Gtk3::TreePath::get_indices Gtk3::TreeView::get_columns Gtk3::UIManager::get_action_groups Gtk3::UIManager::get_toplevels Gtk3::Window::list_toplevels Gtk3::stock_list_ids Gtk3::Gdk::Pixbuf::get_formats In order to make things more Perlish or to make porting from Gtk2 to Gtk3 easier, Gtk3 customizes the API generated by Glib::Object::Introspection in a few spots: You can also pass a version number to require a certain version of Gtk3. When importing Gtk3, you can pass -init as in use Gtk3 -init to have Gtk3::init automatically called. ![]() Gtk3 automatically sets up the following correspondence between C libraries and Perl packages: Library | Package Glib::Object::Introspection also comes with the perli11ndoc program which displays the API reference documentation of all installed libraries organized in accordance with these principles. The principles underlying the mapping from C to Perl are explained in the documentation of Glib::Object::Introspection, on which Gtk3 is based. The Perl bindings follow the C API very closely, and the C reference documentation should be considered the canonical source. The gtk+ reference manual is also a handy companion when writing Gtk3 programs in Perl. The Gtk3 module allows a Perl developer to use the gtk+ graphical user interface library. This module allows you to write graphical user interfaces in a Perlish and object-oriented way, freeing you from the casting and memory management in C, yet remaining very close in spirit to original API. Perl bindings to the 3.x series of the gtk+ toolkit. $button->signal_connect (clicked => sub ) My $window = Gtk3::Window->new ('toplevel') Gtk3 - Perl interface to the 3.x series of the gtk+ toolkit SYNOPSIS use Gtk3 -init
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |