Gtk2::CellView(3)
π Gtk2::CellView π
okay bestie, welcome to Gtk2::CellView β it's the Perl wrapper for GtkCellView, and honestly? it's giving widget-that-shows-a-whole-row-of-cells energy. no cap. π
this page lives in the User Contributed Perl Documentation section, manual page Gtk2::CellView(3), and we're gonna go through every last bit of it together. grab a strawberry drink π, we're doing this.
β¨ HIERARCHY β¨
the family tree, and yes we're respecting the lineage:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::CellView
so it's a Glib::Object at the root, then Glib::InitiallyUnowned, then Gtk2::Object, then Gtk2::Widget, and finally our main character: Gtk2::CellView. π
π¦ INTERFACES π¦
these are the interfaces it implements, like the clubs it's a member of:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::CellLayout
AtkImplementorIface, Buildable, and CellLayout. iconic trio, honestly. π
πΈ METHODS πΈ
here's every method, no skips, no summarising, we're thorough in this house:
widget = Gtk2::CellView->newβ constructor time, bestie. makes you a freshGtk2::CellViewwidget with nothing special going on. β¨widget = Gtk2::CellView->new_with_markup ($markup)β same deal but you get to hand it some markup right off the bat.$markup(string)
widget = Gtk2::CellView->new_with_pixbuf ($pixbuf)β build it around a pixbuf. cute little image moment. πΌοΈ$pixbuf(Gtk2::Gdk::Pixbuf)
widget = Gtk2::CellView->new_with_text ($text)β or build it around plain text, lowkey the simplest vibe.$text(string)
$cell_view->set_background_color ($color)β set the background colour on this thing.$color(Gtk2::Gdk::Color)
list = $cellview->get_cell_renderersβ hands you back a list of the cell renderers. πtreepath = $cell_view->get_displayed_rowβ tells you which row is currently being displayed, as a tree path. π$cell_view->set_displayed_row ($path)β and this one sets which row is displayed.$path(Gtk2::TreePath)
treemodel or undef = $cellview->get_modelβ getter for the model. heads up: it can hand youundef.- Since: gtk+ 2.16
$cell_view->set_model ($model)β setter for the model. and yeah,$modelcan beundeftoo, so you can yeet the model out of there.$model(Gtk2::TreeModel or undef)
requisition = $cell_view->get_size_of_row ($path)β gives you the requisition (the size it wants, basically) for a given row. π$path(Gtk2::TreePath)
π PROPERTIES π
the property list, fully intact, every flag and every default, because we don't do omissions here:
'background'(string : default undef : writable / private / static-nick / static-blurb)- Background color as a string
'background-gdk'(Gtk2::Gdk::Color : default undef : readable / writable / private / static-nick / static-blurb)- Background color as a GdkColor
'background-set'(boolean : default false : readable / writable / private / static-nick / static-blurb)- Whether this tag affects the background color
'model'(Gtk2::TreeModel : default undef : readable / writable / private / static-nick / static-blurb)- The model for cell view
π«Ά SEE ALSO π«Ά
go read these next, bestie, they're all connected:
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
π real talk: this is the LGPL, so read the full notice in Gtk2 before you go doing anything wild with it. no cap.
okay and that's the whole page, you ate that. πβ¨
this little love letter comes to you from perl v5.42.0, dated 2025-07-25 β the Gtk2::CellView(3) era, and honestly? it's giving timeless. bye bestie, go build something cute. ππ¦πΈ
π¦ where this page comes from
- fedora 43: perl-Gtk2 1.24993-23.fc43 Β· LicenseRef-Callaway-LGPLv2+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms