Gtk2::SizeGroup(3)

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

πŸ’– Gtk2::SizeGroup β€” bestie edition πŸ’–

okay so real quick, this page is from the Gtk2::SizeGroup(3) manual, living under User Contributed Perl Documentation, and it's literally just a Perl wrapper for GtkSizeGroup. yes queen. let's get into it 🫢


🌸 NAME 🌸

Gtk2::SizeGroup β€” it's a wrapper for GtkSizeGroup, that's the whole vibe πŸ’…


πŸ¦‹ HIERARCHY πŸ¦‹

the family tree, and she is not the root:

  Glib::Object
  +----Gtk2::SizeGroup

✨ INTERFACES ✨

she also does this:

  Gtk2::Buildable

πŸŽ€ METHODS πŸŽ€

sizegroup = Gtk2::SizeGroup->new ($mode)

make a brand new one, bestie ✨

  • $mode (Gtk2::SizeGroupMode) β€” the mode, obviously. you'll meet it again below.

$size_group->add_widget ($widget)

yeet a widget into the group so she gets sized along with everyone else 🫢

  • $widget (Gtk2::Widget)

boolean = $size_group->get_ignore_hidden

does she ignore the hidden girlies? find out πŸ‘€

Since: gtk+ 2.8

$size_group->set_ignore_hidden ($ignore_hidden)

set whether hidden widgets get ignored, no cap

  • $ignore_hidden (boolean)
Since: gtk+ 2.8

sizegroupmode = $size_group->get_mode

$size_group->set_mode ($mode)

get it or set it, your call πŸ’…

  • $mode (Gtk2::SizeGroupMode)

$size_group->remove_widget ($widget)

okay she's out, take her out of the group πŸ™ˆ

  • $widget (Gtk2::Widget)

list = $size_group->get_widgets

gimme the list of everyone in the group, fr fr πŸ“‹

Since: gtk+ 2.10

πŸ‘‘ PROPERTIES πŸ‘‘

  • 'ignore-hidden' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” if TRUE, unmapped widgets are ignored when determining the size of the group. iconic behaviour, honestly.
  • 'mode' (Gtk2::SizeGroupMode : default "horizontal" : readable / writable / private / static-nick / static-blurb) β€” the directions in which the size group affects the requested sizes of its component widgets. directions, bestie. she's got range 🌈

🌟 ENUMS AND FLAGS 🌟

enum Gtk2::SizeGroupMode

pick your fighter:

  • 'none' / GTK_SIZE_GROUP_NONE
  • 'horizontal' / GTK_SIZE_GROUP_HORIZONTAL
  • 'vertical' / GTK_SIZE_GROUP_VERTICAL
  • 'both' / GTK_SIZE_GROUP_BOTH

πŸ”₯ SEE ALSO πŸ”₯

Gtk2, Glib::Object β€” go read those too, iykyk πŸ’œ


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 was documented with perl v5.42.0 on 2025-07-25 under the User Contributed Perl Documentation banner. slay, go size some widgets πŸ’…πŸ¦‹

πŸ“¦ where this page comes from