Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Goo::Canvas::ItemModelUser Contributed Perl DocumentaGoo::Canvas::ItemModel(3)

NAME
       Goo::Canvas::ItemModel -	wrapper	for GooCanvasItemModel

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

METHODS
   $model->add_child ($child, $position)
       o   $child (Goo::Canvas::ItemModel)

       o   $position (integer)

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

   itemmodel = $model->get_child ($child_num)
       o   $child_num (integer)

   list	= $model->get_child_properties ($child,	...)
       o   $child (Goo::Canvas::ItemModel)

       o   ... (list)

       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, ...)
       o   $child (Goo::Canvas::ItemModel)

       o   ... (list)

   integer = $model->find_child	($child)
       o   $child (Goo::Canvas::ItemModel)

   boolean = $model->is_container
   $item->lower	(...)
       o   ... (list)

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

       o   $new_position (integer)

   integer = $model->get_n_children
   itemmodel = $model->get_parent
   $model->set_parent ($parent)
       o   $parent (Goo::Canvas::ItemModel)

   $item->raise	(...)
       o   ... (list)

   $model->remove_child	($child_num)
       o   $child_num (integer)

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

       o   $cx (double)

       o   $cy (double)

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

       o   $sy (double)

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

       o   $y (double)

       o   $scale (double)

       o   $rotation (double)

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

       o   $cx (double)

       o   $cy (double)

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

       o   $cx (double)

       o   $cy (double)

   $model->stop_animation
   style = $model->get_style
   $model->set_style ($style)
       o   $style (Goo::Canvas::Style)

   list	= $item->get_transform
   $model->set_transform ($matrix)
       o   $matrix (cairo_matrix_t)

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

       o   $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
       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
       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) 2020 Gtk2-Perl Team

perl v5.32.0			  2020-08-30	     Goo::Canvas::ItemModel(3)

NAME | HIERARCHY | METHODS | PROPERTIES | SIGNALS | ENUMS AND FLAGS | SEE ALSO | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Goo::Canvas::ItemModel&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help