-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmre_display.h
195 lines (178 loc) · 6.5 KB
/
mre_display.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/*
mre_display.h : Display alerts, updates, popups, etc
*/
/*****************************************************************************
* FUNCTION
* mre_read_file_display
* DESCRIPTION
* This function displays file's content on display text box
* which is actually input textbox
* PARAMETERS
* file name [IN] name of file
* RETURNS
* result [OUT] some code for error and success
*****************************************************************************/
VMINT mre_display_file_contents(VMSTR file_name);
/*****************************************************************************
* FUNCTION
* mre_text_box_display_result
* DESCRIPTION
* This function takes text string and displays it on the screen
* PARAMETERS
* state [IN] state of input text box
* text [IN] Text string in ASCII or GB2312 format
* RETURNS
* none
TODO: VIEWS
*****************************************************************************/
void mre_text_box_display_result(VMINT state, VMWSTR text);
/*****************************************************************************
* FUNCTION
* mre_file_result
* DESCRIPTION
* This function decides if file type error found then displays error
* otherwise remain scilent
* PARAMETERS
* result [IN] result
* RETURNS
* none
*****************************************************************************/
void mre_file_result (VMINT result);
/*****************************************************************************
* FUNCTION DECLARATION
* mre_show_text
* DESCRIPTION
* This function takes text string and displays it on the screen
* PARAMETERS
* text [IN] Text string in ASCII or GB2312 format
* RETURNS
* none
TODO: Move to MRE_API_Tests.h
he
*****************************************************************************/
void mre_show_text(VMSTR text);
/*****************************************************************************
* FUNCTION
* mre_show_text_layer
* DESCRIPTION
* This function takes text string and displays it on the screen
* PARAMETERS
* text [IN] Text string in ASCII or GB2312 format
* RETURNS
* none
*****************************************************************************/
void mre_show_text_layer (VMSTR text, VMINT *handle_layer);
/*****************************************************************************
* FUNCTION
* mre_set_textbox_text
* DESCRIPTION
* This function saves the text of input textbox in a global variable
* PARAMETERS
* text [IN] text from input textbox
* RETURNS
* none
*****************************************************************************/
void mre_set_textbox_text (VMWSTR text);
/*****************************************************************************
* FUNCTION
* mre_get_textbox_text
* DESCRIPTION
* This function returns pointer to text of input textbox saved in a global
* variable
* PARAMETERS
* none
* RETURNS
* g_mre_textbox_text [OUT] it is pointer to text stored in global
* vaiable
*****************************************************************************/
VMWSTR mre_get_textbox_text (void);
/*****************************************************************************
* FUNCTION
* mre_set_textbox_state
* DESCRIPTION
* This function saves the state of input textbox in a global variable
* PARAMETERS
* state [IN] it is ok or cancel
* RETURNS
* none
*****************************************************************************/
void mre_set_textbox_state (VMINT state);
/*****************************************************************************
* FUNCTION
* mre_get_textbox_state
* DESCRIPTION
* This function returns the state of input textbox saved in a global variable
* PARAMETERS
* none
* RETURNS
* g_mre_textbox_state [OUT] it is ok or cancel
*****************************************************************************/
VMINT mre_get_textbox_state (void);
/*****************************************************************************
* FUNCTION
* mre_set_curr_x
* DESCRIPTION
* This function sets current x cordinate to write strings on screen
* PARAMETERS
* x [IN] current x cordinate
* RETURNS
* none
*****************************************************************************/
void mre_set_curr_x (VMINT x);
/*****************************************************************************
* FUNCTION
* mre_get_curr_x
* DESCRIPTION
* This function gets current x cordinate to write strings on screen
* PARAMETERS
* none
* RETURNS
* g_mre_curr_x [OUT] current x cordinate
*****************************************************************************/
VMINT mre_get_curr_x (void);
/*****************************************************************************
* FUNCTION
* mre_set_curr_y
* DESCRIPTION
* This function sets current y cordinate to write strings on screen
* PARAMETERS
* y [IN] current y cordinate
* RETURNS
* none
*****************************************************************************/
void mre_set_curr_y (VMINT y);
/*****************************************************************************
* FUNCTION
* mre_get_curr_y
* DESCRIPTION
* This function gets current y cordinate to write strings on screen
* PARAMETERS
* none
* RETURNS
* g_mre_curr_y [OUT] current y cordinate
*****************************************************************************/
VMINT mre_get_curr_y (void);
/*****************************************************************************
* FUNCTION
* draw_http_result_string
* DESCRIPTION
* This function displayes string as per coordinates on screen
* PARAMETERS
* x
* y
* ascii_string
* RETURNS
* none
*****************************************************************************/
void mre_show_text_coordinates(int x, int y, VMSTR ascii_string);
/*****************************************************************************
* FUNCTION
* vertical_scrolling_text
* DESCRIPTION
* This function displays results of http conne
* PARAMETERS
* ascii_string [IN] - contains display string
* RETURNS
* none
*****************************************************************************/
void vertical_scrolling_text(VMSTR ascii_string);