fix jsut committed crasher by rewriting startDrag action
[swfdec.git] / libswfdec / swfdec_as_frame.h
blob344eaa7c7a62501ad44db54d6ca7228a1843a0cf
1 /* Swfdec
2 * Copyright (C) 2007 Benjamin Otte <otte@gnome.org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifndef _SWFDEC_AS_FRAME_H_
21 #define _SWFDEC_AS_FRAME_H_
23 #include <libswfdec/swfdec_as_object.h>
24 #include <libswfdec/swfdec_as_types.h>
26 G_BEGIN_DECLS
28 typedef struct _SwfdecAsFrameClass SwfdecAsFrameClass;
29 typedef struct _SwfdecAsStackIterator SwfdecAsStackIterator;
31 struct _SwfdecAsStackIterator {
32 /*< private >*/
33 SwfdecAsStack * stack;
34 SwfdecAsValue * current;
35 guint i;
36 guint n;
40 #define SWFDEC_TYPE_AS_FRAME (swfdec_as_frame_get_type())
41 #define SWFDEC_IS_AS_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SWFDEC_TYPE_AS_FRAME))
42 #define SWFDEC_IS_AS_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SWFDEC_TYPE_AS_FRAME))
43 #define SWFDEC_AS_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SWFDEC_TYPE_AS_FRAME, SwfdecAsFrame))
44 #define SWFDEC_AS_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_AS_FRAME, SwfdecAsFrameClass))
45 #define SWFDEC_AS_FRAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SWFDEC_TYPE_AS_FRAME, SwfdecAsFrameClass))
47 GType swfdec_as_frame_get_type (void);
49 SwfdecAsFrame * swfdec_as_frame_get_next (SwfdecAsFrame * frame);
50 const char * swfdec_as_frame_get_function_name (SwfdecAsFrame * frame);
51 SwfdecScript * swfdec_as_frame_get_script (SwfdecAsFrame * frame);
52 SwfdecAsObject *swfdec_as_frame_get_this (SwfdecAsFrame * frame);
54 SwfdecAsValue * swfdec_as_stack_iterator_init (SwfdecAsStackIterator * iter,
55 SwfdecAsFrame * frame);
56 SwfdecAsValue * swfdec_as_stack_iterator_init_arguments
57 (SwfdecAsStackIterator * iter,
58 SwfdecAsFrame * frame);
59 SwfdecAsValue * swfdec_as_stack_iterator_next (SwfdecAsStackIterator * iter);
62 G_END_DECLS
63 #endif