fix build for --disable-gtk-doc
[swfdec.git] / swfdec / swfdec_text.h
blob867e6f4450c90be194ca1b1306df6eab46a44598
1 /* Swfdec
2 * Copyright (C) 2003-2006 David Schleef <ds@schleef.org>
3 * 2005-2006 Eric Anholt <eric@anholt.net>
4 * 2006 Benjamin Otte <otte@gnome.org>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #ifndef _SWFDEC_TEXT_H_
23 #define _SWFDEC_TEXT_H_
25 #include <swfdec/swfdec_graphic.h>
26 #include <swfdec/swfdec_color.h>
28 G_BEGIN_DECLS
29 //typedef struct _SwfdecText SwfdecText;
30 typedef struct _SwfdecTextClass SwfdecTextClass;
32 typedef struct _SwfdecTextGlyph SwfdecTextGlyph;
34 #define SWFDEC_TYPE_TEXT (swfdec_text_get_type())
35 #define SWFDEC_IS_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_TEXT))
36 #define SWFDEC_IS_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_TEXT))
37 #define SWFDEC_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_TEXT, SwfdecText))
38 #define SWFDEC_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_TEXT, SwfdecTextClass))
40 struct _SwfdecTextGlyph {
41 int x;
42 int y;
43 int glyph;
44 SwfdecFont * font;
45 int height;
46 SwfdecColor color;
49 struct _SwfdecText {
50 SwfdecGraphic graphic;
52 GArray * glyphs;
53 cairo_matrix_t transform;
54 cairo_matrix_t transform_inverse;
57 struct _SwfdecTextClass {
58 SwfdecGraphicClass graphic_class;
61 GType swfdec_text_get_type (void);
63 int tag_func_define_text (SwfdecSwfDecoder * s, guint tag);
66 G_END_DECLS
67 #endif