Goo::Ca...emModel(3)

πŸ“¦
version 0.06 Β· 2 versions
, in fedora 43

πŸ¦‹ Goo::Canvas::ItemModel πŸ¦‹

okay so bestie, this is a page from the User Contributed Perl Documentation β€” it's Goo::Canvas::ItemModel(3) and she is everything. buckle up, we're doing a full vibe check on this interface πŸŽ€


✨ NAME ✨

Goo::Canvas::ItemModel β€” a wrapper for GooCanvasItemModel. that's it. that's the whole job. she wraps, she slays πŸ’…


🌸 HIERARCHY 🌸

Glib::Interface
+----Goo::Canvas::ItemModel

so she's an interface hanging off Glib::Interface, and that's the entire family tree. only child energy, honestly πŸ‘‘


πŸ’– METHODS πŸ’–

$model->add_child ($child, $position)

  • $child (Goo::Canvas::ItemModel)
  • $position (integer)

$model->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)

itemmodel = $model->get_child ($child_num)

  • $child_num (integer)

list = $model->get_child_properties ($child, ...)

  • $child (Goo::Canvas::ItemModel)
  • ... (list)
bestie listen, this one is not like the original C function, which call as goo_canvas_item_model_get_child_properties(model, child, key1, &val1, key2, &val2, ..., NULL). This function call as $model->get_child_properties($child, $key1, $key2, ...) and return a list ($key1, $val1, $key2, $val2, ...) instead. So you can call like %pair = $model->get_child_properties($child, $key1, $key2) and use $pair{$key1} and $pair{$key2} to access the value for the property. πŸ’–

$model->set_child_properties ($child, ...)

  • $child (Goo::Canvas::ItemModel)
  • ... (list)

integer = $model->find_child ($child)

  • $child (Goo::Canvas::ItemModel)

boolean = $model->is_container

no args, she just tells you if she's a container. iconique 🌈

$item->lower (...)

  • ... (list)

$model->move_child ($old_position, $new_position)

  • $old_position (integer)
  • $new_position (integer)

integer = $model->get_n_children

itemmodel = $model->get_parent

$model->set_parent ($parent)

  • $parent (Goo::Canvas::ItemModel)

$item->raise (...)

  • ... (list)

$model->remove_child ($child_num)

  • $child_num (integer)

$model->rotate ($degrees, $cx, $cy)

  • $degrees (double)
  • $cx (double)
  • $cy (double)

$model->scale ($sx, $sy)

  • $sx (double)
  • $sy (double)

$model->set_simple_transform ($x, $y, $scale, $rotation)

  • $x (double)
  • $y (double)
  • $scale (double)
  • $rotation (double)

$model->skew_x ($degrees, $cx, $cy)

  • $degrees (double)
  • $cx (double)
  • $cy (double)

$model->skew_y ($degrees, $cx, $cy)

  • $degrees (double)
  • $cx (double)
  • $cy (double)

$model->stop_animation

style = $model->get_style

$model->set_style ($style)

  • $style (Goo::Canvas::Style)

list = $item->get_transform

$model->set_transform ($matrix)

  • $matrix (cairo_matrix_t)

$model->translate ($tx, $ty)

  • $tx (double)
  • $ty (double)

🌟 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::ItemModel : default undef : readable / writable) β€” The parent item model
  • '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 πŸ“£

the girl is chatty, okay, she's got a whole group chat going:

  • animation-finished (Goo::Canvas::ItemModel, boolean)
  • changed (Goo::Canvas::ItemModel, boolean)
  • child-added (Goo::Canvas::ItemModel, integer)
  • child-moved (Goo::Canvas::ItemModel, integer, integer)
  • child-notify (Goo::Canvas::ItemModel, Glib::ParamSpec)
  • child-removed (Goo::Canvas::ItemModel, integer)

🌈 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::Interface β€” go say hi, she's the blueprint fr fr πŸ’œ


Copyright (C) 2025 Gtk2-Perl Team


and that's the whole page bestie!! this one was perl v5.42.0, dated 2025-07-25 β€” so she's fresh, she's documented, she ate and left no crumbs βœ¨πŸ’…πŸ¦‹ take care of her, ok bye ily 🫢

πŸ“¦ where this page comes from