Gtk2::DrawingArea(3)

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

πŸ’– Gtk2::DrawingArea πŸ’–

okay bestie, so this page is Gtk2::DrawingArea(3) β€” it's from the User Contributed Perl Documentation corner of the perl world, and it's literally just the little wrapper that lets you play with GtkDrawingArea from Perl. it's giving canvas energy. it's giving "i draw therefore i am." 🎨✨


🌸 NAME 🌸

Gtk2::DrawingArea β€” bestie it's a wrapper for GtkDrawingArea, that's the whole vibe 🫢


πŸ¦‹ HIERARCHY πŸ¦‹

so here's the family tree, and yes we're all gonna gather round and respect the lineage πŸ‘‘

Glib::Object
+----Glib::InitiallyUnowned
     +----Gtk2::Object
          +----Gtk2::Widget
               +----Gtk2::DrawingArea

look at her, four generations deep, absolutely thriving at the bottom of that tree πŸ’…


πŸŽ€ INTERFACES πŸŽ€

she's not just a pretty widget, she's got range. these are the interfaces she implements:

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

accessible + buildable. main character behavior, no cap. πŸ”₯


✨ METHODS ✨

πŸ’œ widget = Gtk2::DrawingArea->new

you want a drawing area? you make one. that's it, that's the method. she's new, she's blank, she's ready for whatever you're about to do to her. go off. 🌈

πŸ’œ $darea->size ($width, $height)

okay so this one takes two args, and they're both integers, and you do NOT get to be cute about it:

  • $width (integer) β€” the width, bestie. a whole number. πŸ“
  • $height (integer) β€” the height. also a whole number. no decimals, no "eh, roughly," just integers. πŸ“
ngl the types here are not a suggestion, they're a whole personality test. integers only, periodt.

πŸ” SEE ALSO πŸ”

if you wanna go down the rabbit hole (and you DO, i can tell), go read these next:

  • Gtk2
  • Glib::Object
  • Glib::InitiallyUnowned
  • Gtk2::Object
  • Gtk2::Widget

iykyk 🧚


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

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

like... iconic of them honestly, giving us all this for free under the LGPL πŸ’–


and that's the whole page, babe πŸ“ β€” this little doc came to you courtesy of perl v5.42.0, dated 2025-07-25, and it's filed under the name Gtk2::DrawingArea(3). slay, go draw something cute. πŸ’…βœ¨

πŸ“¦ where this page comes from