Gtk2::Expander(3)
π Gtk2::Expander β¨
okay bestie, so this is Gtk2::Expander β it's a wrapper for GtkExpander, and yes it lives in the User Contributed Perl Documentation corner of your man pages. She's cute, she's collapsible, she's giving "click me to reveal the good stuff" energy. π
πΈ NAME πΈ
Gtk2::Expander β literally just a wrapper for GtkExpander, no cap π
π HIERARCHY π
the family tree, and yes she's deep in the bloodline:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Expander
π¦ INTERFACES π¦
she implements these, slay:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::Buildable
β METHODS β
widget = Gtk2::Expander->new ($label=undef)
$labelβ a string, orundefif you're feeling mysterious π
widget = Gtk2::Expander->new_with_mnemonic ($label)
$labelβ a string (and bestie, it gets a mnemonic, iykyk)
boolean = $expander->get_expanded
$expander->set_expanded ($expanded)
$expandedβ boolean
boolean = $expander->get_label_fill
β¨ Since: gtk+ 2.22 β she's a newer girlie, don't @ her on old gtk+
$expander->set_label_fill ($label_fill)
$label_fillβ boolean
β¨ Since: gtk+ 2.22
string = $expander->get_label
$expander->set_label ($label)
$labelβ string
widget = $expander->get_label_widget
$expander->set_label_widget ($label_widget)
$label_widgetβ aGtk2::Widget
integer = $expander->get_spacing
$expander->set_spacing ($spacing)
$spacingβ integer
boolean = $expander->get_use_markup
$expander->set_use_markup ($use_markup)
$use_markupβ boolean
boolean = $expander->get_use_underline
$expander->set_use_underline ($use_underline)
$use_underlineβ boolean
π PROPERTIES π
'expanded'(boolean : default false : readable / writable / construct / private / static-nick / static-blurb) β whether the expander has been opened to reveal the child widget π'label'(string : default undef : readable / writable / construct / private / static-nick / static-blurb) β the text of the expander's label'label-fill'(boolean : default false : readable / writable / construct / private / static-nick / static-blurb) β whether the label widget should fill all available horizontal space'label-widget'(Gtk2::Widget: default undef : readable / writable / private / static-nick / static-blurb) β a widget to display in place of the usual expander label'spacing'(integer : default 0 : readable / writable / private / static-nick / static-blurb) β space to put between the label and the child'use-markup'(boolean : default false : readable / writable / construct / private / static-nick / static-blurb) β the text of the label includes XML markup. Seepango_parse_markup()π«Ά'use-underline'(boolean : default false : readable / writable / construct / private / static-nick / static-blurb) β if set, an underline in the text indicates the next character should be used for the mnemonic accelerator key
π STYLE PROPERTIES π
'expander-size'(integer : default 10 : readable / private / static-nick / static-blurb) β size of the expander arrow'expander-spacing'(integer : default 2 : readable / private / static-nick / static-blurb) β spacing around expander arrow
π₯ SIGNALS π₯
activate(Gtk2::Expander)
π SEE ALSO π
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin β go read these too, they're the whole friend group π
π 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 whole page bestie π«Ά this was perl v5.42.0, dated 2025-07-25, filed under Gtk2::Expander(3) β periodt π β¨
π¦ 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