make the g_print a debug message
[swfdec.git] / libswfdec / swfdec_style_sheet.h
blob14fe2808c755c1652eca2e5bbc6b0e8bd6b8e96a
1 /* Swfdec
2 * Copyright (C) 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_STYLESHEET_H_
22 #define _SWFDEC_STYLESHEET_H_
24 #include <libswfdec/swfdec_as_object.h>
25 #include <libswfdec/swfdec_types.h>
26 #include <libswfdec/swfdec_script.h>
27 #include <libswfdec/swfdec_text_format.h>
29 G_BEGIN_DECLS
31 typedef struct _SwfdecStyleSheet SwfdecStyleSheet;
32 typedef struct _SwfdecStyleSheetClass SwfdecStyleSheetClass;
34 #define SWFDEC_TYPE_STYLESHEET (swfdec_style_sheet_get_type())
35 #define SWFDEC_IS_STYLESHEET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_STYLESHEET))
36 #define SWFDEC_IS_STYLESHEET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_STYLESHEET))
37 #define SWFDEC_STYLESHEET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_STYLESHEET, SwfdecStyleSheet))
38 #define SWFDEC_STYLESHEET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_STYLESHEET, SwfdecStyleSheetClass))
39 #define SWFDEC_STYLESHEET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_STYLESHEET, SwfdecStyleSheetClass))
41 struct _SwfdecStyleSheet {
42 SwfdecAsObject object;
44 GSList *listeners; /* text fields to update */
47 struct _SwfdecStyleSheetClass {
48 SwfdecAsObjectClass object_class;
51 GType swfdec_style_sheet_get_type (void);
53 // FIXME: Take SwfdecTextFieldMovie
54 void swfdec_style_sheet_add_listener (SwfdecStyleSheet * style,
55 SwfdecAsObject * listener);
56 void swfdec_style_sheet_remove_listener (SwfdecStyleSheet * style,
57 SwfdecAsObject * listener);
59 SwfdecTextFormat *swfdec_style_sheet_get_tag_format (SwfdecStyleSheet * style,
60 const char * name);
61 SwfdecTextFormat *swfdec_style_sheet_get_class_format (SwfdecStyleSheet * style,
62 const char * name);
64 G_END_DECLS
65 #endif