Gtk2::Box(3)

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

✨ Gtk2::Box ✨

okay bestie, so this is Gtk2::Box β€” literally just a cute lil wrapper around GtkBox πŸ’… the manual page is Gtk2::Box(3), from the User Contributed Perl Documentation crew 🫢


🌈 HIERARCHY

the family tree, and yes it's giving ancestry.com energy:

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Container
                      +----Gtk2::Box

πŸ¦‹ INTERFACES

the vibes it's plugged into:

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable
  Gtk2::Orientable

πŸ’– METHODS

$box->set_child_packing ($child, $expand, $fill, $padding, $pack_type)

sets how a child is packed in, fr:

  • $child (Gtk2::Widget)
  • $expand (boolean)
  • $fill (boolean)
  • $padding (integer)
  • $pack_type (Gtk2::PackType)

boolean = $box->get_homogeneous

$box->set_homogeneous ($homogeneous)

  • $homogeneous (boolean)

$box->pack_end ($child, $expand, $fill, $padding)

  • $child (Gtk2::Widget)
  • $expand (boolean)
  • $fill (boolean)
  • $padding (integer)

$box->pack_end_defaults ($widget)

  • $widget (Gtk2::Widget)

$box->pack_start ($child, $expand, $fill, $padding)

  • $child (Gtk2::Widget)
  • $expand (boolean)
  • $fill (boolean)
  • $padding (integer)

$box->pack_start_defaults ($widget)

  • $widget (Gtk2::Widget)

list = $box->query_child_packing ($child)

  • $child (Gtk2::Widget)

$box->reorder_child ($child, $position)

  • $child (Gtk2::Widget)
  • $position (integer)

integer = $box->get_spacing

$box->set_spacing ($spacing)

  • $spacing (integer)

πŸŽ€ PROPERTIES

  • 'homogeneous' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” should all the children be the same size? iconic equal-treatment moment πŸ‘‘
  • 'spacing' (integer : default 0 : readable / writable / private / static-nick / static-blurb) β€” how much space sits between the children

🧚 CHILD PROPERTIES

  • 'expand' (boolean : default true : readable / writable / private / static-nick / static-blurb) β€” does this child get extra space when the parent grows?
  • 'fill' (boolean : default true : readable / writable / private / static-nick / static-blurb) β€” when extra space comes the child's way, does it actually go to the child, or is it just used as padding?
  • 'pack-type' (Gtk2::PackType : default "start" : readable / writable / private / static-nick / static-blurb) β€” a GtkPackType saying whether the child is packed relative to the start or the end of the parent
  • 'padding' (Glib::UInt : default 0 : readable / writable / private / static-nick / static-blurb) β€” extra space between this child and its neighbors, in pixels
  • 'position' (integer : default 0 : readable / writable / private / static-nick / static-blurb) β€” the index of the child inside the parent

πŸ’€ ENUMS AND FLAGS

enum Gtk2::PackType

  • 'start' / 'GTK_PACK_START'
  • 'end' / 'GTK_PACK_END'

πŸ‘€ SEE ALSO

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container


Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL. See Gtk2 for a full notice.


no cap, that's the whole page πŸ’– go forth and pack your widgets, bestie ✨

perl v5.42.0 🌸 2025-07-25 πŸŽ€ and yeah, the manual name is Gtk2::Box(3) β€” periodt πŸ’…

πŸ“¦ where this page comes from