Gtk2::Layout(3)
π Gtk2::Layout β bestie edition π
okay so like. this is the manual page for Gtk2::Layout, a thing that lives in the User Contributed Perl Documentation corner of your system, and it is literally a Perl wrapper for GtkLayout. if you're here you probably want to put widgets at exact coordinates instead of letting a box do it for you. valid. slay.
β¨ NAME β¨
Gtk2::Layout β a lil wrapper for GtkLayout, no cap π«Ά
πΈ HIERARCHY πΈ
the family tree, and yes she comes from a long line of icons:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Layout
look at that lineage. main character energy from birth, honestly. π
π¦ INTERFACES π¦
the extra vibes she's got going on:
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
π METHODS π
widget = Gtk2::Layout->new ($hadjustment=undef, $vadjustment=undef)
make a brand new Layout, bestie β¨
$hadjustment(Gtk2::Adjustment or undef) β the horizontal one, optional$vadjustment(Gtk2::Adjustment or undef) β the vertical one, also optional
window or undef = $layout->get_bin_window
gives you the bin window, or undef if there isn't one. sometimes the vibe is just... nothing. π
$layout->freeze
freeze it. hold still. do not move. π§
adjustment = $layout->get_hadjustment
hand me the horizontal adjustment pls π
$layout->set_hadjustment ($adjustment)
set the horizontal adjustment, obviously π
$adjustment(Gtk2::Adjustment)
$layout->move ($child_widget, $x, $y)
relocate a child widget to a new spot. glow up in coordinate form β¨
$child_widget(Gtk2::Widget)$x(integer)$y(integer)
$layout->put ($child_widget, $x, $y)
plop a child widget down at $x, $y. it's giving "I know exactly where this goes" π«Ά
$child_widget(Gtk2::Widget)$x(integer)$y(integer)
(width, height) = $layout->get_size
returns the size as a two-value list. both numbers, no drama. π
$layout->set_size ($width, $height)
tell it how big to be. manifest that size. π
$width(integer)$height(integer)
$layout->thaw
unfreeze. okay you can move again, periodt. π₯
adjustment = $layout->get_vadjustment
the vertical adjustment, bestie. β¬οΈ
$layout->set_vadjustment ($adjustment)
set the vertical adjustment. π
$adjustment(Gtk2::Adjustment)
π PROPERTIES π
the whole roster, with all the flags exactly as they come:
'hadjustment'(Gtk2::Adjustment : default undef : readable / writable / private / static-nick / static-blurb) β theGtkAdjustmentfor the horizontal position π'height'(Glib::UInt : default 100 : readable / writable / private / static-nick / static-blurb) β the height of the layout π'vadjustment'(Gtk2::Adjustment : default undef : readable / writable / private / static-nick / static-blurb) β theGtkAdjustmentfor the vertical position β¬οΈ'width'(Glib::UInt : default 100 : readable / writable / private / static-nick / static-blurb) β the width of the layout π
π CHILD PROPERTIES π
yes, the children get their own properties. nepotism? maybe. iconic? also yes.
'x'(integer : default 0 : readable / writable / private / static-nick / static-blurb) β X position of child widget πΈ'y'(integer : default 0 : readable / writable / private / static-nick / static-blurb) β Y position of child widget πΈ
β SIGNALS β
one signal, and she's serving:
set-scroll-adjustments(Gtk2::Layout, Gtk2::Adjustment, Gtk2::Adjustment) π
π SEE ALSO π
go read these next, iykyk:
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.
ngl, that's the whole page. every flag, every default, every child property β all of it, untouched. the facts didn't change, only the outfit did. π
perl v5.42.0 Β· 2025-07-25 Β· and that's the Gtk2::Layout(3) era, mwah π β¨
π¦ 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