Gtk2::C...rerText(3)
π Gtk2::CellRendererText π
okay bestie, gather round, because today we're talking about Gtk2::CellRendererText β the wrapper for GtkCellRendererText π that lives in the User Contributed Perl Documentation. Yeah it's one of those pages, but lowkey it's iconic.
β¨ NAME β¨
Gtk2::CellRendererText β it's a wrapper for GtkCellRendererText. that's it, that's the whole vibe π¦
πΈ HIERARCHY πΈ
the family tree, and yes she comes from a long line of distinguished ancestors:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::CellRenderer
+----Gtk2::CellRendererText
look at that lineage. main character energy from the very top π
π METHODS π
cellrenderer = Gtk2::CellRendererText->new
the classic. you make one, it exists, slay. periodt β¨
$renderer->set_fixed_height_from_font ($number_of_rows)
sets the fixed height from the font, using:
$number_of_rows(integer) β yeah it's an integer, don't overthink it π
π¦ PROPERTIES π¦
every single one, no skips, no cuts, fr fr. the format is type : default : flags and I am NOT trimming a single character of it π
'align-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the alignment mode'alignment'βPango::Alignment : default "left" : readable / writable / private / static-nick / static-blurbβ How to align the lines'attributes'βPango::AttrList : default undef : readable / writable / private / static-nick / static-blurbβ A list of style attributes to apply to the text of the renderer'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'editable'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether the text can be modified by the user'editable-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects text editability'ellipsize'βPango::EllipsizeMode : default "none" : readable / writable / private / static-nick / static-blurbβ The preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string'ellipsize-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the ellipsize mode'family'βstring : default undef : readable / writable / private / static-nick / static-blurbβ Name of the font family, e.g. Sans, Helvetica, Times, Monospace'family-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the font family'font'βstring : default undef : readable / writable / private / static-nick / static-blurbβ Font description as a string, e.g. "Sans Italic 12"'font-desc'βPango::FontDescription : default undef : readable / writable / private / static-nick / static-blurbβ Font description as a PangoFontDescription struct'foreground'βstring : default undef : writable / private / static-nick / static-blurbβ Foreground color as a string'foreground-gdk'βGtk2::Gdk::Color : default undef : readable / writable / private / static-nick / static-blurbβ Foreground color as a GdkColor'foreground-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the foreground color'language'βstring : default undef : readable / writable / private / static-nick / static-blurbβ The language this text is in, as an ISO code. Pango can use this as a hint when rendering the text. If you don't understand this parameter, you probably don't need it'language-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the language the text is rendered as'markup'βstring : default undef : writable / private / static-nick / static-blurbβ Marked up text to render'rise'βinteger : default 0 : readable / writable / private / static-nick / static-blurbβ Offset of text above the baseline (below the baseline if rise is negative)'rise-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the rise'scale'βdouble : default 1 : readable / writable / private / static-nick / static-blurbβ Font scaling factor'scale-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag scales the font size by a factor'single-paragraph-mode'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether or not to keep all text in a single paragraph'size'βinteger : default 0 : readable / writable / private / static-nick / static-blurbβ Font size'size-points'βdouble : default 0 : readable / writable / private / static-nick / static-blurbβ Font size in points'size-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the font size'stretch'βPango::Stretch : default "normal" : readable / writable / private / static-nick / static-blurbβ Font stretch'stretch-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the font stretch'strikethrough'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether to strike through the text'strikethrough-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects strikethrough'style'βPango::Style : default "normal" : readable / writable / private / static-nick / static-blurbβ Font style'style-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the font style'text'βstring : default undef : readable / writable / private / static-nick / static-blurbβ Text to render'underline'βPango::Underline : default "none" : readable / writable / private / static-nick / static-blurbβ Style of underline for this text'underline-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects underlining'variant'βPango::Variant : default "normal" : readable / writable / private / static-nick / static-blurbβ Font variant'variant-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the font variant'weight'βinteger : default 400 : readable / writable / private / static-nick / static-blurbβ Font weight'weight-set'βboolean : default false : readable / writable / private / static-nick / static-blurbβ Whether this tag affects the font weight'width-chars'βinteger : default -1 : readable / writable / private / static-nick / static-blurbβ The desired width of the label, in characters'wrap-mode'βPango::WrapMode : default "char" : readable / writable / private / static-nick / static-blurbβ How to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string'wrap-width'βinteger : default -1 : readable / writable / private / static-nick / static-blurbβ The width at which the text is wrapped
not me listing every single one π but like, they ALL matter, okay?? no cap.
π₯ SIGNALS π₯
edited(Gtk2::CellRendererText,string,string)
π ENUMS AND FLAGS π
enum Pango::Alignment
'left'/'PANGO_ALIGN_LEFT''center'/'PANGO_ALIGN_CENTER''right'/'PANGO_ALIGN_RIGHT'
enum Pango::EllipsizeMode
'none'/'PANGO_ELLIPSIZE_NONE''start'/'PANGO_ELLIPSIZE_START''middle'/'PANGO_ELLIPSIZE_MIDDLE''end'/'PANGO_ELLIPSIZE_END'
enum Pango::Stretch
'ultra-condensed'/'PANGO_STRETCH_ULTRA_CONDENSED''extra-condensed'/'PANGO_STRETCH_EXTRA_CONDENSED''condensed'/'PANGO_STRETCH_CONDENSED''semi-condensed'/'PANGO_STRETCH_SEMI_CONDENSED''normal'/'PANGO_STRETCH_NORMAL''semi-expanded'/'PANGO_STRETCH_SEMI_EXPANDED''expanded'/'PANGO_STRETCH_EXPANDED''extra-expanded'/'PANGO_STRETCH_EXTRA_EXPANDED''ultra-expanded'/'PANGO_STRETCH_ULTRA_EXPANDED'
enum Pango::Style
'normal'/'PANGO_STYLE_NORMAL''oblique'/'PANGO_STYLE_OBLIQUE''italic'/'PANGO_STYLE_ITALIC'
enum Pango::Underline
'none'/'PANGO_UNDERLINE_NONE''single'/'PANGO_UNDERLINE_SINGLE''double'/'PANGO_UNDERLINE_DOUBLE''low'/'PANGO_UNDERLINE_LOW''error'/'PANGO_UNDERLINE_ERROR''single-line'/'PANGO_UNDERLINE_SINGLE_LINE''double-line'/'PANGO_UNDERLINE_DOUBLE_LINE''error-line'/'PANGO_UNDERLINE_ERROR_LINE'
enum Pango::Variant
'normal'/'PANGO_VARIANT_NORMAL''small-caps'/'PANGO_VARIANT_SMALL_CAPS''all-small-caps'/'PANGO_VARIANT_ALL_SMALL_CAPS''petite-caps'/'PANGO_VARIANT_PETITE_CAPS''all-petite-caps'/'PANGO_VARIANT_ALL_PETITE_CAPS''unicase'/'PANGO_VARIANT_UNICASE''title-caps'/'PANGO_VARIANT_TITLE_CAPS'
enum Pango::WrapMode
'word'/'PANGO_WRAP_WORD''char'/'PANGO_WRAP_CHAR''word-char'/'PANGO_WRAP_WORD_CHAR''none'/'PANGO_WRAP_NONE'
π«Ά SEE ALSO π«Ά
go read these next, they're the whole friend group:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::CellRenderer
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
and that's the page, bestie π this was Gtk2::C...rerText(3) from perl v5.42.0, dated 2025-07-25 β go forth and render some text, you absolute icon π
π¦ 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