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