#include <item.h>
Inheritance diagram for Gnome::Canvas::Item:
Public Member Functions | |
virtual | ~Item () |
GnomeCanvasItem * | gobj () |
Provides access to the underlying C GtkObject. | |
const GnomeCanvasItem * | gobj () const |
Provides access to the underlying C GtkObject. | |
void | move (double dx, double dy) |
Moves a canvas item by creating an affine transformation matrix for translation by using the specified values. | |
void | raise (int positions) |
Raises the item in its parent's stack by the specified number of positions. | |
void | lower (int positions) |
Lowers the item in its parent's stack by the specified number of positions. | |
void | raise_to_top () |
Raises an item to the top of its parent's stack. | |
void | lower_to_bottom () |
Lowers an item to the bottom of its parent's stack. | |
int | grab (unsigned int event_mask, const Gdk::Cursor &cursor, guint32 etime) |
int | grab (unsigned int event_mask, guint32 etime) |
void | ungrab (guint32 etime) |
Ungrabs the item, which must have been grabbed in the canvas, and ungrabs the mouse. | |
void | w2i (double &x, double &y) |
Converts a coordinate pair from world coordinates to item-relative coordinates. | |
void | i2w (double &x, double &y) |
Converts a coordinate pair from item-relative coordinates to world coordinates. | |
void | grab_focus () |
Makes the specified item take the keyboard focus, so all keyboard events will be sent to it. | |
void | get_bounds (double &x1, double &y1, double &x2, double &y2) const |
Queries the bounding box of a canvas item. | |
void | show () |
Shows a canvas item. | |
void | hide () |
Hides a canvas item. | |
void | affine_relative (const Art::AffineTrans &affine) |
void | affine_absolute (const Art::AffineTrans &affine) |
Art::AffineTrans | get_i2w_affine () const |
Art::AffineTrans | get_i2c_affine () const |
void | reparent (Group &new_group) |
Changes the parent of the specified item to be the new group. | |
Canvas * | get_canvas () const |
Returns the canvas we're on. | |
Glib::SignalProxy1< bool, GdkEvent * > | signal_event () |
Glib::PropertyProxy< Group * > | property_parent () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Protected Member Functions | |
virtual void | update_vfunc (double *affine, ArtSVP *clip_path, int flags) |
virtual void | realize_vfunc () |
virtual void | unrealize_vfunc () |
virtual void | map_vfunc () |
virtual void | unmap_vfunc () |
virtual ArtUta * | coverage_vfunc () |
virtual void | draw_vfunc (GdkDrawable *drawable, int x, int y, int width, int height) |
virtual void | render_vfunc (GnomeCanvasBuf *buf) |
virtual double | point_vfunc (double x, double y, int cx, int cy, GnomeCanvasItem **actual_item) |
virtual void | bounds_vfunc (double *x1, double *y1, double *x2, double *y2) |
virtual bool | on_event (GdkEvent *p1) |
void | item_construct (Group &group) |
void | item_construct (Group &group, const gchar *first_arg_name, va_list ap) |
void | set (const gchar *first_arg_name,...) |
void | request_update () |
To be used only by item implementations. | |
void | reset_bounds () |
Resets the bounding box of a canvas item to an empty rectangle. | |
void | update_svp (ArtSVP **p_svp, ArtSVP *new_svp) |
Sets the svp to the new value, requesting repaint on what's changed. | |
void | update_svp_clip (ArtSVP **p_svp, ArtSVP *new_svp, ArtSVP *clip_svp) |
Sets the svp to the new value, clipping if necessary, and requesting repaint on what's changed. | |
void | request_redraw_svp (const ArtSVP *svp) |
Request redraw of the svp if in aa mode, or the entire item in in xlib mode. | |
void | update_bbox (int x1, int y1, int x2, int y2) |
Sets the bbox to the new value, requesting full repaint. | |
Related Functions | |
(Note that these are not member functions.) | |
Gnome::Canvas::Item * | wrap (GnomeCanvasItem *object, bool take_copy=false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
Queries the bounding box of a canvas item. The bounds are returned in the coordinate system of the item's parent.
|
|
Returns the canvas we're on.
|
|
|
|
|
|
Provides access to the underlying C GtkObject.
Reimplemented in Gnome::Canvas::Bpath, Gnome::Canvas::Ellipse, Gnome::Canvas::Group, Gnome::Canvas::Line, Gnome::Canvas::Pixbuf, Gnome::Canvas::Polygon, Gnome::Canvas::RectEllipse, Gnome::Canvas::Rect, Gnome::Canvas::RichText, Gnome::Canvas::Shape, Gnome::Canvas::Text, and Gnome::Canvas::Widget. |
|
Provides access to the underlying C GtkObject.
Reimplemented in Gnome::Canvas::Bpath, Gnome::Canvas::Ellipse, Gnome::Canvas::Group, Gnome::Canvas::Line, Gnome::Canvas::Pixbuf, Gnome::Canvas::Polygon, Gnome::Canvas::RectEllipse, Gnome::Canvas::Rect, Gnome::Canvas::RichText, Gnome::Canvas::Shape, Gnome::Canvas::Text, and Gnome::Canvas::Widget. |
|
|
|
|
|
Makes the specified item take the keyboard focus, so all keyboard events will be sent to it. If the canvas widget itself did not have the focus, it grabs it as well. |
|
Hides a canvas item. If the item was already hidden, then no action is taken. |
|
Converts a coordinate pair from item-relative coordinates to world coordinates.
|
|
|
|
|
|
Lowers the item in its parent's stack by the specified number of positions. If the number of positions is greater than the distance to the bottom of the stack, then the item is put at the bottom.
|
|
Lowers an item to the bottom of its parent's stack.
|
|
|
|
Moves a canvas item by creating an affine transformation matrix for translation by using the specified values. This happens in item local coordinate system, so if you have nontrivial transform, it most probably does not do, what you want.
|
|
|
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Raises the item in its parent's stack by the specified number of positions. If the number of positions is greater than the distance to the top of the stack, then the item is put at the top.
|
|
Raises an item to the top of its parent's stack.
|
|
|
|
|
|
Changes the parent of the specified item to be the new group. The item keeps its group-relative coordinates as for its old parent, so the item may change its absolute position within the canvas.
|
|
Request redraw of the svp if in aa mode, or the entire item in in xlib mode.
|
|
To be used only by item implementations. Requests that the canvas queue an update for the specified item. |
|
Resets the bounding box of a canvas item to an empty rectangle.
|
|
|
|
Shows a canvas item. If the item was already shown, then no action is taken. |
|
|
|
Ungrabs the item, which must have been grabbed in the canvas, and ungrabs the mouse.
|
|
|
|
|
|
Sets the bbox to the new value, requesting full repaint.
|
|
Sets the svp to the new value, requesting repaint on what's changed. This function takes responsibility for freeing new_svp. This routine also adds the svp's bbox to the item's.
|
|
Sets the svp to the new value, clipping if necessary, and requesting repaint on what's changed. This function takes responsibility for freeing new_svp.
|
|
|
|
Converts a coordinate pair from world coordinates to item-relative coordinates.
|
|
|