.\" Automatically generated by Pod::Man 2.28 (Pod::Simple 3.28) .\" .\" 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 turned on, 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 .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{ . if \nF \{ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "Gnome2::Canvas::Item 3pm" .TH Gnome2::Canvas::Item 3pm "2014-08-15" "perl v5.20.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.