Gtk2::G...Geometry(3)

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

NAME πŸ’–

okay bestie, welcome to the manual for Gtk2::G...Geometry(3) β€” it's User Contributed Perl Documentation energy, and the actual package in the NAME section is Gtk2::Gdk::Geometry. it's giving geometry, it's giving Gdk, and we're gonna get through every single method together. no skips. 🫢


METHODS ✨

here's the full roster, queen. every signature stays exactly as written.

  • geometry = Gtk2::Gdk::Geometry->new β€” makes a new geometry object, slay.
  • scalar = $object->base_height ($newvalue=undef) β€” the base_height one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->base_width ($newvalue=undef) β€” the base_width one, with optional $newvalue.
    • $newvalue (scalar)
  • constrain_size β€” two call styles, both returning (new_width, new_height).
(new_width, new_height) = $geometry->constrain_size ($width, $height)
(new_width, new_height) = $geometry->constrain_size ($flags, $width,
       $height)
  • ... (list)
  • $flags (Gtk2::Gdk::WindowHints) optional, usually inferred from $geometry

the $flags argument is the one that describes which fields in the geometry are valid, and it's optional. if you omit it, it will be inferred from the geometry itself. periodt.

  • scalar = $object->gravity ($newvalue=undef) β€” the gravity one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->height_inc ($newvalue=undef) β€” the height_inc one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->max_aspect ($newvalue=undef) β€” the max_aspect one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->max_height ($newvalue=undef) β€” the max_height one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->max_width ($newvalue=undef) β€” the max_width one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->min_aspect ($newvalue=undef) β€” the min_aspect one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->min_height ($newvalue=undef) β€” the min_height one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->min_width ($newvalue=undef) β€” the min_width one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->width_inc ($newvalue=undef) β€” the width_inc one, with optional $newvalue.
    • $newvalue (scalar)
  • scalar = $object->win_gravity ($newvalue=undef) β€” the win_gravity one, with optional $newvalue.
    • $newvalue (scalar)

ENUMS AND FLAGS πŸŽ€

flags Gtk2::Gdk::WindowHints πŸ¦‹

  • 'pos' / 'GDK_HINT_POS'
  • 'min-size' / 'GDK_HINT_MIN_SIZE'
  • 'max-size' / 'GDK_HINT_MAX_SIZE'
  • 'base-size' / 'GDK_HINT_BASE_SIZE'
  • 'aspect' / 'GDK_HINT_ASPECT'
  • 'resize-inc' / 'GDK_HINT_RESIZE_INC'
  • 'win-gravity' / 'GDK_HINT_WIN_GRAVITY'
  • 'user-pos' / 'GDK_HINT_USER_POS'
  • 'user-size' / 'GDK_HINT_USER_SIZE'

SEE ALSO 🌈

  • Gtk2 β€” go read that one too, bestie.

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

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


bye bestie πŸ’– this page is Gtk2::G...Geometry(3), generated from perl v5.42.0, dated 2025-07-25. periodt. πŸ’…

πŸ“¦ where this page comes from