Gtk2::Ex::CellLayout::BuildAttributes -- builder parser for cell renderer attributes
use Gtk2::Ex::CellLayout::BuildAttributes; my $parser = Gtk2::Ex::CellLayout::BuildAttributes->new (cell_layout => $my_cell_layout_widget, cell_renderer => $my_cell_renderer_widget);
This is a parser for Gtk2::Buildable which reads attributes for a Gtk2::CellRenderer child of a Gtk2::CellLayout type widget.
Gtk2::Buildable
attributes
Gtk2::CellRenderer
Gtk2::CellLayout
Normal use is to return a BuildAttributes object from a CUSTOM_TAG_START method of a Gtk2::Buildable interface implementation, giving the containing layout widget and the renderer just added which is to get associated attributes. In fact that's pretty much the sole use, and since Gtk2::Ex::CallLayout::Base already sets that up you're unlikely to want BuildAttributes explicitly unless perhaps extending the settings accepted, or wanting the same attributes specification in a different context.
CUSTOM_TAG_START
Gtk2::Ex::CallLayout::Base
For reference, the form parsed is the <attributes> part of the following, in this case doing the equivalent of $viewer->add_attribute (text => 3) etc for each <attribute>.
<attributes>
$viewer->add_attribute (text => 3)
<attribute>
<object class="MyViewer" id="foo"> <child> <object class="GtkCellRendererText" id="firstrenderer"/> <attributes> <attribute name="text">3</attribute> <attribute name="editable">4</attribute> </attributes>
Gtk2::Ex::CellLayout::Base, Gtk2::CellLayout, Gtk2::CellRenderer
Gtk2::Ex::CellLayout::Base
http://user42.tuxfamily.org/gtk2-ex-celllayout-base/
Copyright 2007, 2008, 2009, 2010 Kevin Ryde
Gtk2-Ex-CellLayout-Base is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
Gtk2-Ex-CellLayout-Base is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Gtk2-Ex-CellLayout-Base. If not, see http://www.gnu.org/licenses/.
To install Gtk2::Ex::CellLayout::Base, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gtk2::Ex::CellLayout::Base
CPAN shell
perl -MCPAN -e shell install Gtk2::Ex::CellLayout::Base
For more information on module installation, please visit the detailed CPAN module installation guide.