fix build for --disable-gtk-doc
[swfdec.git] / swfdec / swfdec_text_field.h
blob2ad0414d54f254eb2317229d4c7a7299bc7a5cd6
1 /* Swfdec
2 * Copyright (C) 2006-2007 Benjamin Otte <otte@gnome.org>
3 * 2007 Pekka Lampila <pekka.lampila@iki.fi>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301 USA
21 #ifndef _SWFDEC_TEXT_FIELD_H_
22 #define _SWFDEC_TEXT_FIELD_H_
24 #include <pango/pango.h>
25 #include <swfdec/swfdec_types.h>
26 #include <swfdec/swfdec_color.h>
27 #include <swfdec/swfdec_graphic.h>
28 #include <swfdec/swfdec_player.h>
29 #include <swfdec/swfdec_text_format.h>
31 G_BEGIN_DECLS
33 typedef struct _SwfdecTextField SwfdecTextField;
34 typedef struct _SwfdecTextFieldClass SwfdecTextFieldClass;
36 #define SWFDEC_TYPE_TEXT_FIELD (swfdec_text_field_get_type())
37 #define SWFDEC_IS_TEXT_FIELD(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_TEXT_FIELD))
38 #define SWFDEC_IS_TEXT_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_TEXT_FIELD))
39 #define SWFDEC_TEXT_FIELD(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_TEXT_FIELD, SwfdecTextField))
40 #define SWFDEC_TEXT_FIELD_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_TEXT_FIELD, SwfdecTextFieldClass))
42 typedef enum {
43 SWFDEC_AUTO_SIZE_NONE,
44 SWFDEC_AUTO_SIZE_LEFT,
45 SWFDEC_AUTO_SIZE_RIGHT,
46 SWFDEC_AUTO_SIZE_CENTER
47 } SwfdecAutoSize;
49 struct _SwfdecTextField
51 SwfdecGraphic graphic;
53 gboolean html;
55 gboolean editable;
56 gboolean password;
57 int max_chars;
58 gboolean selectable;
60 gboolean embed_fonts;
62 gboolean word_wrap;
63 gboolean multiline;
64 SwfdecAutoSize auto_size;
66 gboolean border;
67 gboolean background;
69 /* only to be passed to the movie object */
70 char * input;
71 char * variable;
72 char * font;
73 guint size;
74 SwfdecColor color;
75 SwfdecTextAlign align;
76 guint left_margin;
77 guint right_margin;
78 guint indent;
79 int leading;
82 struct _SwfdecTextFieldClass
84 SwfdecGraphicClass graphic_class;
87 GType swfdec_text_field_get_type (void);
89 int tag_func_define_edit_text (SwfdecSwfDecoder * s,
90 guint tag);
92 G_END_DECLS
93 #endif