268c86eb1974146ac43672c77fc872e18ed95af1
[supertux.git] / src / scripting / floating_image.hpp
1 #ifndef __FLOATING_IMAGE_HPP__
2 #define __FLOATING_IMAGE_HPP__
3
4 #ifndef SCRIPTING_API
5 #define __suspend
6 #include <string>
7
8 class FloatingImage;
9 typedef FloatingImage _FloatingImage;
10 #endif
11
12 namespace Scripting
13 {
14
15 class FloatingImage
16 {
17 public:
18   FloatingImage(const std::string& spritefile);
19   ~FloatingImage();
20
21   void set_layer(int layer);
22   int get_layer();
23   void set_pos(float x, float y);
24   float get_pos_x();
25   float get_pos_y();
26   void set_anchor_point(int anchor);
27   int get_anchor_point();
28   void set_visible(bool visible);
29   bool get_visible();
30   
31 #ifndef SCRIPTING_API
32 private:
33   _FloatingImage* floating_image;
34 #endif
35 };
36
37 }
38
39 #endif
40