Gtk2::ButtonBox(3)
π Gtk2::ButtonBox π
okay so bestie, picture this: you got a GtkButtonBox, which is literally just a fancy wrapper for GtkButtonBox π. It's the box that holds your buttons and decides how they line up. That's it. That's the job. And it does it gorgeously.
β¨ HIERARCHY β¨
the family tree, and yes she comes from a long line of icons π
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Box
+----Gtk2::ButtonBox
π¦ INTERFACES π¦
the vibes she's carrying, no cap:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
Gtk2::Orientable
πΈ METHODS πΈ
boolean = $widget->get_child_secondary ($child)
asks the widget: "hey, is this child in the secondary group or nah?"
$child(Gtk2::Widget)
Since: gtk+ 2.4 β so like, this one's been around a minute π
$widget->set_child_secondary ($child, $is_secondary)
sets whether a child is secondary. main character or supporting role, you decide β¨
$child(Gtk2::Widget)$is_secondary(boolean)
buttonboxstyle = $widget->get_layout
$widget->set_layout ($layout_style)
the getter and the setter for how your buttons are laid out. iconic duo fr fr π«Ά
$layout_style(Gtk2::ButtonBoxStyle)
π PROPERTIES π
'layout-style'(Gtk2::ButtonBoxStyle : default"default-style": readable / writable / private / static-nick / static-blurb) β how to lay out the buttons in the box. possible values are: default, spread, edge, start and end π
π CHILD PROPERTIES π
'secondary'(boolean : defaultfalse: readable / writable / private / static-nick / static-blurb) β ifTRUE, the child appears in a secondary group of children, suitable for, e.g., help buttons. it's giving side quest energy π
π STYLE PROPERTIES π
'child-internal-pad-x'(integer : default4: readable / private / static-nick / static-blurb) β amount to increase child's size on either side'child-internal-pad-y'(integer : default0: readable / private / static-nick / static-blurb) β amount to increase child's size on the top and bottom'child-min-height'(integer : default27: readable / private / static-nick / static-blurb) β minimum height of buttons inside the box'child-min-width'(integer : default85: readable / private / static-nick / static-blurb) β minimum width of buttons inside the box
β ENUMS AND FLAGS β
enum Gtk2::ButtonBoxStyle
the whole lineup, and they all ate π
'default-style'/GTK_BUTTONBOX_DEFAULT_STYLE'spread'/GTK_BUTTONBOX_SPREAD'edge'/GTK_BUTTONBOX_EDGE'start'/GTK_BUTTONBOX_START'end'/GTK_BUTTONBOX_END'center'/GTK_BUTTONBOX_CENTER
π§ SEE ALSO π§
the whole friend group, go say hi:
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Box
π 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 bestie, you're so welcome π«Ά this was documented by the user-contributed perl documentation girlies, running on perl v5.42.0, dated 2025-07-25 β periodt, 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