-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathroadmap_border.h
119 lines (91 loc) · 2.94 KB
/
roadmap_border.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/* roadmap_border.h - Handle Drawing of borders
*
* LICENSE:
*
* Copyright 2008 Avi B.S
* Copyright 2008 Ehud Shabtai
*
* This file is part of RoadMap.
*
* RoadMap is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* RoadMap is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with RoadMap; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef ROADMAP_BORDER_H_
#define ROADMAP_BORDER_H_
typedef enum border_images
{
border_image_top,
border_image_top_right,
border_image_top_left,
border_image_bottom,
border_image_bottom_right,
border_image_bottom_left,
border_image_left,
border_image_right,
border_white_top,
border_white_top_right,
border_white_top_left,
border_white_bottom,
border_white_bottom_right,
border_white_bottom_left,
border_white_left,
border_white_right,
border_black_top,
border_black_top_right,
border_black_top_left,
border_black_bottom,
border_black_bottom_right,
border_black_bottom_left,
border_black_left,
border_black_right,
border_heading_red_left,
border_heading_red_middle,
border_heading_red_right,
border_heading_green_left,
border_heading_green_middle,
border_heading_green_right,
border_heading_black_left,
border_heading_black_middle,
border_heading_black_right,
border_heading_gray_left,
border_heading_gray_middle,
border_heading_gray_right,
border_pointer_menu,
border_pointer_comment,
border_image_bottom_no_frame,
border_img__count,
border_img__invalid
} border_images;
#define STYLE_NORMAL border_image_top
#define STYLE_WHITE border_white_top
#define STYLE_BLACK border_black_top
#define POINTER_NONE -1
#define POINTER_POSITION 0
#define POINTER_MENU border_pointer_menu
#define POINTER_COMMNET border_pointer_comment
#define HEADER_NONE -1
#define HEADER_GREEN border_heading_green_left
#define HEADER_RED border_heading_red_left
#define HEADER_BLACK border_heading_black_left
#define HEADER_GRAY border_heading_gray_left
typedef struct broder_image{
RoadMapImage image;
int height;
int width;
}border_image;
BOOL load_border_images(void);
int roadmap_display_border(int style, int header, int pointer_type, RoadMapGuiPoint *bottom, RoadMapGuiPoint *top, const char* background, RoadMapPosition *position);
int get_heading_height(int header_type);
void roadmap_border_load_images();
#endif /*ROADMAP_BORDER_H_*/