Gtk2::C...rToggle(3)

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

πŸ’– 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:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::CellRenderer

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