1 //**************************************************************************
2 //**
3 //**	##   ##    ##    ##   ##   ####     ####   ###     ###
4 //**	##   ##  ##  ##  ##   ##  ##  ##   ##  ##  ####   ####
5 //**	 ## ##  ##    ##  ## ##  ##    ## ##    ## ## ## ## ##
6 //**	 ## ##  ########  ## ##  ##    ## ##    ## ##  ###  ##
7 //**	  ###   ##    ##   ###    ##  ##   ##  ##  ##       ##
8 //**	   #    ##    ##    #      ####     ####   ##       ##
9 //**
10 //**	$Id: text.h 4211 2010-04-03 19:59:26Z dj_jl $
11 //**
12 //**	Copyright (C) 1999-2006 Jānis Legzdiņš
13 //**
14 //**	This program is free software; you can redistribute it and/or
15 //**  modify it under the terms of the GNU General Public License
16 //**  as published by the Free Software Foundation; either version 2
17 //**  of the License, or (at your option) any later version.
18 //**
19 //**	This program is distributed in the hope that it will be useful,
20 //**  but WITHOUT ANY WARRANTY; without even the implied warranty of
21 //**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22 //**  GNU General Public License for more details.
23 //**
24 //**************************************************************************
25 
26 //
27 // Horisontal alignement
28 //
29 enum halign_e
30 {
31 	hleft,		//Left
32 	hcentre,	//Centred
33 	hright		//Right
34 };
35 
36 //
37 // Vertical alignement
38 //
39 enum valign_e
40 {
41 	vtop,		//Top
42 	vcentre,	//Centre
43 	vbottom		//Bottom
44 };
45 
46 //	Text colours, these must match the constants used in ACS.
47 enum
48 {
49 	CR_UNDEFINED = -1,
50 	CR_BRICK,
51 	CR_TAN,
52 	CR_GRAY,
53 	CR_GREEN,
54 	CR_BROWN,
55 	CR_GOLD,
56 	CR_RED,
57 	CR_BLUE,
58 	CR_ORANGE,
59 	CR_WHITE,
60 	CR_YELLOW,
61 	CR_UNTRANSLATED,
62 	CR_BLACK,
63 	CR_LIGHTBLUE,
64 	CR_CREAM,
65 	CR_OLIVE,
66 	CR_DARKGREEN,
67 	CR_DARKRED,
68 	CR_DARKBROWN,
69 	CR_PURPLE,
70 	CR_DARKGRAY,
71 	NUM_TEXT_COLOURS
72 };
73 
74 class VFont;
75 
76 void T_Init();
77 void T_Shutdown();
78 
79 void T_SetFont(VFont*);
80 void T_SetAlign(halign_e, valign_e);
81 
82 void T_DrawText(int, int, const VStr&, int);
83 
84 void T_DrawCursor();
85 void T_DrawCursorAt(int, int);
86 
87 extern VFont*			SmallFont;
88 extern VFont*			ConFont;
89