supertux
src
scripting
text.hpp
1
// SuperTux
2
// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
3
//
4
// This program is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// This program is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with this program. If not, see <http://www.gnu.org/licenses/>.
16
17
#ifndef HEADER_SUPERTUX_SCRIPTING_TEXT_HPP
18
#define HEADER_SUPERTUX_SCRIPTING_TEXT_HPP
19
20
#ifndef SCRIPTING_API
21
#include <string>
22
#include "scripting/game_object.hpp"
23
24
class
TextObject
;
25
#endif
26
27
namespace
scripting
{
28
29
class
Text
final
30
#ifndef SCRIPTING_API
31
:
public
GameObject
<::TextObject>
32
#endif
33
{
34
#ifndef SCRIPTING_API
35
public
:
36
using
GameObject::GameObject;
37
38
private
:
39
Text
(
const
Text
&) =
delete
;
40
Text
& operator=(
const
Text
&) =
delete
;
41
#endif
42
43
public
:
44
void
set_text(
const
std::string& text);
45
void
set_font(
const
std::string& fontname);
46
void
fade_in(
float
fadetime);
47
void
fade_out(
float
fadetime);
48
void
set_visible(
bool
visible);
49
void
set_centered(
bool
centered);
50
void
set_pos(
float
x,
float
y);
51
float
get_pos_x()
const
;
52
float
get_pos_y()
const
;
53
void
set_anchor_point(
int
anchor);
54
int
get_anchor_point()
const
;
55
};
56
57
}
// namespace scripting
58
59
#endif
60
61
/* EOF */
scripting
WARNING: This file is automatically generated from: 'src/scripting/wrapper.interface.hpp' DO NOT CHANGE.
Definition:
ambient_sound.cpp:21
scripting::GameObject
Definition:
game_object.hpp:60
TextObject
A text object intended for scripts that want to tell a story.
Definition:
text_object.hpp:28
scripting::Text
Definition:
text.hpp:29
Generated by
1.8.12