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.
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>
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))
43 SWFDEC_AUTO_SIZE_NONE
,
44 SWFDEC_AUTO_SIZE_LEFT
,
45 SWFDEC_AUTO_SIZE_RIGHT
,
46 SWFDEC_AUTO_SIZE_CENTER
49 struct _SwfdecTextField
51 SwfdecGraphic graphic
;
64 SwfdecAutoSize auto_size
;
69 /* only to be passed to the movie object */
75 SwfdecTextAlign align
;
82 struct _SwfdecTextFieldClass
84 SwfdecGraphicClass graphic_class
;
87 GType
swfdec_text_field_get_type (void);
89 int tag_func_define_edit_text (SwfdecSwfDecoder
* s
,