2 * Copyright (C) 2007-2008 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_FORMAT_H_
22 #define _SWFDEC_TEXT_FORMAT_H_
24 #include <swfdec/swfdec_as_relay.h>
25 #include <swfdec/swfdec_text_attributes.h>
26 #include <swfdec/swfdec_types.h>
30 typedef struct _SwfdecTextFormat SwfdecTextFormat
;
31 typedef struct _SwfdecTextFormatClass SwfdecTextFormatClass
;
33 #define SWFDEC_TYPE_TEXT_FORMAT (swfdec_text_format_get_type())
34 #define SWFDEC_IS_TEXT_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_TEXT_FORMAT))
35 #define SWFDEC_IS_TEXT_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_TEXT_FORMAT))
36 #define SWFDEC_TEXT_FORMAT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_TEXT_FORMAT, SwfdecTextFormat))
37 #define SWFDEC_TEXT_FORMAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_TEXT_FORMAT, SwfdecTextFormatClass))
38 #define SWFDEC_TEXT_FORMAT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_TEXT_FORMAT, SwfdecTextFormatClass))
40 struct _SwfdecTextFormat
{
43 SwfdecTextAttributes attr
;
48 struct _SwfdecTextFormatClass
{
49 SwfdecAsRelayClass relay_class
;
52 GType
swfdec_text_format_get_type (void);
54 SwfdecTextFormat
* swfdec_text_format_new (SwfdecAsContext
* context
);
55 SwfdecTextFormat
* swfdec_text_format_new_no_properties (SwfdecAsContext
* context
);
56 void swfdec_text_format_set_defaults (SwfdecTextFormat
* format
);
57 SwfdecTextFormat
* swfdec_text_format_copy (SwfdecTextFormat
* copy_from
);
58 void swfdec_text_format_add (SwfdecTextFormat
* format
,
59 const SwfdecTextFormat
*from
);
60 gboolean
swfdec_text_format_equal (const SwfdecTextFormat
*a
,
61 const SwfdecTextFormat
*b
);
62 gboolean
swfdec_text_format_equal_or_undefined (const SwfdecTextFormat
*a
,
63 const SwfdecTextFormat
*b
);
64 void swfdec_text_format_remove_different (SwfdecTextFormat
* format
,
65 const SwfdecTextFormat
*from
);
66 void swfdec_text_format_init_properties (SwfdecAsContext
* cx
);