X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ftext.hpp;h=af2b300dbce14318cc75719150a7cb34144175ed;hb=59d76147a1b09fca2d2b4a1780ab47509c1e47ff;hp=50b88d3db28d1cf73815f7054ec41185c828b8e1;hpb=62ac0dbff5c24071859b7a02fdffb485ba82181e;p=supertux.git diff --git a/src/scripting/text.hpp b/src/scripting/text.hpp index 50b88d3db..af2b300db 100644 --- a/src/scripting/text.hpp +++ b/src/scripting/text.hpp @@ -1,8 +1,23 @@ -#ifndef __TEXT_H__ -#define __TEXT_H__ +// 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 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 . -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 */