| Top |
| void | goc_canvas_c2w () |
| void | goc_canvas_get_bounds () |
| GdkEvent * | goc_canvas_get_cur_event () |
| GocDirection | goc_canvas_get_direction () |
| GODoc * | goc_canvas_get_document () |
| GocItem * | goc_canvas_get_grabbed_item () |
| int | goc_canvas_get_height () |
| GocItem * | goc_canvas_get_item_at () |
| double | goc_canvas_get_pixels_per_unit () |
| gboolean | goc_canvas_get_realized () |
| GocGroup * | goc_canvas_get_root () |
| void | goc_canvas_get_scroll_position () |
| int | goc_canvas_get_width () |
| void | goc_canvas_grab_item () |
| void | goc_canvas_invalidate () |
| void | goc_canvas_invalidate_region () |
| void | goc_canvas_render () |
| void | goc_canvas_scroll_to () |
| void | goc_canvas_set_direction () |
| void | goc_canvas_set_document () |
| void | goc_canvas_set_pixels_per_unit () |
| void | goc_canvas_ungrab_item () |
| void | goc_canvas_w2c () |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkLayout ╰── GocCanvas
void goc_canvas_c2w (GocCanvas *canvas,double x,double y,int *x_,int *y_);
Retrieves the position in the widget given the canvas coordinates.
void goc_canvas_get_bounds (GocCanvas *canvas,double *x0,double *y0,double *x1,double *y1);
void goc_canvas_get_scroll_position (GocCanvas *canvas,double *x,double *y);
Retrieves the origin of the visible region of the canvas.
void goc_canvas_grab_item (GocCanvas *canvas,GocItem *item);
Grabs GocItem. All subsequent events will be passed to GocItem. This function fails if an item is already grabbed.
void goc_canvas_invalidate (GocCanvas *canvas,double x0,double y0,double x1,double y1);
Invalidates a region of the canvas. The canvas will be redrawn only if the invalidated region intersects the visible area.
canvas |
||
x0 |
minimum x coordinate of the invalidated region in canvas coordinates |
|
y0 |
minimum y coordinate of the invalidated region in canvas coordinates |
|
x1 |
maximum x coordinate of the invalidated region in canvas coordinates |
|
y1 |
maximum y coordinate of the invalidated region in canvas coordinates |
void goc_canvas_invalidate_region (GocCanvas *canvas,GocItem *item,cairo_region_t *region);
Invalidates a region of the canvas. Only item
will be redrawn if the next
draw event is called with a cairo contest clipped to region
. Used in
gnumeric for the walking ants cursor.
void goc_canvas_render (GocCanvas *canvas,cairo_t *cr,double x0,double y0,double x1,double y1);
void goc_canvas_scroll_to (GocCanvas *canvas,double x,double y);
Scrolls the canvas so that the origin of the visible region is at (x
,y
).
The origin position depends on the canvas direction (see GocDirection).
void goc_canvas_set_direction (GocCanvas *canvas,GocDirection direction);
Sets the direction used by the canvas.
void goc_canvas_set_document (GocCanvas *canvas,GODoc *document);
Associates the GODoc with the GocCanvas. This is needed to use images when filling styled items (see GocStyledItem).
void goc_canvas_set_pixels_per_unit (GocCanvas *canvas,double pixels_per_unit);
Sets the scale as the number of pixels used for each unit when displaying the canvas.
void
goc_canvas_ungrab_item (GocCanvas *canvas);
Ungrabs the currently grabbed GocItem. This function fails if no item is grabbed.
void goc_canvas_w2c (GocCanvas *canvas,int x,int y,double *x_,double *y_);
Retrieves the canvas coordinates given the position in the widget.