.\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.16) .\" .\" 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" '' '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. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" 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 "Goo::Canvas::ItemModel 3pm" .TH Goo::Canvas::ItemModel 3pm "2011-11-16" "perl v5.14.2" "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" Goo::Canvas::ItemModel \- wrapper for GooCanvasItemModel .SH "HIERARCHY" .IX Header "HIERARCHY" .Vb 2 \& Glib::Interface \& +\-\-\-\-Goo::Canvas::ItemModel .Ve .SH "METHODS" .IX Header "METHODS" .ie n .SS "$model\->\fBadd_child\fP ($child, $position)" .el .SS "\f(CW$model\fP\->\fBadd_child\fP ($child, \f(CW$position\fP)" .IX Subsection "$model->add_child ($child, $position)" .IP "\(bu" 4 \&\f(CW$child\fR (Goo::Canvas::ItemModel) .IP "\(bu" 4 \&\f(CW$position\fR (integer) .ie n .SS "$model\->\fBanimate\fP ($x, $y, $scale, $degrees, $absolute, $duration, $step_time, $type)" .el .SS "\f(CW$model\fP\->\fBanimate\fP ($x, \f(CW$y\fP, \f(CW$scale\fP, \f(CW$degrees\fP, \f(CW$absolute\fP, \f(CW$duration\fP, \f(CW$step_time\fP, \f(CW$type\fP)" .IX Subsection "$model->animate ($x, $y, $scale, $degrees, $absolute, $duration, $step_time, $type)" .IP "\(bu" 4 \&\f(CW$x\fR (double) .IP "\(bu" 4 \&\f(CW$y\fR (double) .IP "\(bu" 4 \&\f(CW$scale\fR (double) .IP "\(bu" 4 \&\f(CW$degrees\fR (double) .IP "\(bu" 4 \&\f(CW$absolute\fR (boolean) .IP "\(bu" 4 \&\f(CW$duration\fR (integer) .IP "\(bu" 4 \&\f(CW$step_time\fR (integer) .IP "\(bu" 4 \&\f(CW$type\fR (Goo::Canvas::AnimateType) .ie n .SS "itemmodel = $model\->\fBget_child\fP ($child_num)" .el .SS "itemmodel = \f(CW$model\fP\->\fBget_child\fP ($child_num)" .IX Subsection "itemmodel = $model->get_child ($child_num)" .IP "\(bu" 4 \&\f(CW$child_num\fR (integer) .ie n .SS "list = $model\->\fBget_child_properties\fP ($child, ...)" .el .SS "list = \f(CW$model\fP\->\fBget_child_properties\fP ($child, ...)" .IX Subsection "list = $model->get_child_properties ($child, ...)" .IP "\(bu" 4 \&\f(CW$child\fR (Goo::Canvas::ItemModel) .IP "\(bu" 4 \&... (list) .PP Not like the original C function, which call as goo_canvas_item_model_get_child_properties(model, child, key1, &val1, key2, &val2, ..., \s-1NULL\s0). This function call as \&\f(CW$model\fR\->get_child_properties($child, \f(CW$key1\fR, \f(CW$key2\fR, ...) and return a list ($key1, \f(CW$val1\fR, \f(CW$key2\fR, \f(CW$val2\fR, ...) instead. So you can call like \&\f(CW%pair\fR = \f(CW$model\fR\->get_child_properties($child, \f(CW$key1\fR, \f(CW$key2\fR) and use \f(CW$pair\fR{$key1} and \f(CW$pair\fR{$key2} to access the value for the property. .ie n .SS "$model\->\fBset_child_properties\fP ($child, ...)" .el .SS "\f(CW$model\fP\->\fBset_child_properties\fP ($child, ...)" .IX Subsection "$model->set_child_properties ($child, ...)" .IP "\(bu" 4 \&\f(CW$child\fR (Goo::Canvas::ItemModel) .IP "\(bu" 4 \&... (list) .ie n .SS "integer = $model\->\fBfind_child\fP ($child)" .el .SS "integer = \f(CW$model\fP\->\fBfind_child\fP ($child)" .IX Subsection "integer = $model->find_child ($child)" .IP "\(bu" 4 \&\f(CW$child\fR (Goo::Canvas::ItemModel) .ie n .SS "boolean = $model\->\fBis_container\fP" .el .SS "boolean = \f(CW$model\fP\->\fBis_container\fP" .IX Subsection "boolean = $model->is_container" .ie n .SS "$item\->\fBlower\fP (...)" .el .SS "\f(CW$item\fP\->\fBlower\fP (...)" .IX Subsection "$item->lower (...)" .IP "\(bu" 4 \&... (list) .ie n .SS "$model\->\fBmove_child\fP ($old_position, $new_position)" .el .SS "\f(CW$model\fP\->\fBmove_child\fP ($old_position, \f(CW$new_position\fP)" .IX Subsection "$model->move_child ($old_position, $new_position)" .IP "\(bu" 4 \&\f(CW$old_position\fR (integer) .IP "\(bu" 4 \&\f(CW$new_position\fR (integer) .ie n .SS "integer = $model\->\fBget_n_children\fP" .el .SS "integer = \f(CW$model\fP\->\fBget_n_children\fP" .IX Subsection "integer = $model->get_n_children" .ie n .SS "itemmodel = $model\->\fBget_parent\fP" .el .SS "itemmodel = \f(CW$model\fP\->\fBget_parent\fP" .IX Subsection "itemmodel = $model->get_parent" .ie n .SS "$model\->\fBset_parent\fP ($parent)" .el .SS "\f(CW$model\fP\->\fBset_parent\fP ($parent)" .IX Subsection "$model->set_parent ($parent)" .IP "\(bu" 4 \&\f(CW$parent\fR (Goo::Canvas::ItemModel) .ie n .SS "$item\->\fBraise\fP (...)" .el .SS "\f(CW$item\fP\->\fBraise\fP (...)" .IX Subsection "$item->raise (...)" .IP "\(bu" 4 \&... (list) .ie n .SS "$model\->\fBremove_child\fP ($child_num)" .el .SS "\f(CW$model\fP\->\fBremove_child\fP ($child_num)" .IX Subsection "$model->remove_child ($child_num)" .IP "\(bu" 4 \&\f(CW$child_num\fR (integer) .ie n .SS "$model\->\fBrotate\fP ($degrees, $cx, $cy)" .el .SS "\f(CW$model\fP\->\fBrotate\fP ($degrees, \f(CW$cx\fP, \f(CW$cy\fP)" .IX Subsection "$model->rotate ($degrees, $cx, $cy)" .IP "\(bu" 4 \&\f(CW$degrees\fR (double) .IP "\(bu" 4 \&\f(CW$cx\fR (double) .IP "\(bu" 4 \&\f(CW$cy\fR (double) .ie n .SS "$model\->\fBscale\fP ($sx, $sy)" .el .SS "\f(CW$model\fP\->\fBscale\fP ($sx, \f(CW$sy\fP)" .IX Subsection "$model->scale ($sx, $sy)" .IP "\(bu" 4 \&\f(CW$sx\fR (double) .IP "\(bu" 4 \&\f(CW$sy\fR (double) .ie n .SS "$model\->\fBset_simple_transform\fP ($x, $y, $scale, $rotation)" .el .SS "\f(CW$model\fP\->\fBset_simple_transform\fP ($x, \f(CW$y\fP, \f(CW$scale\fP, \f(CW$rotation\fP)" .IX Subsection "$model->set_simple_transform ($x, $y, $scale, $rotation)" .IP "\(bu" 4 \&\f(CW$x\fR (double) .IP "\(bu" 4 \&\f(CW$y\fR (double) .IP "\(bu" 4 \&\f(CW$scale\fR (double) .IP "\(bu" 4 \&\f(CW$rotation\fR (double) .ie n .SS "$model\->\fBskew_x\fP ($degrees, $cx, $cy)" .el .SS "\f(CW$model\fP\->\fBskew_x\fP ($degrees, \f(CW$cx\fP, \f(CW$cy\fP)" .IX Subsection "$model->skew_x ($degrees, $cx, $cy)" .IP "\(bu" 4 \&\f(CW$degrees\fR (double) .IP "\(bu" 4 \&\f(CW$cx\fR (double) .IP "\(bu" 4 \&\f(CW$cy\fR (double) .ie n .SS "$model\->\fBskew_y\fP ($degrees, $cx, $cy)" .el .SS "\f(CW$model\fP\->\fBskew_y\fP ($degrees, \f(CW$cx\fP, \f(CW$cy\fP)" .IX Subsection "$model->skew_y ($degrees, $cx, $cy)" .IP "\(bu" 4 \&\f(CW$degrees\fR (double) .IP "\(bu" 4 \&\f(CW$cx\fR (double) .IP "\(bu" 4 \&\f(CW$cy\fR (double) .ie n .SS "$model\->\fBstop_animation\fP" .el .SS "\f(CW$model\fP\->\fBstop_animation\fP" .IX Subsection "$model->stop_animation" .ie n .SS "style = $model\->\fBget_style\fP" .el .SS "style = \f(CW$model\fP\->\fBget_style\fP" .IX Subsection "style = $model->get_style" .ie n .SS "$model\->\fBset_style\fP ($style)" .el .SS "\f(CW$model\fP\->\fBset_style\fP ($style)" .IX Subsection "$model->set_style ($style)" .IP "\(bu" 4 \&\f(CW$style\fR (Goo::Canvas::Style) .ie n .SS "list = $item\->\fBget_transform\fP" .el .SS "list = \f(CW$item\fP\->\fBget_transform\fP" .IX Subsection "list = $item->get_transform" .ie n .SS "$model\->\fBset_transform\fP ($matrix)" .el .SS "\f(CW$model\fP\->\fBset_transform\fP ($matrix)" .IX Subsection "$model->set_transform ($matrix)" .IP "\(bu" 4 \&\f(CW$matrix\fR (cairo_matrix_t) .ie n .SS "$model\->\fBtranslate\fP ($tx, $ty)" .el .SS "\f(CW$model\fP\->\fBtranslate\fP ($tx, \f(CW$ty\fP)" .IX Subsection "$model->translate ($tx, $ty)" .IP "\(bu" 4 \&\f(CW$tx\fR (double) .IP "\(bu" 4 \&\f(CW$ty\fR (double) .SH "PROPERTIES" .IX Header "PROPERTIES" .IP "'can\-focus' (boolean : default false : readable / writable)" 4 .IX Item "'can-focus' (boolean : default false : readable / writable)" If the item can take the keyboard focus .IP "'description' (string : default undef : readable / writable)" 4 .IX Item "'description' (string : default undef : readable / writable)" A description of the item for use by assistive technologies .IP "'parent' (Goo::Canvas::ItemModel : default undef : readable / writable)" 4 .IX Item "'parent' (Goo::Canvas::ItemModel : default undef : readable / writable)" The parent item model .IP "'pointer\-events' (Goo::Canvas::PointerEvents : default visible\-mask,painted\-mask,fill\-mask,stroke\-mask,none : readable / writable)" 4 .IX Item "'pointer-events' (Goo::Canvas::PointerEvents : default visible-mask,painted-mask,fill-mask,stroke-mask,none : readable / writable)" Specifies when the item receives pointer events .IP "'title' (string : default undef : readable / writable)" 4 .IX Item "'title' (string : default undef : readable / writable)" A short context-rich description of the item for use by assistive technologies .IP "'tooltip' (string : default undef : readable / writable)" 4 .IX Item "'tooltip' (string : default undef : readable / writable)" The tooltip to display for the item .IP "'transform' (Goo::Cairo::Matrix : default undef : readable / writable)" 4 .IX Item "'transform' (Goo::Cairo::Matrix : default undef : readable / writable)" The transformation matrix of the item .ie n .IP "'visibility' (Goo::Canvas::ItemVisibility : default ""visible"" : readable / writable)" 4 .el .IP "'visibility' (Goo::Canvas::ItemVisibility : default ``visible'' : readable / writable)" 4 .IX Item "'visibility' (Goo::Canvas::ItemVisibility : default visible : readable / writable)" When the canvas item is visible .IP "'visibility\-threshold' (double : default 0 : readable / writable)" 4 .IX Item "'visibility-threshold' (double : default 0 : readable / writable)" The scale threshold at which the item becomes visible .SH "SIGNALS" .IX Header "SIGNALS" .IP "\fBchild-added\fR (Goo::Canvas::ItemModel, integer)" 4 .IX Item "child-added (Goo::Canvas::ItemModel, integer)" .PD 0 .IP "\fBchild-moved\fR (Goo::Canvas::ItemModel, integer, integer)" 4 .IX Item "child-moved (Goo::Canvas::ItemModel, integer, integer)" .IP "\fBchild-removed\fR (Goo::Canvas::ItemModel, integer)" 4 .IX Item "child-removed (Goo::Canvas::ItemModel, integer)" .IP "\fBchanged\fR (Goo::Canvas::ItemModel, boolean)" 4 .IX Item "changed (Goo::Canvas::ItemModel, boolean)" .IP "\fBchild-notify\fR (Goo::Canvas::ItemModel, Glib::ParamSpec)" 4 .IX Item "child-notify (Goo::Canvas::ItemModel, Glib::ParamSpec)" .IP "\fBanimation-finished\fR (Goo::Canvas::ItemModel, boolean)" 4 .IX Item "animation-finished (Goo::Canvas::ItemModel, boolean)" .PD .SH "ENUMS AND FLAGS" .IX Header "ENUMS AND FLAGS" .SS "enum Goo::Canvas::AnimateType" .IX Subsection "enum Goo::Canvas::AnimateType" .IP "\(bu" 4 \&'freeze' / '\s-1GOO_CANVAS_ANIMATE_FREEZE\s0' .IP "\(bu" 4 \&'reset' / '\s-1GOO_CANVAS_ANIMATE_RESET\s0' .IP "\(bu" 4 \&'restart' / '\s-1GOO_CANVAS_ANIMATE_RESTART\s0' .IP "\(bu" 4 \&'bounce' / '\s-1GOO_CANVAS_ANIMATE_BOUNCE\s0' .SS "enum Goo::Canvas::ItemVisibility" .IX Subsection "enum Goo::Canvas::ItemVisibility" .IP "\(bu" 4 \&'hidden' / '\s-1GOO_CANVAS_ITEM_HIDDEN\s0' .IP "\(bu" 4 \&'invisible' / '\s-1GOO_CANVAS_ITEM_INVISIBLE\s0' .IP "\(bu" 4 \&'visible' / '\s-1GOO_CANVAS_ITEM_VISIBLE\s0' .IP "\(bu" 4 \&'visible\-above\-threshold' / '\s-1GOO_CANVAS_ITEM_VISIBLE_ABOVE_THRESHOLD\s0' .SS "flags Goo::Canvas::PointerEvents" .IX Subsection "flags Goo::Canvas::PointerEvents" .IP "\(bu" 4 \&'visible\-mask' / '\s-1GOO_CANVAS_EVENTS_VISIBLE_MASK\s0' .IP "\(bu" 4 \&'painted\-mask' / '\s-1GOO_CANVAS_EVENTS_PAINTED_MASK\s0' .IP "\(bu" 4 \&'fill\-mask' / '\s-1GOO_CANVAS_EVENTS_FILL_MASK\s0' .IP "\(bu" 4 \&'stroke\-mask' / '\s-1GOO_CANVAS_EVENTS_STROKE_MASK\s0' .IP "\(bu" 4 \&'none' / '\s-1GOO_CANVAS_EVENTS_NONE\s0' .IP "\(bu" 4 \&'visible\-painted' / '\s-1GOO_CANVAS_EVENTS_VISIBLE_PAINTED\s0' .IP "\(bu" 4 \&'visible\-fill' / '\s-1GOO_CANVAS_EVENTS_VISIBLE_FILL\s0' .IP "\(bu" 4 \&'visible\-stroke' / '\s-1GOO_CANVAS_EVENTS_VISIBLE_STROKE\s0' .IP "\(bu" 4 \&'visible' / '\s-1GOO_CANVAS_EVENTS_VISIBLE\s0' .IP "\(bu" 4 \&'painted' / '\s-1GOO_CANVAS_EVENTS_PAINTED\s0' .IP "\(bu" 4 \&'fill' / '\s-1GOO_CANVAS_EVENTS_FILL\s0' .IP "\(bu" 4 \&'stroke' / '\s-1GOO_CANVAS_EVENTS_STROKE\s0' .IP "\(bu" 4 \&'all' / '\s-1GOO_CANVAS_EVENTS_ALL\s0' .SH "SEE ALSO" .IX Header "SEE ALSO" Glib::Interface .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (C) 2011 Gtk2\-Perl Team