Adonthell  0.4
win_types.h
1 /*
2  (C) Copyright 2000 Joel Vennin
3  Part of the Adonthell Project <http://adonthell.nongnu.org>
4 
5  Adonthell is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  Adonthell 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 
15  You should have received a copy of the GNU General Public License
16  along with Adonthell. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef TYPES_WIN_H_
20 #define TYPES_WIN_H_
21 
22 #include <SDL_keycode.h>
23 
24 #define WIN_NB_TABLE_CHAR 127
25 #define WIN_TEXT_MAX_LENGTH 5000
26 #define WIN_FONT_HEIGHT 8
27 #define WIN_FONT_LENGHT 8
28 #define WIN_SPACE_LENGHT 8
29 
30 //directory
31 #define WIN_DIRECTORY "gfx/window/"
32 #define WIN_FONT_DIRECTORY "font/"
33 #define WIN_BORDER_DIRECTORY "border/"
34 #define WIN_BACKGROUND_DIRECTORY "background/"
35 #define WIN_SCROLLBAR_DIRECTORY "scrollbar/"
36 #define WIN_CURSOR_DIRECTORY "cursor/"
37 
38 //font filename
39 #define WIN_FONT_FILE_IDX "font.idx"
40 #define WIN_FONT_FILE_PIC "font.pnm"
41 #define WIN_FONT_FILE "font.font"
42 
43 //border filename
44 #define WIN_V_BORDER_TEMPLATE_FILE "v_border.pnm"
45 #define WIN_H_BORDER_TEMPLATE_FILE "h_border.pnm"
46 #define WIN_CORNER_TOP_LEFT_FILE "corner_top_left.pnm"
47 #define WIN_CORNER_TOP_RIGHT_FILE "corner_top_right.pnm"
48 #define WIN_CORNER_BOTTOM_LEFT_FILE "corner_bottom_left.pnm"
49 #define WIN_CORNER_BOTTOM_RIGHT_FILE "corner_bottom_right.pnm"
50 
51 //background filename
52 #define WIN_BACKGROUND_FILE "background.pnm"
53 
54 //scrollbar filename
55 #define WIN_SCROLLBAR_BAR_TOP "scroll_bar_top.pnm"
56 #define WIN_SCROLLBAR_BAR_MID "scroll_bar_mid.pnm"
57 #define WIN_SCROLLBAR_BAR_BOT "scroll_bar_bot.pnm"
58 #define WIN_SCROLLBAR_BAR_FLEX "scroll_bar_flex.pnm"
59 #define WIN_SCROLLBAR_BACK_TOP "scroll_back_top.pnm"
60 #define WIN_SCROLLBAR_BACK_MID "scroll_back_mid.pnm"
61 #define WIN_SCROLLBAR_BACK_BOT "scroll_back_bot.pnm"
62 
63 
64 //cursor filename
65 #define WIN_CURSOR_FILE "cursor.pnm"
66 
67 //directory size
68 #define WIN_BORDER_NORMAL_SIZE "normal/"
69 #define WIN_BORDER_MINI_SIZE "mini/"
70 
71 #define WIN_BRIGHTNESS_LEVEL 180
72 
73 #endif