Gtk2::VButtonBox(3)

πŸ“¦
version 1.24993 Β· 2 versions
, in fedora 43

πŸ’– 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::AtkImplementorIface
  • Gtk2::Buildable
  • Gtk2::Orientable

πŸ’… METHODS πŸ’…

here's where the actual doing-stuff happens. no cap.

  • widget = Gtk2::VButtonBox->new β€” makes you a brand new Gtk2::VButtonBox widget. fresh out the box, literally. ✨
  • buttonboxstyle = Gtk2::VButtonBox->get_layout_default β€” hands you back the default layout, as a Gtk2::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 β€” a Gtk2::ButtonBoxStyle (go look at the enum section below, bestie, it's right there πŸ’–)
  • integer = Gtk2::VButtonBox->get_layout_default... okay no wait, it's integer = Gtk2::VButtonBox->get_spacing_default β€” returns the default spacing as a plain old integer. 😌
  • Gtk2::VButtonBox->set_spacing_default ($spacing) β€” sets the default spacing. takes one arg:
    • $spacing β€” an integer
ngl, get_layout_default / set_layout_default and get_spacing_default / set_spacing_default are 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:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget
  • Gtk2::Container
  • Gtk2::Box
  • Gtk2::ButtonBox

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