]> git.decadent.org.uk Git - ion3.git/blob - ioncore/basicpholder.h
Update cfg_kludge_flash for Flash 10
[ion3.git] / ioncore / basicpholder.h
1 /*
2  * ion/ioncore/basicpholder.h
3  *
4  * Copyright (c) Tuomo Valkonen 2005-2009. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_IONCORE_BASICPHOLDER_H
10 #define ION_IONCORE_BASICPHOLDER_H
11
12 #include "common.h"
13 #include "pholder.h"
14 #include "attach.h"
15
16
17 typedef WRegion *WBasicPHolderHandler(WRegion *reg, int flags,
18                                       WRegionAttachData *data);
19
20 INTRCLASS(WBasicPHolder);
21
22 DECLCLASS(WBasicPHolder){
23     WPHolder ph;
24     Watch reg_watch;
25     WBasicPHolderHandler* hnd;
26 };
27
28 extern WBasicPHolder *create_basicpholder(WRegion *reg,
29                                           WBasicPHolderHandler *hnd);
30
31 extern bool basicpholder_init(WBasicPHolder *ph, WRegion *reg,
32                               WBasicPHolderHandler *hnd);
33
34 extern void basicpholder_deinit(WBasicPHolder *ph);
35
36 extern bool basicpholder_do_goto(WBasicPHolder *ph);
37
38 extern WRegion *basicpholder_do_target(WBasicPHolder *ph);
39
40 extern WRegion *basicpholder_do_attach(WBasicPHolder *ph, int flags,
41                                        WRegionAttachData *data);
42
43 #endif /* ION_IONCORE_BASICPHOLDER_H */