Code

GSoC C++-ificiation merge and cleanup.
[inkscape.git] / src / display / sp-canvas-util.h
1 #ifndef __SP_CANVAS_UTILS_H__
2 #define __SP_CANVAS_UTILS_H__
4 /*
5  * Helper stuff for SPCanvas
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * Copyright (C) 1999-2002 authors
11  * Copyright (C) 2001-2002 Ximian, Inc.
12  *
13  * Released under GNU GPL, read the file 'COPYING' for more information
14  */
16 #include "sp-canvas.h"
18 /* Miscellaneous utility & convenience functions for general canvas objects */
20 void sp_canvas_update_bbox (SPCanvasItem *item, int x1, int y1, int x2, int y2);
21 void sp_canvas_item_reset_bounds (SPCanvasItem *item);
22 void sp_canvas_prepare_buffer (SPCanvasBuf *buf);
24 /* fill buffer with background color */
26 void
27 sp_canvas_clear_buffer (SPCanvasBuf * buf);
29 /* get i2p (item to parent) affine transformation as general 6-element array */
31 Geom::Matrix sp_canvas_item_i2p_affine (SPCanvasItem * item);
33 /* get i2i (item to item) affine transformation as general 6-element array */
35 Geom::Matrix sp_canvas_item_i2i_affine (SPCanvasItem * from, SPCanvasItem * to);
37 /* set item affine matrix to achieve given i2w matrix */
39 void sp_canvas_item_set_i2w_affine (SPCanvasItem * item, Geom::Matrix const & aff);
41 void sp_canvas_item_move_to_z (SPCanvasItem * item, gint z);
43 gint sp_canvas_item_compare_z (SPCanvasItem * a, SPCanvasItem * b);
45 #endif
47 /*
48   Local Variables:
49   mode:c++
50   c-file-style:"stroustrup"
51   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
52   indent-tabs-mode:nil
53   fill-column:99
54   End:
55 */
56 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :