Gnome2:...s::Item(3)
β¨ NAME β¨
okay so bestie, welcome to Gnome2::Canvas::Item β this whole page lives in the Gnome2:...s::Item manpage (User Contributed Perl Documentation, iykyk), and it's literally just the wrapper for GnomeCanvasItem. that's it. that's the job. π
πΈ HIERARCHY πΈ
the family tree, and yes it's giving royal lineage:
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gnome2::Canvas::Item
π METHODS π
π item = Gnome2::Canvas::Item->new ($parent, $object_class, ...)
$parent(Gnome2::Canvas::Group)$object_class(string)...(list) β property name => value pairs
this is the factory constructor for Gnome2::Canvas::Item subclasses. slay, it makes items for you. π«Ά
π $item->affine_absolute ($affine)
$affine(arrayref) β affine transformation matrix
replaces $item's transformation matrix. boom. gone. new one. π₯
π $item->affine_relative ($affine)
$affine(arrayref) β affine transformation matrix
combines $affine with $item's current transformation. it's giving collaborative effort. π€
π (x1, y1, x2, y2) = $item->get_bounds
π $canvas = $item->canvas
fetch the Gnome2::Canvas to which $item is attached. where's your home bestie, who's your canvas π
π grabstatus = $item->grab ($event_mask, $cursor, $etime=GDK_CURRENT_TIME)
$event_mask(Gtk2::Gdk::EventMask)$cursor(Gtk2::Gdk::Cursor)$etime(unsigned)
π $item->grab_focus
π $item->hide
π $affine = $item->i2c_affine
fetch the affine transform that converts from item-relative coordinates to canvas pixel coordinates. coordinate glow-up fr fr. β¨
note: this method was completely broken for all $Gnome2::Canvas::VERSION < 1.002. not me warning you π
π (x, y) = $item->i2w ($x, $y)
$x(double)$y(double)
π $affine = $item->i2w_affine
fetch the affine transform that converts from item's coordinate system to world coordinates. main character energy, going from your little bubble out into the world. π
note: this method was completely broken for all $Gnome2::Canvas::VERSION < 1.002. yeah, same deal. π
π $item->lower ($positions)
$positions(integer)
π $item->lower_to_bottom
π $item->move ($dx, $dy)
$dx(double)$dy(double)
π $canvasgroup = $item->parent
fetch $item's parent group item. found family π₯Ή
π $item->raise ($positions)
$positions(integer)
π $item->raise_to_top
π $item->reparent ($new_group)
$new_group(Gnome2::Canvas::Group)
π $item->request_update
π $item->reset_bounds
reset the bounding box of $item to an empty rectangle. clear the vibes, start fresh. π§
π $item->show
π $item->ungrab ($etime=GDK_CURRENT_TIME)
$etime(unsigned)
π $item->update_bbox ($x1, $y1, $x2, $y2)
$x1(integer)$y1(integer)$x2(integer)$y2(integer)
set $item's bounding box to a new rectangle, and request a full repaint. new box, new you, full refresh. π₯
π (x, y) = $item->w2i ($x, $y)
$x(double)$y(double)
π PROPERTIES π
'parent'(Gnome2::Canvas::Item: defaultundef: readable / writable)
β SIGNALS β
boolean = event (Gnome2::Canvas::Item, Gtk2::Gdk::Event)
π¦ ENUMS AND FLAGS π¦
π flags Gtk2::Gdk::EventMask
'exposure-mask'/'GDK_EXPOSURE_MASK''pointer-motion-mask'/'GDK_POINTER_MOTION_MASK''pointer-motion-hint-mask'/'GDK_POINTER_MOTION_HINT_MASK''button-motion-mask'/'GDK_BUTTON_MOTION_MASK''button1-motion-mask'/'GDK_BUTTON1_MOTION_MASK''button2-motion-mask'/'GDK_BUTTON2_MOTION_MASK''button3-motion-mask'/'GDK_BUTTON3_MOTION_MASK''button-press-mask'/'GDK_BUTTON_PRESS_MASK''button-release-mask'/'GDK_BUTTON_RELEASE_MASK''key-press-mask'/'GDK_KEY_PRESS_MASK''key-release-mask'/'GDK_KEY_RELEASE_MASK''enter-notify-mask'/'GDK_ENTER_NOTIFY_MASK''leave-notify-mask'/'GDK_LEAVE_NOTIFY_MASK''focus-change-mask'/'GDK_FOCUS_CHANGE_MASK''structure-mask'/'GDK_STRUCTURE_MASK''property-change-mask'/'GDK_PROPERTY_CHANGE_MASK''visibility-notify-mask'/'GDK_VISIBILITY_NOTIFY_MASK''proximity-in-mask'/'GDK_PROXIMITY_IN_MASK''proximity-out-mask'/'GDK_PROXIMITY_OUT_MASK''substructure-mask'/'GDK_SUBSTRUCTURE_MASK''scroll-mask'/'GDK_SCROLL_MASK''all-events-mask'/'GDK_ALL_EVENTS_MASK'
π enum Gtk2::Gdk::GrabStatus
'success'/'GDK_GRAB_SUCCESS''already-grabbed'/'GDK_GRAB_ALREADY_GRABBED''invalid-time'/'GDK_GRAB_INVALID_TIME''not-viewable'/'GDK_GRAB_NOT_VIEWABLE''frozen'/'GDK_GRAB_FROZEN'
π SEE ALSO π
Gnome2::CanvasGlib::ObjectGlib::InitiallyUnownedGtk2::Object
πΈ COPYRIGHT πΈ
Copyright (C) 2003-2004 by the Gtk2-Perl Team.
This software is licensed under the LGPL; see Gnome2::Canvas for a full notice.
and that's the whole page bestie, no cap. perl v5.42.0 π¦ 2025-07-25 π Gnome2:...s::Item(3) β go forth and canvas, you absolute icon πβ¨
π¦ where this page comes from
- fedora 43: perl-Gnome2-Canvas 1.006-18.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms