Code

Fixed a few warnings and hardcoded PANGO_GLYPH_* constants
[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 NR::Matrix sp_canvas_item_i2p_affine (SPCanvasItem * item);
33 /* get i2i (item to item) affine transformation as general 6-element array */
35 NR::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, NR::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 class Shape;
46 class raster_info;
47 void ctrl_run_A8_OR (raster_info &dest, void *data, int st, float vst, int en, float ven);
48 void nr_pixblock_render_ctrl_rgba (Shape* theS, uint32_t color, NRRectL &area, char* destBuf, int stride);
50 #endif
52 /*
53   Local Variables:
54   mode:c++
55   c-file-style:"stroustrup"
56   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
57   indent-tabs-mode:nil
58   fill-column:99
59   End:
60 */
61 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :