Gtk2::Orientable(3)

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

✨ NAME ✨

Gtk2::Orientable β€” bestie, it's the interface for flippable widgets πŸ’… like literally widgets that can go this way or that way and you get to pick, no cap.


πŸ¦‹ HIERARCHY πŸ¦‹

okay so the family tree is giving very much:

Glib::Interface
+----Gtk2::Orientable

so it's an interface sitting under Glib::Interface, and Gtk2::Orientable is its main character descendant ✨


🌸 METHODS 🌸

orientation = $orientable->get_orientation

getter era πŸ’– you call it and it hands you back the current orientation. iconic.

$orientable->set_orientation ($orientation)

setter era πŸŽ€ you pass in the orientation you want and it just... does that. slay.

  • $orientation (Gtk2::Orientation) β€” yeah that's the one and only arg, and it's gotta be a Gtk2::Orientation value, periodt.

πŸ’– PROPERTIES πŸ’–

  • 'orientation' (Gtk2::Orientation : default "horizontal" : readable / writable / private / static-nick / static-blurb) β€” this is the orientation of the orientable, the whole point of the whole thing tbh. it's readable AND writable, it's private, it's got a static-nick and a static-blurb, and if you don't say anything it defaults to "horizontal" 🫢

🌈 ENUMS AND FLAGS 🌈

enum Gtk2::Orientation

the two vibes you can pick from, and that's it, there is no third option bestie:

  • 'horizontal' / GTK_ORIENTATION_HORIZONTAL β€” side to side, left to right, the classic πŸ’«
  • 'vertical' / GTK_ORIENTATION_VERTICAL β€” up and down, top to bottom, also iconic πŸ’«

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, i'm obsessed:

  • Gtk2
  • Glib::Interface

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, tysm for reading, mwah πŸ’œβœ¨

this was brought to you by perl v5.42.0, dated 2025-07-25, and the manual Gtk2::Orientable(3) β€” k bye, go flip some widgets πŸ¦‹πŸ’…

πŸ“¦ where this page comes from