4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
9 #ifndef ION_IONCORE_ATTACH_H
10 #define ION_IONCORE_ATTACH_H
17 typedef WRegion
*WRegionCreateFn(WWindow
*parent
,
21 typedef WRegion
*WRegionAttachFn(WRegion
*reg
,
23 WRegionAttachData
*data
);
27 REGION_ATTACH_REPARENT
,
33 DECLSTRUCT(WRegionAttachData
){
34 WRegionAttachType type
;
46 typedef bool WRegionDoAttachFn(WRegion
*reg
, WRegion
*sub
, void *param
);
47 typedef bool WRegionDoAttachFnSimple(WRegion
*reg
, WRegion
*sub
);
49 extern WRegion
*region_attach_helper(WRegion
*mgr
,
50 WWindow
*par
, const WFitParams
*fp
,
51 WRegionDoAttachFn
*fn
, void *fn_param
,
52 const WRegionAttachData
*data
);
54 extern WRegion
*region_attach_load_helper(WRegion
*mgr
,
55 WWindow
*par
, const WFitParams
*fp
,
56 WRegionDoAttachFn
*fn
, void *fn_param
,
57 ExtlTab tab
, WPHolder
**sm_ph
);
59 extern bool region_ancestor_check(WRegion
*dst
, WRegion
*reg
);
61 extern void region_postdetach_dispose(WRegion
*reg
, WRegion
*disposeroot
);
64 #endif /* ION_IONCORE_ATTACH_H */