]> git.decadent.org.uk Git - ion3.git/blob - ioncore/navi.h
Update cfg_kludge_flash for Flash 10
[ion3.git] / ioncore / navi.h
1 /*
2  * ion/ioncore/navi.h
3  *
4  * Copyright (c) Tuomo Valkonen 2006-2009. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_IONCORE_NAVI_H
10 #define ION_IONCORE_NAVI_H
11
12 #include "common.h"
13 #include "region.h"
14
15
16 typedef enum{
17     REGION_NAVI_ANY,
18     REGION_NAVI_BEG, /* FIRST, PREV */
19     REGION_NAVI_END, /* LAST, NEXT */
20     REGION_NAVI_LEFT,
21     REGION_NAVI_RIGHT, 
22     REGION_NAVI_TOP,
23     REGION_NAVI_BOTTOM
24 } WRegionNavi;
25
26 INTRSTRUCT(WRegionNaviData);
27
28 DYNFUN WRegion *region_navi_next(WRegion *reg, WRegion *rel, WRegionNavi nh,
29                                  WRegionNaviData *data);
30 DYNFUN WRegion *region_navi_first(WRegion *reg, WRegionNavi nh,
31                                   WRegionNaviData *data);
32
33 extern WRegion *region_navi_cont(WRegion *reg, WRegion *res, 
34                                  WRegionNaviData *data);
35
36 extern bool ioncore_string_to_navi(const char *str, WRegionNavi *nv);
37
38 extern WRegionNavi ioncore_navi_reverse(WRegionNavi nh);
39
40 extern WRegion *ioncore_goto_next(WRegion *reg, const char *dirstr, 
41                                   ExtlTab param);
42 extern WRegion *ioncore_goto_first(WRegion *reg, const char *dirstr, 
43                                    ExtlTab param);
44 extern WRegion *ioncore_navi_next(WRegion *reg, const char *dirstr, 
45                                   ExtlTab param);
46 extern WRegion *ioncore_navi_first(WRegion *reg, const char *dirstr, 
47                                    ExtlTab param);
48
49 #endif /* ION_IONCORE_NAVI_H */