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.
parent :
The parent group for the new item.
type :
The object type of the item.
first_arg_name :
A list of object argument name/value pairs, NULL-terminated,
used to configure the item. For example, "fill_color", "black",
"width_units", 5.0, NULL.
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.
parent :
The parent group for the new item.
type :
The object type of the item.
nargs :
The number of arguments used to configure the item.
void gnome_canvas_item_rotate (GnomeCanvasItem *item,
double x,
double y,
double angle);
item :
x :
y :
angle :
gnome_canvas_item_raise ()
void gnome_canvas_item_raise (GnomeCanvasItem *item,
int positions);
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.
item :
A canvas item.
positions :
Number of steps to raise the item.
gnome_canvas_item_lower ()
void gnome_canvas_item_lower (GnomeCanvasItem *item,
int positions);
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.
Hides a canvas item. If the item was already hidden, then no action is
taken.
item :
A canvas item.
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
item :
A canvas item.
event_mask :
Mask of events that will be sent to this item.
cursor :
If non-NULL, the cursor that will be used while the grab is active.
etime :
The timestamp required for grabbing the mouse, or GDK_CURRENT_TIME.
Returns :
GrabNotViewable. Else, it returns the result of calling
gdk_pointer_grab().
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.
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.