Details
gnome_canvas_item_new ()
Creates a new canvas item with parent as its parent group. The item is
created at the top of its parent's stack, and starts up as visible. The item
is of the specified type, for example, it can be
gnome_canvas_rect_get_type(). The list of object arguments/value pairs is
used to configure the item.
gnome_canvas_item_newv ()
Creates a new canvas item with parent as its parent group. The item is
created at the top of its parent's stack, and starts up as visible. The item
is of the specified type, for example, it can be
gnome_canvas_rect_get_type(). The list of object arguments is used to
configure the item.
gnome_canvas_item_construct ()
Constructs a canvas item; meant for use only by item implementations.
gnome_canvas_item_constructv ()
Constructs a canvas item; meant for use only by item implementations.
gnome_canvas_item_set ()
void gnome_canvas_item_set (GnomeCanvasItem *item,
const gchar *first_arg_name,
...); |
Configures a canvas item. The arguments in the item are set to the specified
values, and the item is repainted as appropriate.
gnome_canvas_item_setv ()
void gnome_canvas_item_setv (GnomeCanvasItem *item,
guint nargs,
GtkArg *args); |
Configures a canvas item. The arguments in the item are set to the specified
values, and the item is repainted as appropriate.
gnome_canvas_item_set_valist ()
void gnome_canvas_item_set_valist (GnomeCanvasItem *item,
const gchar *first_arg_name,
va_list args); |
Configures a canvas item. The arguments in the item are set to the specified
values, and the item is repainted as appropriate.
gnome_canvas_item_move ()
Moves a canvas item by creating an affine transformation matrix for
translation by using the specified values.
gnome_canvas_item_affine_relative ()
void gnome_canvas_item_affine_relative
(GnomeCanvasItem *item,
const double affine[6]); |
Combines the specified affine transformation matrix with the item's current
transformation.
gnome_canvas_item_affine_absolute ()
void gnome_canvas_item_affine_absolute
(GnomeCanvasItem *item,
const double affine[6]); |
Makes the item's affine transformation matrix be equal to the specified
matrix.
gnome_canvas_item_scale ()
void gnome_canvas_item_scale (GnomeCanvasItem *item,
double x,
double y,
double scale_x,
double scale_y); |
gnome_canvas_item_rotate ()
void gnome_canvas_item_rotate (GnomeCanvasItem *item,
double x,
double y,
double angle); |
gnome_canvas_item_raise ()
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.
gnome_canvas_item_lower ()
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.
gnome_canvas_item_raise_to_top ()
Raises an item to the top of its parent's stack.
gnome_canvas_item_lower_to_bottom ()
Lowers an item to the bottom of its parent's stack.
gnome_canvas_item_show ()
Shows a canvas item. If the item was already shown, then no action is taken.
gnome_canvas_item_hide ()
Hides a canvas item. If the item was already hidden, then no action is
taken.
gnome_canvas_item_grab ()
int gnome_canvas_item_grab (GnomeCanvasItem *item,
unsigned int event_mask,
GdkCursor *cursor,
guint32 etime); |
Specifies that all events that match the specified event mask should be sent
to the specified item, and also grabs the mouse by calling
gdk_pointer_grab(). The event mask is also used when grabbing the pointer.
If cursor is not NULL, then that cursor is used while the grab is active.
The etime parameter is the timestamp required for grabbing the mouse.
Return value: If an item was already grabbed, it returns AlreadyGrabbed. If
the specified item was hidden by calling gnome_canvas_item_hide(), then it
gnome_canvas_item_ungrab ()
Ungrabs the item, which must have been grabbed in the canvas, and ungrabs the
mouse.
gnome_canvas_item_w2i ()
Converts a coordinate pair from world coordinates to item-relative
coordinates.
gnome_canvas_item_i2w ()
Converts a coordinate pair from item-relative coordinates to world
coordinates.
gnome_canvas_item_i2w_affine ()
void gnome_canvas_item_i2w_affine (GnomeCanvasItem *item,
double affine[6]); |
Gets the affine transform that converts from the item's coordinate system to
world coordinates.
gnome_canvas_item_i2c_affine ()
void gnome_canvas_item_i2c_affine (GnomeCanvasItem *item,
double affine[6]); |
Gets the affine transform that converts from item-relative coordinates to
canvas pixel coordinates.
gnome_canvas_item_reparent ()
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.
gnome_canvas_item_grab_focus ()
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.
gnome_canvas_item_get_bounds ()
void gnome_canvas_item_get_bounds (GnomeCanvasItem *item,
double *x1,
double *y1,
double *x2,
double *y2); |
Queries the bounding box of a canvas item. The bounds are returned in the
coordinate system of the item's parent.
gnome_canvas_item_request_update ()
To be used only by item implementations. Requests that the canvas queue an
update for the specified item.