Gtk2::T...lButton(3)
π Gtk2::ToggleToolButton β the manual, but make it cute β¨
okay bestie, so this is Gtk2::ToggleToolButton, a lil wrapper for the C thing called GtkToggleToolButton, and it lives in the User Contributed Perl Documentation. yes, that gtk2-perl situation. it's a toolbutton but it's also a toggle. it's giving switch energy. π
πΈ NAME πΈ
Gtk2::ToggleToolButton β literally just a wrapper for GtkToggleToolButton. that's the whole name section, we move. π
π¦ HIERARCHY π¦
here's the family tree, no cap. every single ancestor, in order:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::ToolItem
+----Gtk2::ToolButton
+----Gtk2::ToggleToolButton
so it's descended from Gtk2::ToolButton and that line goes all the way back up to Glib::Object. royal lineage honestly. π
β¨ INTERFACES β¨
these are the roles it plays, the vibes it embodies:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::BuildableGtk2::Activatable
main character with range. π
π METHODS π
the constructors π«Ά
toolitem = Gtk2::ToggleToolButton->new
just new. no args. clean, minimal, iconic. π
toolitem = Gtk2::ToggleToolButton->new_from_stock ($stock_id)
$stock_id(string)
make one from a stock id instead. you pass it the stock id string and boom, button.
the active stuff π₯
boolean = $button->get_active
returns a boolean β is it pressed in or not, bestie. π
$button->set_active ($is_active)
$is_active(boolean)
sets whether it's active. you hand it a boolean, it does the thing.
π PROPERTIES π
'active'(boolean : default false : readable / writable / private / static-nick / static-blurb) β "If the toggle button should be pressed in or not". default isfalseso it starts unpressed, but you can read it, you can write it, it's private, it's got a static nick and a static blurb. the whole package. π
π SIGNALS π
toggled(Gtk2::ToggleToolButton) β fires when the toggling happens. the moment. β
π SEE ALSO π
go read these too, they're all related, it's a whole ecosystem:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::WidgetGtk2::ContainerGtk2::BinGtk2::ToolItemGtk2::ToolButton
π COPYRIGHT π
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
okay that's the whole page, you ate it, periodt. π«Άβ¨ this was perl v5.42.0 documentation, dated 2025-07-25, from the User Contributed Perl Documentation, and that's on Gtk2::ToggleToolButton. mwah. π
π¦ 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