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
;
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>
35 struct _RendererLibart
{
42 IntRectangle clip_rect
;
44 /* line attributes: */
46 ArtPathStrokeCapType cap_style
;
47 ArtPathStrokeJoinType join_style
;
49 LineStyle saved_line_style
;
56 FT_Face freetype_font
;
65 RendererLibart
*new_libart_renderer(DDisplay
*ddisp
, int interactive
);
66 void destroy_libart_renderer(RendererLibart
*renderer
);
67 void libart_renderer_set_size(RendererLibart
*renderer
,
69 int width
, int height
);
70 void renderer_libart_copy_to_window(RendererLibart
*renderer
,
73 int width
, int height
);
75 #endif /* RENDER_GDK_H */