Gtk2::HButtonBox(3)
π Gtk2::HButtonBox β bestie edition π
okay so, this page is Gtk2::HButtonBox(3) from the User Contributed Perl Documentation, and it's literally just a wrapper for GtkHButtonBox. that's it. that's the vibe. it's the horizontal button box, the one that lines your buttons up all cute and row-like. π
πΈ NAME πΈ
Gtk2::HButtonBox β it's a wrapper for GtkHButtonBox, no cap.
𧬠HIERARCHY π§¬
ok so the family tree goes like this, and yes it's giving ancestry.com:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Box
+----Gtk2::ButtonBox
+----Gtk2::HButtonBox
it inherits everything from all of those, bestie. generational wealth but for methods. π
π¦ INTERFACES π¦
these are the interfaces it implements, iconic behaviour:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::BuildableGtk2::Orientable
β¨ METHODS β¨
widget = Gtk2::HButtonBox->new
makes you a brand new Gtk2::HButtonBox. fresh out the box. literally. π
buttonboxstyle = Gtk2::HButtonBox->get_layout_default
grabs the default layout that all the HButtonBoxes are using, like a class-level vibe check.
Gtk2::HButtonBox->set_layout_default ($layout)
sets that global default layout. and it takes:
$layoutβ aGtk2::ButtonBoxStyle, i.e. which layout flavour you want as the default.
integer = Gtk2::HButtonBox->get_spacing_default
tells you the default spacing value, as a plain integer. so informative. so slay.
Gtk2::HButtonBox->set_spacing_default ($spacing)
changes the default spacing, so every HButtonBox is spaced out accordingly.
$spacingβ an integer. yes, a number. that's the whole thing.
π ENUMS AND FLAGS π
enum Gtk2::ButtonBoxStyle
these are the layout flavours, pick your fighter:
'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:
Gtk2Glib::ObjectGlib::InitiallyUnownedGtk2::ObjectGtk2::WidgetGtk2::ContainerGtk2::BoxGtk2::ButtonBox
π 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 doc was served up by perl v5.42.0, dated 2025-07-25, as Gtk2::HButtonBox(3). go forth and box those buttons horizontally. 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