Gtk2::Arrow(3)

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

✨ Gtk2::Arrow ✨

okay bestie, buckle up, we're looking at Gtk2::Arrow β€” it's the wrapper for GtkArrow in the Gtk2 Perl bindings, documented over in the User Contributed Perl Documentation section of your man pages (yes, the <code>Gtk2::Arrow(3)</code> one, you found it πŸ’–).

It's a whole little arrow widget. A pointy little guy. That's it. That's the vibe. πŸŽ€


🌈 HIERARCHY 🌈

here's the family tree, and yes we're doing a whole ancestry moment, the arrow has main character energy but it is deep in the bloodline:

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gtk2::Widget
                 +----Gtk2::Misc
                      +----Gtk2::Arrow

six generations of widgets just for one arrow. iconic honestly. πŸ‘‘


πŸ¦‹ INTERFACES πŸ¦‹

the extra little certifications it picked up along the way:

  Glib::Object::_Unregistered::AtkImplementorIface
  Gtk2::Buildable

πŸ’… METHODS πŸ’…

widget = Gtk2::Arrow->new ($arrow_type, $shadow_type)

not me making a whole new arrow, slay. you hand it two things:

  • $arrow_type (a Gtk2::ArrowType) β€” which way it points
  • $shadow_type (a Gtk2::ShadowType) β€” how the shadow around it looks

$arrow->set ($arrow_type, $shadow_type)

setting the vibes after the fact, no cap. takes:

  • $arrow_type (a Gtk2::ArrowType)
  • $shadow_type (a Gtk2::ShadowType)

πŸŽ€ PROPERTIES πŸŽ€

  • 'arrow-type' (Gtk2::ArrowType : default "right" : readable / writable / private / static-nick / static-blurb) β€” literally just which direction the arrow should point. that's the whole job.
  • 'shadow-type' (Gtk2::ShadowType : default "out" : readable / writable / private / static-nick / static-blurb) β€” how the shadow surrounding the arrow looks. the ~lewk~ of it.

⭐ STYLE PROPERTIES ⭐

  • 'arrow-scaling' (float : default 0.7 : readable / private / static-nick / static-blurb) β€” amount of space used up by the arrow. that's a float, bestie, so it can be a lil fractional. 0.7 is the factory setting. πŸ“

🌸 ENUMS AND FLAGS 🌸

enum Gtk2::ArrowType

the five directions your arrow can commit to:

  • 'up' / GTK_ARROW_UP
  • 'down' / GTK_ARROW_DOWN
  • 'left' / GTK_ARROW_LEFT
  • 'right' / GTK_ARROW_RIGHT
  • 'none' / GTK_ARROW_NONE

enum Gtk2::ShadowType

the five shadow fits:

  • 'none' / GTK_SHADOW_NONE
  • 'in' / GTK_SHADOW_IN
  • 'out' / GTK_SHADOW_OUT
  • 'etched-in' / GTK_SHADOW_ETCHED_IN
  • 'etched-out' / GTK_SHADOW_ETCHED_OUT

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, fr fr:

Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Misc


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

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


okay that's the whole page bestie, you ate that 🫢 this was served up by perl v5.42.0, dated 2025-07-25, and it lives at Gtk2::Arrow(3) if you ever need to find it again. bye bestie, go point at things πŸ’…βœ¨
πŸ“¦ where this page comes from