Gtk2::T...temGroup(3)

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

πŸ’– Gtk2::ToolItemGroup β€” the whole vibe πŸ’–

okay so bestie, welcome to the manual page for Gtk2::T...temGroup(3) (yes the header truncates it like that, it's giving mysterious, but it's really Gtk2::ToolItemGroup). This page lives in the User Contributed Perl Documentation corner of your man pages and it's literally just a wrapper for GtkToolItemGroup. No cap.


✨ NAME ✨

Gtk2::ToolItemGroup β€” a wrapper for GtkToolItemGroup. that's it, that's the whole name section, and honestly? iconic.


πŸ¦‹ HIERARCHY πŸ¦‹

so the family tree goes like this, and yes it goes DEEP:

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

five ancestors, main character energy all the way up πŸ’…


🌈 INTERFACES 🌈

the interfaces it implements, slay:

  • Glib::Object::_Unregistered::AtkImplementorIface
  • Gtk2::Buildable
  • Gtk2::ToolShell

πŸŽ€ METHODS πŸŽ€

okay this is the good part, let's go one by one, no skipping, I would never πŸ’–

widget = Gtk2::ToolItemGroup->new ($label)

build yourself a fresh group ✨

  • $label (string)

boolean = $group->get_collapsed and $group->set_collapsed ($collapsed)

read it or set it, your call bestie

  • $collapsed (boolean)

toolitem = $group->get_drop_item ($x, $y)

which item is chilling at these coordinates

  • $x (integer)
  • $y (integer)

ellipsizemode = $group->get_ellipsize and $group->set_ellipsize ($ellipsize)

the "..." treatment, get it or set it

  • $ellipsize (Pango::EllipsizeMode)

reliefstyle = $group->get_header_relief and $group->set_header_relief ($style)

how 3D the header button is feeling today

  • $style (Gtk2::ReliefStyle)

$group->insert ($item, $position)

slide an item in at a spot, rude but effective

  • $item (Gtk2::ToolItem)
  • $position (integer)

integer = $group->get_item_position ($item)

where in the lineup is this item

  • $item (Gtk2::ToolItem)

$group->set_item_position ($item, $position)

move it, move it πŸ•Ί

  • $item (Gtk2::ToolItem)
  • $position (integer)

string = $group->get_label and $group->set_label ($label)

the text, get it or set it

  • $label (string)

widget = $group->get_label_widget and $group->set_label_widget ($label_widget)

swap the plain label out for a whole widget, we love a glow-up

  • $label_widget (Gtk2::Widget)

integer = $group->get_n_items

how many items are in there, count them

toolitem = $group->get_nth_item ($index)

grab the item at this index

  • $index (integer)

πŸ’œ PROPERTIES πŸ’œ

these are the properties, with all their flags, verbatim, because I don't gatekeep:

  • 'collapsed' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” Whether the group has been collapsed and items are hidden
  • 'ellipsize' (Pango::EllipsizeMode : default "none" : readable / writable / private / static-nick / static-blurb) β€” Ellipsize for item group headers
  • 'header-relief' (Gtk2::ReliefStyle : default "normal" : readable / writable / private / static-nick / static-blurb) β€” Relief of the group header button
  • 'label' (string : default "" : readable / writable / private / static-nick / static-blurb) β€” The human-readable title of this item group
  • 'label-widget' (Gtk2::Widget : default undef : readable / writable / private / static-nick / static-blurb) β€” A widget to display in place of the usual label

🫢 CHILD PROPERTIES 🫢

the properties that belong to the CHILDREN of the group, look at them thriving:

  • 'expand' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” Whether the item should receive extra space when the group grows
  • 'fill' (boolean : default true : readable / writable / private / static-nick / static-blurb) β€” Whether the item should fill the available space
  • 'homogeneous' (boolean : default true : readable / writable / private / static-nick / static-blurb) β€” Whether the item should be the same size as other homogeneous items
  • 'new-row' (boolean : default false : readable / writable / private / static-nick / static-blurb) β€” Whether the item should start a new row
  • 'position' (integer : default 0 : readable / writable / private / static-nick / static-blurb) β€” Position of the item within this group

🌸 STYLE PROPERTIES 🌸

these ones are read-only btw, so admire from a distance:

  • 'expander-size' (integer : default 16 : readable / private / static-nick / static-blurb) β€” Size of the expander arrow
  • 'header-spacing' (integer : default 2 : readable / private / static-nick / static-blurb) β€” Spacing between expander arrow and caption

πŸ‘‘ ENUMS AND FLAGS πŸ‘‘

enum Gtk2::ReliefStyle

  • 'normal' / GTK_RELIEF_NORMAL
  • 'half' / GTK_RELIEF_HALF
  • 'none' / GTK_RELIEF_NONE

enum Pango::EllipsizeMode

  • 'none' / PANGO_ELLIPSIZE_NONE
  • 'start' / PANGO_ELLIPSIZE_START
  • 'middle' / PANGO_ELLIPSIZE_MIDDLE
  • 'end' / PANGO_ELLIPSIZE_END

⭐ SEE ALSO ⭐

go read these next, bestie, they're all connected:

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.


and that's a wrap, babe πŸŽ€ this was perl v5.42.0, dated 2025-07-25, and the page you just read was Gtk2::T...temGroup(3). mwah, go build something cute πŸ’…βœ¨

πŸ“¦ where this page comes from