Gtk2::C...rToggle(3)
π Gtk2::CellRendererToggle π
okay so bestie, welcome to the Gtk2::CellRendererToggle page β straight out of the User Contributed Perl Documentation manual, section 3, and honestly? she's giving checkbox queen. β¨
πΈ NAME πΈ
Gtk2::CellRendererToggle β no cap, this is just a wrapper for GtkCellRendererToggle. that's the whole job. that's the vibe. π
π¦ HIERARCHY π¦
the family tree, the bloodline, the lore. she descends from greatness:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::CellRenderer
+----Gtk2::CellRendererToggle
like look at that lineage. iconic ancestors only. π
β¨ METHODS β¨
π cellrenderer = Gtk2::CellRendererToggle->new
makes you a brand new toggle renderer. fresh out the box. slay. π«Ά
π boolean = $toggle->get_activatable
does it activate? find out. Since: gtk+ 2.18 β so this one's a newer era queen.
π§ $toggle->set_activatable ($setting)
$setting(boolean) β yes or no, bestie, choose wisely.
Since: gtk+ 2.18
π boolean = $toggle->get_active
is it on rn? π€
π $toggle->set_active ($setting)
$setting(boolean) β set that state.
π
boolean = $toggle->get_radio
is it doing the radio thing?
β $toggle->set_radio ($radio)
$radio(boolean) β toggle whether it's a radio.
π PROPERTIES π
every single one, spelled out exactly, because we don't skip:
'activatable'(boolean : default true : readable / writable / private / static-nick / static-blurb) β the toggle button can be activated. yes ma'am, it's on by default.'active'(boolean : default false : readable / writable / private / static-nick / static-blurb) β the toggle state of the button. defaults to false, so lowkey off.'inconsistent'(boolean : default false : readable / writable / private / static-nick / static-blurb) β the inconsistent state of the button. it's complicated. π'indicator-size'(integer : default 13 : readable / writable / private / static-nick / static-blurb) β size of check or radio indicator. 13. remember that number. β¨'radio'(boolean : default false : readable / writable / private / static-nick / static-blurb) β draw the toggle button as a radio button. glow up moment.
π₯ SIGNALS π₯
toggled(Gtk2::CellRendererToggle, string) β she toggled. it happened. the event.
π¦ SEE ALSO π¦
go read these next, bestie, they're all connected, iykyk:
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.
fr fr, that's the whole page. nothing skipped, nothing invented. periodt. π
perl v5.42.0 πΈ 2025-07-25 β that's the version and the date this lil doc was born, and honestly? iconic of her. mwah, bye bestie π«Άβ¨
π¦ 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