fix cr/lfs and remove trailing whitespaces...
[supertux.git] / src / scripting / floating_image.hpp
1 //  $Id$
2 //
3 //  SuperTux
4 //  Copyright (C) 2006 Matthias Braun <matze@braunis.de>
5 //
6 //  This program is free software; you can redistribute it and/or
7 //  modify it under the terms of the GNU General Public License
8 //  as published by the Free Software Foundation; either version 2
9 //  of the License, or (at your option) any later version.
10 //
11 //  This program is distributed in the hope that it will be useful,
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //  GNU General Public License for more details.
15 //
16 //  You should have received a copy of the GNU General Public License
17 //  along with this program; if not, write to the Free Software
18 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19
20 #ifndef __FLOATING_IMAGE_HPP__
21 #define __FLOATING_IMAGE_HPP__
22
23 #ifndef SCRIPTING_API
24 #define __suspend
25 #include <string>
26 #include "ref.hpp"
27
28 class FloatingImage;
29 typedef FloatingImage _FloatingImage;
30 #endif
31
32 namespace Scripting
33 {
34
35 class FloatingImage
36 {
37 public:
38   FloatingImage(const std::string& spritefile);
39   ~FloatingImage();
40
41   void set_layer(int layer);
42   int get_layer();
43   void set_pos(float x, float y);
44   float get_pos_x();
45   float get_pos_y();
46   void set_anchor_point(int anchor);
47   int get_anchor_point();
48   void set_visible(bool visible);
49   bool get_visible();
50   void set_action(const std::string& action);
51   std::string get_action();
52
53 #ifndef SCRIPTING_API
54 private:
55   Ref<_FloatingImage> floating_image;
56 #endif
57 };
58
59 }
60
61 #endif