File: floatwsrescueph.h

package info (click to toggle)
ion3 20050502-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,188 kB
  • ctags: 5,450
  • sloc: ansic: 39,916; perl: 2,445; sh: 1,229; makefile: 639; ruby: 90
file content (50 lines) | stat: -rw-r--r-- 1,609 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
 * ion/mod_floatws/floatwsrescueph.h
 *
 * Copyright (c) Tuomo Valkonen 2005. 
 *
 * Ion is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation; either version 2.1 of the License, or
 * (at your option) any later version.
 */

#ifndef ION_MOD_FLOATWS_FLOATWSRESCUEPH_H
#define ION_MOD_FLOATWS_FLOATWSRESCUEPH_H

#include <ioncore/common.h>
#include <ioncore/pholder.h>
#include "floatws.h"

INTRCLASS(WFloatWSRescuePH);

DECLCLASS(WFloatWSRescuePH){
    WPHolder ph;
    bool pos_ok;
    bool inner_geom;
    WRectangle geom;
    Watch floatws_watch;
    Watch frame_watch;
};

extern WFloatWSRescuePH *create_floatwsrescueph(WFloatWS *floatws, 
                                                WRegion *contents,
                                                WRegion *or_this);

extern bool floatwsrescueph_init(WFloatWSRescuePH *ph, WFloatWS *floatws,
                                 WRegion *contents, WRegion *or_this);

extern void floatwsrescueph_deinit(WFloatWSRescuePH *ph);

extern bool floatwsrescueph_do_goto(WFloatWSRescuePH *ph);

extern WRegion *floatwsrescueph_do_target(WFloatWSRescuePH *ph);

extern bool floatwsrescueph_do_attach(WFloatWSRescuePH *ph, 
                                      WRegionAttachHandler *hnd,
                                      void *hnd_param);

extern WFloatWSRescuePH *floatws_get_rescue_pholder_for(WFloatWS *floatws, 
                                                        WRegion *forwhat);

#endif /* ION_MOD_FLOATWS_FLOATWSRESCUEPH_H */