Gtk2::VButtonBox(3)
π Gtk2::VButtonBox π
okay so bestie, welcome to Gtk2::VButtonBox β it's a wrapper for GtkVButtonBox, and it's literally the thing you want when you need your buttons stacked vertically instead of all side-by-side like some kind of horizontal chaos gremlin. it's part of the perl docs that live under "User Contributed Perl Documentation", and yeah it's a (3) man page, so you know it's library-coded. π
β¨ HIERARCHY β¨
the family tree, and yes it's giving royalty β look at all those ancestors:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Box
+----Gtk2::ButtonBox
+----Gtk2::VButtonBox
like, that's a lineage. Gtk2::VButtonBox is at the bottom but honestly it's the main character. π
π INTERFACES π
these are the vibes it carries around with it:
Glib::Object::_Unregistered::AtkImplementorIfaceGtk2::BuildableGtk2::Orientable
π METHODS π
here's where the actual doing-stuff happens. no cap.
widget = Gtk2::VButtonBox->newβ makes you a brand newGtk2::VButtonBoxwidget. fresh out the box, literally. β¨buttonboxstyle = Gtk2::VButtonBox->get_layout_defaultβ hands you back the default layout, as aGtk2::ButtonBoxStyle. it's a class method thing, it's asking the class what its default is. π«ΆGtk2::VButtonBox->set_layout_default ($layout)β sets that default layout. takes one arg:$layoutβ aGtk2::ButtonBoxStyle(go look at the enum section below, bestie, it's right there π)
integer = Gtk2::VButtonBox->get_layout_default... okay no wait, it'sinteger = Gtk2::VButtonBox->get_spacing_defaultβ returns the default spacing as a plain oldinteger. πGtk2::VButtonBox->set_spacing_default ($spacing)β sets the default spacing. takes one arg:$spacingβ aninteger
ngl,get_layout_default/set_layout_defaultandget_spacing_default/set_spacing_defaultare all about the class defaults, not about one specific widget. so like, think of them as setting the vibe for everybody. πΈ
π ENUMS AND FLAGS π
enum Gtk2::ButtonBoxStyle
every option, and I mean every option:
'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'
(one name is the perl-ish string, the other is the C constant, and they're the same thing in different outfits. slay. π )
π¦ SEE ALSO π¦
go read these too, they're all connected, iykyk:
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.
okay that's the whole page, bestie, you ate that πβ¨π¦πΈ
this was perl v5.42.0, dated 2025-07-25, and it lives at Gtk2::VButtonBox(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