actually set the variable here
[swfdec.git] / swfdec / swfdec_stroke.h
blob01c2eba57bcb598fb98fd86117d8a8bb4d0b8daf
1 /* Swfdec
2 * Copyright (C) 2006-2007 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library 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 GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef _SWFDEC_STROKE_H_
21 #define _SWFDEC_STROKE_H_
23 #include <swfdec/swfdec_pattern.h>
25 G_BEGIN_DECLS
27 typedef struct _SwfdecStroke SwfdecStroke;
28 typedef struct _SwfdecStrokeClass SwfdecStrokeClass;
30 #define SWFDEC_TYPE_STROKE (swfdec_stroke_get_type())
31 #define SWFDEC_IS_STROKE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_STROKE))
32 #define SWFDEC_IS_STROKE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_STROKE))
33 #define SWFDEC_STROKE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_STROKE, SwfdecStroke))
34 #define SWFDEC_STROKE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_STROKE, SwfdecStrokeClass))
35 #define SWFDEC_STROKE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_STROKE, SwfdecStrokeClass))
37 struct _SwfdecStroke
39 SwfdecDraw draw;
41 guint start_width; /* width of line */
42 SwfdecColor start_color; /* color to paint with */
43 guint end_width; /* width of line */
44 SwfdecColor end_color; /* color to paint with */
45 /* Flash 8 */
46 SwfdecPattern * pattern; /* pattern to use instead of color if not NULL */
47 cairo_line_cap_t start_cap;
48 cairo_line_cap_t end_cap;
49 cairo_line_join_t join;
50 guint miter_limit; /* only set when join = MITER */
51 gboolean no_vscale; /* don't scale line in vertical direction */
52 gboolean no_hscale; /* don't scale line in horizontal direction */
53 gboolean no_close; /* don't auto-close lines */
56 struct _SwfdecStrokeClass
58 SwfdecDrawClass draw_class;
61 GType swfdec_stroke_get_type (void);
63 SwfdecDraw * swfdec_stroke_parse (SwfdecBits * bits,
64 SwfdecSwfDecoder * dec);
65 SwfdecDraw * swfdec_stroke_parse_rgba (SwfdecBits * bits,
66 SwfdecSwfDecoder * dec);
67 SwfdecDraw * swfdec_stroke_parse_extended (SwfdecBits * bits,
68 SwfdecSwfDecoder * dec);
69 SwfdecDraw * swfdec_stroke_parse_morph (SwfdecBits * bits,
70 SwfdecSwfDecoder * dec);
71 SwfdecDraw * swfdec_stroke_parse_morph_extended (SwfdecBits * bits,
72 SwfdecSwfDecoder * dec);
75 G_END_DECLS
76 #endif