X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ftext.hpp;h=af2b300dbce14318cc75719150a7cb34144175ed;hb=59d76147a1b09fca2d2b4a1780ab47509c1e47ff;hp=5a7f1b714fe121e33ff0e571d2d8b065ff414805;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/scripting/text.hpp b/src/scripting/text.hpp index 5a7f1b714..af2b300db 100644 --- a/src/scripting/text.hpp +++ b/src/scripting/text.hpp @@ -1,12 +1,10 @@ -// $Id$ -// // SuperTux // Copyright (C) 2006 Matthias Braun // -// 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 2 -// of the License, or (at your option) any later version. +// 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 @@ -14,14 +12,12 @@ // 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, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// along with this program. If not, see . -#ifndef __TEXT_H__ -#define __TEXT_H__ +#ifndef HEADER_SUPERTUX_SCRIPTING_TEXT_HPP +#define HEADER_SUPERTUX_SCRIPTING_TEXT_HPP -namespace Scripting -{ +namespace scripting { class Text { @@ -30,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 */