Gtk2::HButtonBox(3)

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

πŸ’– 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::AtkImplementorIface
  • Gtk2::Buildable
  • Gtk2::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 β€” a Gtk2::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:

  • 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.


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