Code

get rid of a lot of no longer needed "libnr/nr-..." includes.
[inkscape.git] / src / display / nr-arena-image.h
1 #ifndef __NR_ARENA_IMAGE_H__
2 #define __NR_ARENA_IMAGE_H__
4 /*
5  * RGBA display list system for inkscape
6  *
7  * Author:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * Copyright (C) 2001-2002 Lauris Kaplinski
11  * Copyright (C) 2001 Ximian, Inc.
12  *
13  * Released under GNU GPL, read the file 'COPYING' for more information
14  */
16 #define NR_TYPE_ARENA_IMAGE (nr_arena_image_get_type ())
17 #define NR_ARENA_IMAGE(o) (NR_CHECK_INSTANCE_CAST ((o), NR_TYPE_ARENA_IMAGE, NRArenaImage))
18 #define NR_IS_ARENA_IMAGE(o) (NR_CHECK_INSTANCE_TYPE ((o), NR_TYPE_ARENA_IMAGE))
20 #include "nr-arena-item.h"
21 #include "style.h"
23 NRType nr_arena_image_get_type (void);
25 struct NRArenaImage : public NRArenaItem {
26     unsigned char *px;
27     unsigned int pxw;
28     unsigned int pxh;
29     unsigned int pxrs;
31     double x, y;
32     double width, height;
34     Geom::Point c00, c01, c11, c10; // all 4 corners of the image, for outline mode rect
36     /* From GRID to PIXELS */
37     Geom::Matrix grid2px;
39     SPStyle *style;
41     static NRArenaImage *create(NRArena *arena) {
42         NRArenaImage *obj=reinterpret_cast<NRArenaImage *>(nr_object_new(NR_TYPE_ARENA_IMAGE));
43         obj->init(arena);
44         return obj;
45     }
46 };
48 struct NRArenaImageClass {
49     NRArenaItemClass parent_class;
50 };
52 void nr_arena_image_set_pixels (NRArenaImage *image, unsigned char const *px, unsigned int pxw, unsigned int pxh, unsigned int pxrs);
53 void nr_arena_image_set_geometry (NRArenaImage *image, double x, double y, double width, double height);
54 void nr_arena_image_set_style (NRArenaImage *image, SPStyle *style);
57 #endif
59 /*
60   Local Variables:
61   mode:c++
62   c-file-style:"stroustrup"
63   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
64   indent-tabs-mode:nil
65   fill-column:99
66   End:
67 */
68 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :