=head1 NAME

Gnome2::Canvas::Item

=cut

=head1 HIERARCHY

  Glib::Object
  +----Glib::InitiallyUnowned
       +----Gtk2::Object
            +----Gnome2::Canvas::Item



=cut


=head1 METHODS

=head2 item = Gnome2::Canvas::Item-E<gt>B<new> ($parent, $object_class, ...)

=over

=item * $parent (Gnome2::Canvas::Group) 

=item * $object_class (string) 

=item * ... (list) property name => value pairs

=back

Factory constructor for Gnome2::Canvas::Item subclasses.

=head2 $item-E<gt>B<affine_absolute> ($affine)

=over

=item * $affine (arrayref) affine transformation matrix

=back

Replaces I<$item>'s transformation matrix.

=head2 $item-E<gt>B<affine_relative> ($affine)

=over

=item * $affine (arrayref) affine transformation matrix

=back

Combines I<$affine> with I<$item>'s current transformation.

=head2 (x1, y1, x2, y2) = $item-E<gt>B<get_bounds> 

=head2 $canvas = $item->B<canvas>

Fetch the Gnome2::Canvas to which I<$item> is attached.

=head2 grabstatus = $item-E<gt>B<grab> ($event_mask, $cursor, $etime=GDK_CURRENT_TIME)

=over

=item * $event_mask (Gtk2::Gdk::EventMask) 

=item * $cursor (Gtk2::Gdk::Cursor) 

=item * $etime (unsigned) 

=back

=head2 $item-E<gt>B<grab_focus> 

=head2 $item-E<gt>B<hide> 

=head2 $affine = $item->B<i2c_affine>

=over

=back

Fetch the affine transform that converts from item-relative coordinates to
canvas pixel coordinates.

Note: This method was completely broken for all
$Gnome2::Canvas::VERSION < 1.002.

=head2 (x, y) = $item-E<gt>B<i2w> ($x, $y)

=over

=item * $x (double) 

=item * $y (double) 

=back

=head2 $affine = $item->B<i2w_affine>

=over

=back

Fetch the affine transform that converts from item's coordinate system to
world coordinates.

Note: This method was completely broken for all
$Gnome2::Canvas::VERSION < 1.002.

=head2 $item-E<gt>B<lower> ($positions)

=over

=item * $positions (integer) 

=back

=head2 $item-E<gt>B<lower_to_bottom> 

=head2 $item-E<gt>B<move> ($dx, $dy)

=over

=item * $dx (double) 

=item * $dy (double) 

=back

=head2 $canvasgroup = $item->B<parent>

Fetch I<$item>'s parent group item.

=head2 $item-E<gt>B<raise> ($positions)

=over

=item * $positions (integer) 

=back

=head2 $item-E<gt>B<raise_to_top> 

=head2 $item-E<gt>B<reparent> ($new_group)

=over

=item * $new_group (Gnome2::Canvas::Group) 

=back

=head2 $item-E<gt>B<request_update> 

=head2 $item-E<gt>B<reset_bounds> 

Reset the bounding box of I<$item> to an empty rectangle.

=head2 $item-E<gt>B<show> 

=head2 $item-E<gt>B<ungrab> ($etime=GDK_CURRENT_TIME)

=over

=item * $etime (unsigned) 

=back

=head2 $item-E<gt>B<update_bbox> ($x1, $y1, $x2, $y2)

=over

=item * $x1 (integer) 

=item * $y1 (integer) 

=item * $x2 (integer) 

=item * $y2 (integer) 

=back

Set I<$item>'s bounding box to a new rectangle, and request a full repaint.

=head2 (x, y) = $item-E<gt>B<w2i> ($x, $y)

=over

=item * $x (double) 

=item * $y (double) 

=back



=cut


=head1 PROPERTIES

=over

=item 'parent' (Gnome2::Canvas::Item : default undef : readable / writable)

=back



=cut


=head1 SIGNALS

=over

=item boolean = B<event> (Gnome2::Canvas::Item, Gtk2::Gdk::Event)

=back



=cut


=head1 ENUMS AND FLAGS

=head2 flags Gtk2::Gdk::EventMask

=over

=item * 'exposure-mask' / 'GDK_EXPOSURE_MASK'

=item * 'pointer-motion-mask' / 'GDK_POINTER_MOTION_MASK'

=item * 'pointer-motion-hint-mask' / 'GDK_POINTER_MOTION_HINT_MASK'

=item * 'button-motion-mask' / 'GDK_BUTTON_MOTION_MASK'

=item * 'button1-motion-mask' / 'GDK_BUTTON1_MOTION_MASK'

=item * 'button2-motion-mask' / 'GDK_BUTTON2_MOTION_MASK'

=item * 'button3-motion-mask' / 'GDK_BUTTON3_MOTION_MASK'

=item * 'button-press-mask' / 'GDK_BUTTON_PRESS_MASK'

=item * 'button-release-mask' / 'GDK_BUTTON_RELEASE_MASK'

=item * 'key-press-mask' / 'GDK_KEY_PRESS_MASK'

=item * 'key-release-mask' / 'GDK_KEY_RELEASE_MASK'

=item * 'enter-notify-mask' / 'GDK_ENTER_NOTIFY_MASK'

=item * 'leave-notify-mask' / 'GDK_LEAVE_NOTIFY_MASK'

=item * 'focus-change-mask' / 'GDK_FOCUS_CHANGE_MASK'

=item * 'structure-mask' / 'GDK_STRUCTURE_MASK'

=item * 'property-change-mask' / 'GDK_PROPERTY_CHANGE_MASK'

=item * 'visibility-notify-mask' / 'GDK_VISIBILITY_NOTIFY_MASK'

=item * 'proximity-in-mask' / 'GDK_PROXIMITY_IN_MASK'

=item * 'proximity-out-mask' / 'GDK_PROXIMITY_OUT_MASK'

=item * 'substructure-mask' / 'GDK_SUBSTRUCTURE_MASK'

=item * 'scroll-mask' / 'GDK_SCROLL_MASK'

=item * 'all-events-mask' / 'GDK_ALL_EVENTS_MASK'

=back


=head2 enum Gtk2::Gdk::GrabStatus

=over

=item * 'success' / 'GDK_GRAB_SUCCESS'

=item * 'already-grabbed' / 'GDK_GRAB_ALREADY_GRABBED'

=item * 'invalid-time' / 'GDK_GRAB_INVALID_TIME'

=item * 'not-viewable' / 'GDK_GRAB_NOT_VIEWABLE'

=item * 'frozen' / 'GDK_GRAB_FROZEN'

=back




=cut


=head1 SEE ALSO

L<Gnome2::Canvas>, L<Glib::Object>, L<Glib::InitiallyUnowned>, L<Gtk2::Object>


=cut


=head1 COPYRIGHT

Copyright (C) 2003-2004 by the Gtk2-Perl Team.

This software is licensed under the LGPL; see L<Gnome2::Canvas> for a full notice.


=cut

