Goo::Canvas::Item(3pm) User Contributed Perl Documentation Goo::Canvas::Item(3pm)
NAME
Goo::Canvas::Item - wrapper for GooCanvasItem
HIERARCHY
Glib::Interface
+----Goo::Canvas::Item
METHODS
$item->add_child ($child, $position)
o $child (Goo::Canvas::Item)
o $position (integer)
$item->allocate_area ($cr, $requested_area, $allocated_area, $x_offset, $y_offset)
o $cr (cairo_t)
o $requested_area (GooCanvasBounds)
o $allocated_area (GooCanvasBounds)
o $x_offset (double)
o $y_offset (double)
$item->animate ($x, $y, $scale, $degrees, $absolute, $duration, $step_time, $type)
o $x (double)
o $y (double)
o $scale (double)
o $degrees (double)
o $absolute (boolean)
o $duration (integer)
o $step_time (integer)
o $type (Goo::Canvas::AnimateType)
GooCanvasBounds = $item->get_bounds
canvas = $item->get_canvas
$item->set_canvas ($canvas)
o $canvas (Goo::Canvas)
item = $item->get_child ($child_num)
o $child_num (integer)
list = $item->get_child_properties ($child, ...)
o $child (Goo::Canvas::Item)
o ... (list)
Not like the original C function, which call as goo_canvas_item_get_child_properties(item, child, key1, &val1, key2, &val2, ..., NULL).
This function call as $item->get_child_properties($child, $key1, $key2, ...) and return a list ($key1, $val1, $key2, $val2, ...) instead.
So you can call like %pair = $item->get_child_properties($child, $key1, $key2) and use $pair{$key1} and $pair{$key2} to access the value
for the property.
$item->set_child_properties ($child, ...)
o $child (Goo::Canvas::Item)
o ... (list)
$item->ensure_updated
integer = $item->find_child ($child)
o $child (Goo::Canvas::Item)
boolean = $item->is_container
boolean = $item->is_visible
arrayref = $item->get_items_at ($x, $y, $cr, $is_pointer_event, $parent_is_visible)
o $x (double)
o $y (double)
o $cr (cairo_t)
o $is_pointer_event (boolean)
o $parent_is_visible (boolean)
$item->lower (...)
o ... (list)
itemmodel = $item->get_model
$item->set_model ($model)
o $model (Goo::Canvas::ItemModel)
$item->move_child ($old_position, $new_position)
o $old_position (integer)
o $new_position (integer)
integer = $item->get_n_children
$item->paint ($cr, $bounds, $scale)
o $cr (cairo_t)
o $bounds (GooCanvasBounds)
o $scale (double)
item = $item->get_parent
$item->set_parent ($parent)
o $parent (Goo::Canvas::Item)
$item->raise (...)
o ... (list)
$item->remove_child ($child_num)
o $child_num (integer)
$item->request_update
GooCanvasBounds = $item->get_requested_area ($cr)
o $cr (cairo_t)
$item->rotate ($degrees, $cx, $cy)
o $degrees (double)
o $cx (double)
o $cy (double)
$item->scale ($sx, $sy)
o $sx (double)
o $sy (double)
$item->set_simple_transform ($x, $y, $scale, $rotation)
o $x (double)
o $y (double)
o $scale (double)
o $rotation (double)
$item->skew_x ($degrees, $cx, $cy)
o $degrees (double)
o $cx (double)
o $cy (double)
$item->skew_y ($degrees, $cx, $cy)
o $degrees (double)
o $cx (double)
o $cy (double)
$item->stop_animation
style = $item->get_style
$item->set_style ($style)
o $style (Goo::Canvas::Style)
boolean = $item->get_transform_for_child ($child, $transform)
o $child (Goo::Canvas::Item)
o $transform (cairo_matrix_t)
list = $item->get_transform
$item->set_transform ($matrix)
o $matrix (cairo_matrix_t)
$item->translate ($tx, $ty)
o $tx (double)
o $ty (double)
GooCanvasBounds = $item->update ($entire_tree, $cr)
o $entire_tree (boolean)
o $cr (cairo_t)
PROPERTIES
'can-focus' (boolean : default false : readable / writable)
If the item can take the keyboard focus
'description' (string : default undef : readable / writable)
A description of the item for use by assistive technologies
'parent' (Goo::Canvas::Item : default undef : readable / writable)
The parent 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
'title' (string : default undef : readable / writable)
A short context-rich description of the item for use by assistive technologies
'tooltip' (string : default undef : readable / writable)
The tooltip to display for the item
'transform' (Goo::Cairo::Matrix : default undef : readable / writable)
The transformation matrix of the item
'visibility' (Goo::Canvas::ItemVisibility : default "visible" : readable / writable)
When the canvas item is visible
'visibility-threshold' (double : default 0 : readable / writable)
The scale threshold at which the item becomes visible
SIGNALS
child-notify (Goo::Canvas::Item, Glib::ParamSpec)
animation-finished (Goo::Canvas::Item, boolean)
boolean = enter-notify-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = leave-notify-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = motion-notify-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = button-press-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = button-release-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = focus-in-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = focus-out-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = key-press-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = key-release-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = query-tooltip (Goo::Canvas::Item, double, double, boolean, Gtk2::Tooltip)
boolean = grab-broken-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
boolean = scroll-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
ENUMS AND FLAGS
enum Goo::Canvas::AnimateType
o 'freeze' / 'GOO_CANVAS_ANIMATE_FREEZE'
o 'reset' / 'GOO_CANVAS_ANIMATE_RESET'
o 'restart' / 'GOO_CANVAS_ANIMATE_RESTART'
o 'bounce' / 'GOO_CANVAS_ANIMATE_BOUNCE'
enum Goo::Canvas::ItemVisibility
o 'hidden' / 'GOO_CANVAS_ITEM_HIDDEN'
o 'invisible' / 'GOO_CANVAS_ITEM_INVISIBLE'
o 'visible' / 'GOO_CANVAS_ITEM_VISIBLE'
o 'visible-above-threshold' / 'GOO_CANVAS_ITEM_VISIBLE_ABOVE_THRESHOLD'
flags Goo::Canvas::PointerEvents
o 'visible-mask' / 'GOO_CANVAS_EVENTS_VISIBLE_MASK'
o 'painted-mask' / 'GOO_CANVAS_EVENTS_PAINTED_MASK'
o 'fill-mask' / 'GOO_CANVAS_EVENTS_FILL_MASK'
o 'stroke-mask' / 'GOO_CANVAS_EVENTS_STROKE_MASK'
o 'none' / 'GOO_CANVAS_EVENTS_NONE'
o 'visible-painted' / 'GOO_CANVAS_EVENTS_VISIBLE_PAINTED'
o 'visible-fill' / 'GOO_CANVAS_EVENTS_VISIBLE_FILL'
o 'visible-stroke' / 'GOO_CANVAS_EVENTS_VISIBLE_STROKE'
o 'visible' / 'GOO_CANVAS_EVENTS_VISIBLE'
o 'painted' / 'GOO_CANVAS_EVENTS_PAINTED'
o 'fill' / 'GOO_CANVAS_EVENTS_FILL'
o 'stroke' / 'GOO_CANVAS_EVENTS_STROKE'
o 'all' / 'GOO_CANVAS_EVENTS_ALL'
SEE ALSO
Glib::Interface
COPYRIGHT
Copyright (C) 2011 Gtk2-Perl Team
perl v5.14.2 2011-11-16 Goo::Canvas::Item(3pm)