Gtk2::Box(3)
β¨ 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) β aGtkPackTypesaying 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
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
- 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