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 
30 {
34 };
35 
37 {
38  csString text;
39  int colour;
40  bool hasShadow;
42  bool hasOutline;
45 };
46 
48 {
49  int x;
50  int y;
51  int width;
52  int height;
53 };
54 
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 
psEffectTextAlignment
psEffectTextAlignment align