[cppcheck] Part 3: More perf fixes that were missed during non-verbose run for whatev...
[supertux.git] / src / scripting / text.hpp
index 50b88d3..af2b300 100644 (file)
@@ -1,8 +1,23 @@
-#ifndef __TEXT_H__
-#define __TEXT_H__
+//  SuperTux
+//  Copyright (C) 2006 Matthias Braun <matze@braunis.de>
+//
+//  This program is free software: you can redistribute it and/or modify
+//  it under the terms of the GNU General Public License as published by
+//  the Free Software Foundation, either version 3 of the License, or
+//  (at your option) any later version.
+//
+//  This program is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+//  GNU General Public License for more details.
+//
+//  You should have received a copy of the GNU General Public License
+//  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-namespace Scripting
-{
+#ifndef HEADER_SUPERTUX_SCRIPTING_TEXT_HPP
+#define HEADER_SUPERTUX_SCRIPTING_TEXT_HPP
+
+namespace scripting {
 
 class Text
 {
@@ -11,16 +26,22 @@ public:
   virtual ~Text()
   { }
 #endif
-  
+
   virtual void set_text(const std::string& text) = 0;
   virtual void set_font(const std::string& fontname) = 0;
   virtual void fade_in(float fadetime) = 0;
   virtual void fade_out(float fadetime) = 0;
   virtual void set_visible(bool visible) = 0;
   virtual void set_centered(bool centered) = 0;
+  virtual void set_pos(float x, float y) = 0;
+  virtual float get_pos_x() = 0;
+  virtual float get_pos_y() = 0;
+  virtual void set_anchor_point(int anchor) = 0;
+  virtual int  get_anchor_point() = 0;
 };
 
 }
 
 #endif
 
+/* EOF */