Query: data::treedumper::renderer::gtk
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
GTK(3pm) User Contributed Perl Documentation GTK(3pm)NAMEData::TreeDumper::Renderer::GTK - Gtk2::TreeView renderer for Data::TreeDumperSYNOPSISmy $treedumper = Data::TreeDumper::Renderer::GTK->new ( data => \%data, title => 'Test Data', dumper_setup => {DISPLAY_PERL_SIZE => 1} ); $treedumper->modify_font(Gtk2::Pango::FontDescription->from_string ('monospace')); $treedumper->expand_all; # some boilerplate to get the widget onto the screen... my $window = Gtk2::Window->new; my $scroller = Gtk2::ScrolledWindow->new; $scroller->add ($treedumper); $window->add ($scroller); $window->show_all;HIERARCHYGlib::Object +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::TreeView +----Data::TreeDumper::Renderer::GTKDESCRIPTIONGTK-perl renderer for Data::TreeDumper. This widget is the gui equivalent of Data::TreeDumper; it will display a perl data structure in a TreeView, allowing you to fold and unfold child data structures and get a quick feel for what's where. Right-clicking anywhere in the view brings up a context menu, from which the user can choose to expand or collapse all items.EXAMPLEgtk_test.plMETHODSwidget = Data::TreeDumper::Renderer::GTK::TreeDumper->new (...) Create a new TreeDumper. The optional arguments are expect to be key/val pairs. - dumper_setup => hash reference All data is passed to Data::TreeDumper - data => scalar Equivalent to calling "$treedumper->set_data ($scalar)". - title => string or undef Equivalent to calling "$treedumper->set_title ($string)". $treedumper->set_data ($newdata) o $newdata (scalar) Fill the tree with $newdata, which may be any scalar. The tree does not reference $newdata -- necessary data is copied. $treedumper->set_title ($title=undef) o $title (string or undef) a new title Set the string displayed as the column title. The view is created with one column, and the header is visible only if there is a title set.EXPORTNoneAUTHORSKhemir Nadim ibn Hamouda. <nadim@khemir.net> Muppet <scott at asofyet dot org> Copyright (c) 2005 Nadim Ibn Hamouda el Khemir and Muppet. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perlitself. If you find any value in this module, mail me! All hints, tips, flames and wishes are welcome at <nadim@khemir.net>.SEE ALSOData::TreeDumper for advanced usage of the dumper engine. perl v5.10.1 2008-08-30 GTK(3pm)
Related Man Pages |
---|
gtk2::assistant(3) - suse |
data::treedumper::renderer::gtk(3pm) - debian |
gtk2::filechooserbutton(3pm) - debian |
gtk2::itemfactory(3pm) - debian |
gtk2::radiomenuitem(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
GtkDatabox 0.8.2.2 (Default branch) |
GtkDatabox 0.9.0.0 (Default branch) |
Amide's a Medical Imaging Data Examiner 0.9.1 (Default branch) |
Data after a string in a file |
append data to file |