.\" Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Gnome2::Canvas::Item 3pm" .TH Gnome2::Canvas::Item 3pm "2017-07-23" "perl v5.26.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Gnome2::Canvas::Item \- Base class for all canvas items .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 4 \& Glib::Object \& +\-\-\-\-Glib::InitiallyUnowned \& +\-\-\-\-Gtk2::Object \& +\-\-\-\-Gnome2::Canvas::Item .Ve .SH "METHODS" .IX Header "METHODS" .ie n .SS "item = Gnome2::Canvas::Item\->\fBnew\fP ($parent, $object_class, ...)" .el .SS "item = Gnome2::Canvas::Item\->\fBnew\fP ($parent, \f(CW$object_class\fP, ...)" .IX Subsection "item = Gnome2::Canvas::Item->new ($parent, $object_class, ...)" .IP "\(bu" 4 \&\f(CW$parent\fR (Gnome2::Canvas::Group) .IP "\(bu" 4 \&\f(CW$object_class\fR (string) .IP "\(bu" 4 \&... (list) property name => value pairs .PP Factory constructor for Gnome2::Canvas::Item subclasses. .ie n .SS "$item\->\fBaffine_absolute\fP ($affine)" .el .SS "\f(CW$item\fP\->\fBaffine_absolute\fP ($affine)" .IX Subsection "$item->affine_absolute ($affine)" .IP "\(bu" 4 \&\f(CW$affine\fR (arrayref) affine transformation matrix .PP Replaces \fI\f(CI$item\fI\fR's transformation matrix. .ie n .SS "$item\->\fBaffine_relative\fP ($affine)" .el .SS "\f(CW$item\fP\->\fBaffine_relative\fP ($affine)" .IX Subsection "$item->affine_relative ($affine)" .IP "\(bu" 4 \&\f(CW$affine\fR (arrayref) affine transformation matrix .PP Combines \fI\f(CI$affine\fI\fR with \fI\f(CI$item\fI\fR's current transformation. .ie n .SS "(x1, y1, x2, y2) = $item\->\fBget_bounds\fP" .el .SS "(x1, y1, x2, y2) = \f(CW$item\fP\->\fBget_bounds\fP" .IX Subsection "(x1, y1, x2, y2) = $item->get_bounds" .ie n .SS "$canvas = $item\->\fBcanvas\fP" .el .SS "\f(CW$canvas\fP = \f(CW$item\fP\->\fBcanvas\fP" .IX Subsection "$canvas = $item->canvas" Fetch the Gnome2::Canvas to which \fI\f(CI$item\fI\fR is attached. .ie n .SS "grabstatus = $item\->\fBgrab\fP ($event_mask, $cursor, $etime=GDK_CURRENT_TIME)" .el .SS "grabstatus = \f(CW$item\fP\->\fBgrab\fP ($event_mask, \f(CW$cursor\fP, \f(CW$etime\fP=GDK_CURRENT_TIME)" .IX Subsection "grabstatus = $item->grab ($event_mask, $cursor, $etime=GDK_CURRENT_TIME)" .IP "\(bu" 4 \&\f(CW$event_mask\fR (Gtk2::Gdk::EventMask) .IP "\(bu" 4 \&\f(CW$cursor\fR (Gtk2::Gdk::Cursor) .IP "\(bu" 4 \&\f(CW$etime\fR (unsigned) .ie n .SS "$item\->\fBgrab_focus\fP" .el .SS "\f(CW$item\fP\->\fBgrab_focus\fP" .IX Subsection "$item->grab_focus" .ie n .SS "$item\->\fBhide\fP" .el .SS "\f(CW$item\fP\->\fBhide\fP" .IX Subsection "$item->hide" .ie n .SS "$affine = $item\->\fBi2c_affine\fP" .el .SS "\f(CW$affine\fP = \f(CW$item\fP\->\fBi2c_affine\fP" .IX Subsection "$affine = $item->i2c_affine" Fetch the affine transform that converts from item-relative coordinates to canvas pixel coordinates. .PP Note: This method was completely broken for all \&\f(CW$Gnome2::Canvas::VERSION\fR < 1.002. .ie n .SS "(x, y) = $item\->\fBi2w\fP ($x, $y)" .el .SS "(x, y) = \f(CW$item\fP\->\fBi2w\fP ($x, \f(CW$y\fP)" .IX Subsection "(x, y) = $item->i2w ($x, $y)" .IP "\(bu" 4 \&\f(CW$x\fR (double) .IP "\(bu" 4 \&\f(CW$y\fR (double) .ie n .SS "$affine = $item\->\fBi2w_affine\fP" .el .SS "\f(CW$affine\fP = \f(CW$item\fP\->\fBi2w_affine\fP" .IX Subsection "$affine = $item->i2w_affine" Fetch the affine transform that converts from item's coordinate system to world coordinates. .PP Note: This method was completely broken for all \&\f(CW$Gnome2::Canvas::VERSION\fR < 1.002. .ie n .SS "$item\->\fBlower\fP ($positions)" .el .SS "\f(CW$item\fP\->\fBlower\fP ($positions)" .IX Subsection "$item->lower ($positions)" .IP "\(bu" 4 \&\f(CW$positions\fR (integer) .ie n .SS "$item\->\fBlower_to_bottom\fP" .el .SS "\f(CW$item\fP\->\fBlower_to_bottom\fP" .IX Subsection "$item->lower_to_bottom" .ie n .SS "$item\->\fBmove\fP ($dx, $dy)" .el .SS "\f(CW$item\fP\->\fBmove\fP ($dx, \f(CW$dy\fP)" .IX Subsection "$item->move ($dx, $dy)" .IP "\(bu" 4 \&\f(CW$dx\fR (double) .IP "\(bu" 4 \&\f(CW$dy\fR (double) .ie n .SS "$canvasgroup = $item\->\fBparent\fP" .el .SS "\f(CW$canvasgroup\fP = \f(CW$item\fP\->\fBparent\fP" .IX Subsection "$canvasgroup = $item->parent" Fetch \fI\f(CI$item\fI\fR's parent group item. .ie n .SS "$item\->\fBraise\fP ($positions)" .el .SS "\f(CW$item\fP\->\fBraise\fP ($positions)" .IX Subsection "$item->raise ($positions)" .IP "\(bu" 4 \&\f(CW$positions\fR (integer) .ie n .SS "$item\->\fBraise_to_top\fP" .el .SS "\f(CW$item\fP\->\fBraise_to_top\fP" .IX Subsection "$item->raise_to_top" .ie n .SS "$item\->\fBreparent\fP ($new_group)" .el .SS "\f(CW$item\fP\->\fBreparent\fP ($new_group)" .IX Subsection "$item->reparent ($new_group)" .IP "\(bu" 4 \&\f(CW$new_group\fR (Gnome2::Canvas::Group) .ie n .SS "$item\->\fBrequest_update\fP" .el .SS "\f(CW$item\fP\->\fBrequest_update\fP" .IX Subsection "$item->request_update" .ie n .SS "$item\->\fBreset_bounds\fP" .el .SS "\f(CW$item\fP\->\fBreset_bounds\fP" .IX Subsection "$item->reset_bounds" Reset the bounding box of \fI\f(CI$item\fI\fR to an empty rectangle. .ie n .SS "$item\->\fBshow\fP" .el .SS "\f(CW$item\fP\->\fBshow\fP" .IX Subsection "$item->show" .ie n .SS "$item\->\fBungrab\fP ($etime=GDK_CURRENT_TIME)" .el .SS "\f(CW$item\fP\->\fBungrab\fP ($etime=GDK_CURRENT_TIME)" .IX Subsection "$item->ungrab ($etime=GDK_CURRENT_TIME)" .IP "\(bu" 4 \&\f(CW$etime\fR (unsigned) .ie n .SS "$item\->\fBupdate_bbox\fP ($x1, $y1, $x2, $y2)" .el .SS "\f(CW$item\fP\->\fBupdate_bbox\fP ($x1, \f(CW$y1\fP, \f(CW$x2\fP, \f(CW$y2\fP)" .IX Subsection "$item->update_bbox ($x1, $y1, $x2, $y2)" .IP "\(bu" 4 \&\f(CW$x1\fR (integer) .IP "\(bu" 4 \&\f(CW$y1\fR (integer) .IP "\(bu" 4 \&\f(CW$x2\fR (integer) .IP "\(bu" 4 \&\f(CW$y2\fR (integer) .PP Set \fI\f(CI$item\fI\fR's bounding box to a new rectangle, and request a full repaint. .ie n .SS "(x, y) = $item\->\fBw2i\fP ($x, $y)" .el .SS "(x, y) = \f(CW$item\fP\->\fBw2i\fP ($x, \f(CW$y\fP)" .IX Subsection "(x, y) = $item->w2i ($x, $y)" .IP "\(bu" 4 \&\f(CW$x\fR (double) .IP "\(bu" 4 \&\f(CW$y\fR (double) .SH "PROPERTIES" .IX Header "PROPERTIES" .IP "'parent' (Gnome2::Canvas::Item : default undef : readable / writable)" 4 .IX Item "'parent' (Gnome2::Canvas::Item : default undef : readable / writable)" .SH "SIGNALS" .IX Header "SIGNALS" .PD 0 .IP "boolean = \fBevent\fR (Gnome2::Canvas::Item, Gtk2::Gdk::Event)" 4 .IX Item "boolean = event (Gnome2::Canvas::Item, Gtk2::Gdk::Event)" .PD .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "flags Gtk2::Gdk::EventMask" .IX Subsection "flags Gtk2::Gdk::EventMask" .IP "\(bu" 4 \&'exposure\-mask' / '\s-1GDK_EXPOSURE_MASK\s0' .IP "\(bu" 4 \&'pointer\-motion\-mask' / '\s-1GDK_POINTER_MOTION_MASK\s0' .IP "\(bu" 4 \&'pointer\-motion\-hint\-mask' / '\s-1GDK_POINTER_MOTION_HINT_MASK\s0' .IP "\(bu" 4 \&'button\-motion\-mask' / '\s-1GDK_BUTTON_MOTION_MASK\s0' .IP "\(bu" 4 \&'button1\-motion\-mask' / '\s-1GDK_BUTTON1_MOTION_MASK\s0' .IP "\(bu" 4 \&'button2\-motion\-mask' / '\s-1GDK_BUTTON2_MOTION_MASK\s0' .IP "\(bu" 4 \&'button3\-motion\-mask' / '\s-1GDK_BUTTON3_MOTION_MASK\s0' .IP "\(bu" 4 \&'button\-press\-mask' / '\s-1GDK_BUTTON_PRESS_MASK\s0' .IP "\(bu" 4 \&'button\-release\-mask' / '\s-1GDK_BUTTON_RELEASE_MASK\s0' .IP "\(bu" 4 \&'key\-press\-mask' / '\s-1GDK_KEY_PRESS_MASK\s0' .IP "\(bu" 4 \&'key\-release\-mask' / '\s-1GDK_KEY_RELEASE_MASK\s0' .IP "\(bu" 4 \&'enter\-notify\-mask' / '\s-1GDK_ENTER_NOTIFY_MASK\s0' .IP "\(bu" 4 \&'leave\-notify\-mask' / '\s-1GDK_LEAVE_NOTIFY_MASK\s0' .IP "\(bu" 4 \&'focus\-change\-mask' / '\s-1GDK_FOCUS_CHANGE_MASK\s0' .IP "\(bu" 4 \&'structure\-mask' / '\s-1GDK_STRUCTURE_MASK\s0' .IP "\(bu" 4 \&'property\-change\-mask' / '\s-1GDK_PROPERTY_CHANGE_MASK\s0' .IP "\(bu" 4 \&'visibility\-notify\-mask' / '\s-1GDK_VISIBILITY_NOTIFY_MASK\s0' .IP "\(bu" 4 \&'proximity\-in\-mask' / '\s-1GDK_PROXIMITY_IN_MASK\s0' .IP "\(bu" 4 \&'proximity\-out\-mask' / '\s-1GDK_PROXIMITY_OUT_MASK\s0' .IP "\(bu" 4 \&'substructure\-mask' / '\s-1GDK_SUBSTRUCTURE_MASK\s0' .IP "\(bu" 4 \&'scroll\-mask' / '\s-1GDK_SCROLL_MASK\s0' .IP "\(bu" 4 \&'all\-events\-mask' / '\s-1GDK_ALL_EVENTS_MASK\s0' .SS "enum Gtk2::Gdk::GrabStatus" .IX Subsection "enum Gtk2::Gdk::GrabStatus" .IP "\(bu" 4 \&'success' / '\s-1GDK_GRAB_SUCCESS\s0' .IP "\(bu" 4 \&'already\-grabbed' / '\s-1GDK_GRAB_ALREADY_GRABBED\s0' .IP "\(bu" 4 \&'invalid\-time' / '\s-1GDK_GRAB_INVALID_TIME\s0' .IP "\(bu" 4 \&'not\-viewable' / '\s-1GDK_GRAB_NOT_VIEWABLE\s0' .IP "\(bu" 4 \&'frozen' / '\s-1GDK_GRAB_FROZEN\s0' .SH "SEE ALSO" .IX Header "SEE ALSO" Gnome2::Canvas, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2003\-2004 by the Gtk2\-Perl Team. .PP This software is licensed under the \s-1LGPL\s0; see Gnome2::Canvas for a full notice.