Gtk2::CellView(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

πŸ’– 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 fresh Gtk2::CellView widget 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 you undef.
    • Since: gtk+ 2.16
  • $cell_view->set_model ($model) β€” setter for the model. and yeah, $model can be undef too, 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 (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