NAME
Gtk2::Ex::CellLayout::BuildAttributes -- builder parser for renderer attributes
SYNOPSIS
use Gtk2::Ex::CellLayout::BuildAttributes;
my $parser = Gtk2::Ex::CellLayout::BuildAttributes->new
(cell_layout => $my_cell_layout_widget,
cell_renderer => $my_cell_renderer_widget);
DESCRIPTION
Gtk2::Ex::CellLayout::BuildAttributes
is a Gtk2::Buildable
parser for reading attributes
for a Gtk2::CellRenderer
child of a Gtk2::CellLayout
type widget.
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 up to use this you're unlikely to want it explicitly unless perhaps extending the syntax accepted, or wanting the same attributes specification in a different context.
For reference, the syntax parsed is the <attributes>
part of the following, in this case doing the equivalent of $viewer->add_attribute (text => 0)
.
<object class="MyViewer" id="foo">
<child>
<object class="GtkCellRendererText" id="firstrenderer"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
SEE ALSO
Gtk2::Ex::CellLayout::Base
, Gtk2::CellLayout
, Gtk2::CellRenderer