Rechercher une page de manuel
Goo::Canvas::Item.3pm
Langue: en
Version: 2009-05-07 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
- NAME
- HIERARCHY
- METHODS
- $item->add_child ($child, $position)
- $item->allocate_area ($cr, $requested_area, $allocated_area, $x_offset, $y_offset)
- $item->animate ($x, $y, $scale, $degrees, $absolute, $duration, $step_time, $type)
- GooCanvasBounds = $item->get_bounds
- canvas = $item->get_canvas
- $item->set_canvas ($canvas)
- item = $item->get_child ($child_num)
- list = $item->get_child_properties ($child, ...)
- $item->set_child_properties ($child, ...)
- $item->ensure_updated
- integer = $item->find_child ($child)
- boolean = $item->is_container
- boolean = $item->is_visible
- AV = $item->get_items_at ($x, $y, $cr, $is_pointer_event, $parent_is_visible)
- $item->lower (...)
- itemmodel = $item->get_model
- $item->set_model ($model)
- $item->move_child ($old_position, $new_position)
- integer = $item->get_n_children
- $item->paint ($cr, $bounds, $scale)
- item = $item->get_parent
- $item->set_parent ($parent)
- $item->raise (...)
- $item->remove_child ($child_num)
- $item->request_update
- GooCanvasBounds = $item->get_requested_area ($cr)
- $item->rotate ($degrees, $cx, $cy)
- $item->scale ($sx, $sy)
- $item->set_simple_transform ($x, $y, $scale, $rotation)
- $item->skew_x ($degrees, $cx, $cy)
- $item->skew_y ($degrees, $cx, $cy)
- $item->stop_animation
- style = $item->get_style
- $item->set_style ($style)
- boolean = $item->get_transform_for_child ($child, $transform)
- list = $item->get_transform
- $item->set_transform ($matrix)
- $item->translate ($tx, $ty)
- GooCanvasBounds = $item->update ($entire_tree, $cr)
- PROPERTIES
- SIGNALS
- ENUMS AND FLAGS
- SEE ALSO
- COPYRIGHT
NAME
Goo::Canvas::Item - wrapper for GooCanvasItemHIERARCHY
Glib::Interface +----Goo::Canvas::Item
METHODS
$item->add_child ($child, $position)
- •
- $child (Goo::Canvas::Item)
- •
- $position (integer)
$item->allocate_area ($cr, $requested_area, $allocated_area, $x_offset, $y_offset)
- •
- $cr (cairo_t)
- •
- $requested_area (GooCanvasBounds)
- •
- $allocated_area (GooCanvasBounds)
- •
- $x_offset (double)
- •
- $y_offset (double)
$item->animate ($x, $y, $scale, $degrees, $absolute, $duration, $step_time, $type)
- •
- $x (double)
- •
- $y (double)
- •
- $scale (double)
- •
- $degrees (double)
- •
- $absolute (boolean)
- •
- $duration (integer)
- •
- $step_time (integer)
- •
- $type (Goo::Canvas::AnimateType)
GooCanvasBounds = $item->get_bounds
canvas = $item->get_canvas
$item->set_canvas ($canvas)
- •
- $canvas (Goo::Canvas)
item = $item->get_child ($child_num)
- •
- $child_num (integer)
list = $item->get_child_properties ($child, ...)
- •
- $child (Goo::Canvas::Item)
- •
- ... (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, ...)
- •
- $child (Goo::Canvas::Item)
- •
- ... (list)
$item->ensure_updated
integer = $item->find_child ($child)
- •
- $child (Goo::Canvas::Item)
boolean = $item->is_container
boolean = $item->is_visible
AV = $item->get_items_at ($x, $y, $cr, $is_pointer_event, $parent_is_visible)
- •
- $x (double)
- •
- $y (double)
- •
- $cr (cairo_t)
- •
- $is_pointer_event (boolean)
- •
- $parent_is_visible (boolean)
$item->lower (...)
- •
- ... (list)
itemmodel = $item->get_model
$item->set_model ($model)
- •
- $model (Goo::Canvas::ItemModel)
$item->move_child ($old_position, $new_position)
- •
- $old_position (integer)
- •
- $new_position (integer)
integer = $item->get_n_children
$item->paint ($cr, $bounds, $scale)
- •
- $cr (cairo_t)
- •
- $bounds (GooCanvasBounds)
- •
- $scale (double)
item = $item->get_parent
$item->set_parent ($parent)
- •
- $parent (Goo::Canvas::Item)
$item->raise (...)
- •
- ... (list)
$item->remove_child ($child_num)
- •
- $child_num (integer)
$item->request_update
GooCanvasBounds = $item->get_requested_area ($cr)
- •
- $cr (cairo_t)
$item->rotate ($degrees, $cx, $cy)
- •
- $degrees (double)
- •
- $cx (double)
- •
- $cy (double)
$item->scale ($sx, $sy)
- •
- $sx (double)
- •
- $sy (double)
$item->set_simple_transform ($x, $y, $scale, $rotation)
- •
- $x (double)
- •
- $y (double)
- •
- $scale (double)
- •
- $rotation (double)
$item->skew_x ($degrees, $cx, $cy)
- •
- $degrees (double)
- •
- $cx (double)
- •
- $cy (double)
$item->skew_y ($degrees, $cx, $cy)
- •
- $degrees (double)
- •
- $cx (double)
- •
- $cy (double)
$item->stop_animation
style = $item->get_style
$item->set_style ($style)
- •
- $style (Goo::Canvas::Style)
boolean = $item->get_transform_for_child ($child, $transform)
- •
- $child (Goo::Canvas::Item)
- •
- $transform (cairo_matrix_t)
list = $item->get_transform
$item->set_transform ($matrix)
- •
- $matrix (cairo_matrix_t)
$item->translate ($tx, $ty)
- •
- $tx (double)
- •
- $ty (double)
GooCanvasBounds = $item->update ($entire_tree, $cr)
- •
- $entire_tree (boolean)
- •
- $cr (cairo_t)
PROPERTIES
- 'can-focus' (boolean : readable / writable)
- If the item can take the keyboard focus
- 'description' (string : readable / writable)
- A description of the item for use by assistive technologies
- 'parent' (Goo::Canvas::Item : readable / writable)
- The parent item
- 'pointer-events' (Goo::Canvas::PointerEvents : readable / writable)
- Specifies when the item receives pointer events
- 'title' (string : readable / writable)
- A short context-rich description of the item for use by assistive technologies
- 'transform' (Goo::Cairo::Matrix : readable / writable)
- The transformation matrix of the item
- 'visibility' (Goo::Canvas::ItemVisibility : readable / writable)
- When the canvas item is visible
- 'visibility-threshold' (double : 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 = grab-broken-event (Goo::Canvas::Item, Goo::Canvas::Item, Gtk2::Gdk::Event)
ENUMS AND FLAGS
enum Goo::Canvas::AnimateType
- •
- 'freeze' / 'GOO_CANVAS_ANIMATE_FREEZE'
- •
- 'reset' / 'GOO_CANVAS_ANIMATE_RESET'
- •
- 'restart' / 'GOO_CANVAS_ANIMATE_RESTART'
- •
- 'bounce' / 'GOO_CANVAS_ANIMATE_BOUNCE'
enum Goo::Canvas::ItemVisibility
- •
- 'hidden' / 'GOO_CANVAS_ITEM_HIDDEN'
- •
- 'invisible' / 'GOO_CANVAS_ITEM_INVISIBLE'
- •
- 'visible' / 'GOO_CANVAS_ITEM_VISIBLE'
- •
- 'visible-above-threshold' / 'GOO_CANVAS_ITEM_VISIBLE_ABOVE_THRESHOLD'
flags Goo::Canvas::PointerEvents
- •
- 'visible-mask' / 'GOO_CANVAS_EVENTS_VISIBLE_MASK'
- •
- 'painted-mask' / 'GOO_CANVAS_EVENTS_PAINTED_MASK'
- •
- 'fill-mask' / 'GOO_CANVAS_EVENTS_FILL_MASK'
- •
- 'stroke-mask' / 'GOO_CANVAS_EVENTS_STROKE_MASK'
- •
- 'none' / 'GOO_CANVAS_EVENTS_NONE'
- •
- 'visible-painted' / 'GOO_CANVAS_EVENTS_VISIBLE_PAINTED'
- •
- 'visible-fill' / 'GOO_CANVAS_EVENTS_VISIBLE_FILL'
- •
- 'visible-stroke' / 'GOO_CANVAS_EVENTS_VISIBLE_STROKE'
- •
- 'visible' / 'GOO_CANVAS_EVENTS_VISIBLE'
- •
- 'painted' / 'GOO_CANVAS_EVENTS_PAINTED'
- •
- 'fill' / 'GOO_CANVAS_EVENTS_FILL'
- •
- 'stroke' / 'GOO_CANVAS_EVENTS_STROKE'
- •
- 'all' / 'GOO_CANVAS_EVENTS_ALL'
SEE ALSO
Glib::InterfaceCOPYRIGHT
Copyright (C) 2009 Gtk2-Perl TeamContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre