Planeshift
pseffectobjtextable.h
Go to the documentation of this file.
1
/*
2
* Author: Andrew Robberts
3
*
4
* Copyright (C) 2003 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5
*
6
*
7
* This program is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU General Public License
9
* as published by the Free Software Foundation (version 2 of the License)
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
*
18
*/
19
20
#ifndef PS_EFFECT_OBJ_TEXTABLE_HEADER
21
#define PS_EFFECT_OBJ_TEXTABLE_HEADER
22
23
#include <csutil/csstring.h>
24
29
enum
psEffectTextAlignment
30
{
31
ETA_LEFT
,
32
ETA_CENTER
,
33
ETA_RIGHT
34
};
35
36
struct
psEffectTextRow
37
{
38
csString
text
;
39
int
colour
;
40
bool
hasShadow
;
41
int
shadowColour
;
42
bool
hasOutline
;
43
int
outlineColour
;
44
psEffectTextAlignment
align
;
45
};
46
47
struct
psEffectTextElement
:
public
psEffectTextRow
48
{
49
int
x
;
50
int
y
;
51
int
width
;
52
int
height
;
53
};
54
55
class
psEffectObjTextable
56
{
57
public
:
58
virtual
bool
SetText(
const
csArray<psEffectTextElement> &elements) = 0;
59
virtual
bool
SetText(
const
csArray<psEffectTextRow> &rows) = 0;
60
virtual
bool
SetText(
int
rows, ...) = 0;
61
virtual
~psEffectObjTextable
() {};
62
};
63
66
#endif // PS_EFFECT_OBJ_TEXTABLE_HEADER
67
psEffectTextElement
Definition:
pseffectobjtextable.h:47
psEffectTextElement::width
int width
Definition:
pseffectobjtextable.h:51
psEffectTextAlignment
psEffectTextAlignment
Definition:
pseffectobjtextable.h:29
psEffectObjTextable
Definition:
pseffectobjtextable.h:55
ETA_CENTER
Definition:
pseffectobjtextable.h:32
psEffectTextElement::y
int y
Definition:
pseffectobjtextable.h:50
psEffectTextRow::hasShadow
bool hasShadow
Definition:
pseffectobjtextable.h:40
psEffectTextRow::outlineColour
int outlineColour
Definition:
pseffectobjtextable.h:43
psEffectTextElement::height
int height
Definition:
pseffectobjtextable.h:52
psEffectTextRow::colour
int colour
Definition:
pseffectobjtextable.h:39
psEffectTextElement::x
int x
Definition:
pseffectobjtextable.h:49
ETA_RIGHT
Definition:
pseffectobjtextable.h:33
psEffectTextRow::hasOutline
bool hasOutline
Definition:
pseffectobjtextable.h:42
psEffectObjTextable::~psEffectObjTextable
virtual ~psEffectObjTextable()
Definition:
pseffectobjtextable.h:61
psEffectTextRow
Definition:
pseffectobjtextable.h:36
psEffectTextRow::align
psEffectTextAlignment align
Definition:
pseffectobjtextable.h:44
psEffectTextRow::text
csString text
Definition:
pseffectobjtextable.h:38
ETA_LEFT
Definition:
pseffectobjtextable.h:31
psEffectTextRow::shadowColour
int shadowColour
Definition:
pseffectobjtextable.h:41
common
effects
pseffectobjtextable.h
Generated on Sat Jun 19 2021 05:00:22 for Planeshift by
1.8.11