OSDN Git Service

Once more, Allow building with either giflib 4.2 or 5.0.
[swfed/swfed.git] / src / swf_button_condaction.h
1 /*
2   +----------------------------------------------------------------------+
3   | Author: yoya@awm.jp                                                  |
4   +----------------------------------------------------------------------+
5 */
6
7 #ifndef __SWF_BUTTON_CONDACTION_H__
8 #define __SWF_BUTTON_CONDACTION_H__
9
10 #include "bitstream.h"
11 #include "swf_action.h"
12
13 typedef struct swf_button_condaction_ {
14     // char align;
15     int cond_action_size;
16     unsigned char cond_idle_to_overdown    :1;
17     unsigned char cond_outdown_to_idle     :1;
18     unsigned char cond_outdown_to_overdown :1;
19     unsigned char cond_overdown_to_outdown :1;
20     unsigned char cond_overdown_to_overup  :1;
21     unsigned char cond_overup_to_overown   :1;
22     unsigned char cond_overup_to_idle      :1;
23     unsigned char cond_idle_to_overup      :1;
24     //
25     int cond_keypress;
26     unsigned char cond_overdown_to_idle;
27     //
28     swf_action_list_t *actions;
29     //
30     struct swf_button_condaction_ *next;
31 } swf_button_condaction_t ;
32
33 typedef struct swf_button_condaction_list_ {
34     swf_button_condaction_t *head;
35 } swf_button_condaction_list_t;
36
37 extern swf_button_condaction_t *swf_button_condaction_create(void);
38 extern int swf_button_condaction_parse(bitstream_t *bs, swf_button_condaction_t *button_condaction);
39 extern int swf_button_condaction_build(bitstream_t *bs, swf_button_condaction_t *button_condaction);
40 extern int swf_button_condaction_print(swf_button_condaction_t *button_condaction, int indent_depth);
41 extern void swf_button_condaction_destroy(swf_button_condaction_t *button_condaction);
42
43 extern swf_button_condaction_list_t *swf_button_condaction_list_create(void);
44 extern int swf_button_condaction_list_parse(bitstream_t *bs, swf_button_condaction_list_t *button_condaction_list);
45 extern int swf_button_condaction_list_build(bitstream_t *bs, swf_button_condaction_list_t *button_condaction_list);
46 extern int swf_button_condaction_list_print(swf_button_condaction_list_t *button_condaction_list, int indent_depth);
47 extern void swf_button_condaction_list_destroy(swf_button_condaction_list_t *button_condaction_list);
48
49 #endif /* __SWF_BUTTON_CONDACTION_H__ */