re-adding .pngs as binary
[dia.git] / app / render_libart.h
blob090c95c5943875c5f11a52fb3233b151816691bc
1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #ifndef RENDER_LIBART_H
19 #define RENDER_LIBART_H
22 typedef struct _RendererLibart RendererLibart;
24 #include "geometry.h"
25 #include "render.h"
26 #include "display.h"
28 #ifdef HAVE_LIBART
29 #include <libart_lgpl/art_vpath.h>
30 #include <libart_lgpl/art_vpath_dash.h>
31 #include <libart_lgpl/art_svp.h>
32 #include <libart_lgpl/art_svp_vpath_stroke.h>
33 #endif
35 struct _RendererLibart {
36 Renderer renderer;
38 #ifdef HAVE_LIBART
39 DDisplay *ddisp;
40 guint8 *rgb_buffer;
41 int clip_rect_empty;
42 IntRectangle clip_rect;
44 /* line attributes: */
45 double line_width;
46 ArtPathStrokeCapType cap_style;
47 ArtPathStrokeJoinType join_style;
49 LineStyle saved_line_style;
50 int dash_enabled;
51 ArtVpathDash dash;
52 double dash_length;
53 double dot_length;
55 #ifdef HAVE_FREETYPE
56 FT_Face freetype_font;
57 #else
58 GdkFont *gdk_font;
59 SuckFont *suck_font;
60 #endif
61 int font_height;
62 #endif
65 RendererLibart *new_libart_renderer(DDisplay *ddisp, int interactive);
66 void destroy_libart_renderer(RendererLibart *renderer);
67 void libart_renderer_set_size(RendererLibart *renderer,
68 GdkWindow *window,
69 int width, int height);
70 void renderer_libart_copy_to_window(RendererLibart *renderer,
71 GdkWindow *window,
72 int x, int y,
73 int width, int height);
75 #endif /* RENDER_GDK_H */