X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ftext.hpp;h=89ff0f3a9b7e96dc428fdead41b33ca341d86e0c;hb=89c801d4e00a0be36f6ad693a055505968ef9514;hp=92a67fe18ed9edb419a2b140b0dd20a63a318eb8;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/scripting/text.hpp b/src/scripting/text.hpp index 92a67fe18..89ff0f3a9 100644 --- a/src/scripting/text.hpp +++ b/src/scripting/text.hpp @@ -1,3 +1,22 @@ +// $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 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, write to the Free Software +// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #ifndef __TEXT_H__ #define __TEXT_H__ @@ -11,15 +30,20 @@ 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 -