gui_title.h
8.86 KB
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
/*******************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2002
*
*******************************************************************************/
/*******************************************************************************
* Filename:
* ---------
* gui_title.h
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
* This file is intends for title.
*
* Author:
* -------
* -------
*
*==============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*==============================================================================
*******************************************************************************/
/*
* This file contains internal UI component API, and is intended to be used by category screen module only.
* It's not recommended to be included in application code directly.
* For application developers, please include category screen header files instead (e.g., wgui_categories.h).
*/
#ifndef __GUI_TITLE_H__
#define __GUI_TITLE_H__
#include "gui_title_pre_oem.h"
#include "MMI_features.h"
#include "CustMenuRes.h"
#include "gui_config.h"
#include "wgui.h"
#include "gui_menu_shortcut.h"
#include "gui_title_post_oem.h"
#include "gui_typedef.h"
#define GUI_TITLE_PART_ICON 0x00000001
#define GUI_TITLE_PART_ICON2 0x00000002
#define GUI_TITLE_PART_TEXT 0x00000004
#define GUI_TITLE_PART_SHORTCUT 0x00000008
#define GUI_TITLE_PART_INSERTSHORTCUT 0x00000010
#define GUI_TITLE_PART_SIGNAL 0x00000020
#define GUI_TITLE_PART_BATTERY 0x00000040
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif//0
#define GUI_TITLE_PART_ALL (GUI_TITLE_PART_ICON | GUI_TITLE_PART_ICON2 | GUI_TITLE_PART_TEXT | GUI_TITLE_PART_SHORTCUT | GUI_TITLE_PART_SIGNAL | GUI_TITLE_PART_BATTERY)
//#endif
#define GUI_TITLE_STYLE_NORMAL 0x00000000
#define GUI_TITLE_STYLE_SCROLLING 0x00000001
#define GUI_TITLE_STYLE_LEFTALIGN 0x00000002
#define GUI_TITLE_STYLE_DISABLEBG 0x00000004
#define GUI_TITLE_STYLE_OEM_START 0x00000008
#define GUI_TITLE_STYLE_OEM_END 0x80000000
//extern U16 title_bg_id;
#if 0
#ifdef __MMI_UI_ANIMATED_TITLE_EFFECT__
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* __MMI_UI_ANIMATED_TITLE_EFFECT__ */
#endif//0
extern UI_window_title_theme *current_window_title_theme;
extern UI_window_title_theme *current_thick_title_theme;
//extern void (*gui_title_show_background) (gui_title_struct *, S32, S32, S32, S32);
//extern void (*gui_title_measure)(gui_title_struct *t, U32 part, S32 *x1, S32 *x2, S32 *h);
extern void gui_title_register_hide_callback(
gui_title_struct *t,
void (*hide_callback)(S32 x, S32 y, S32 w, S32 h));
extern void gui_title_reset_hide_callback(gui_title_struct *t);
extern void gui_title_create_ex(
gui_title_struct *t,
S32 x,
S32 y,
S32 wdith,
S32 height,
gdi_handle target_lcd,
gdi_handle target_layer,
gdi_handle alpha_blend_layer);
extern void gui_title_create(
gui_title_struct *t,
S32 x,
S32 y,
S32 wdith,
S32 height);
extern MMI_BOOL gui_title_show(
gui_title_struct *t,
U32 npart);
extern void gui_title_move(
gui_title_struct *t,
S32 x,
S32 y);
extern void gui_title_resize(
gui_title_struct *t,
S32 width,
S32 height);
extern void gui_title_change_ex(
gui_title_struct *t,
#ifndef __MMI_TITLE_BAR_NO_ICON_SHCT__
PU8 icon,
PU8 icon2,
#endif/*__MMI_TITLE_BAR_NO_ICON_SHCT__*/
U8 *text);
#ifndef __MMI_TITLE_BAR_NO_ICON_SHCT__
#define gui_title_change gui_title_change_ex
#else/**/
#define gui_title_change(_arg0, _arg1, _arg2, _arg3) gui_title_change_ex(_arg0, _arg3)
#endif/**/
extern void gui_title_set_style(
gui_title_struct *t,
U32 style);
extern void gui_title_unset_style(
gui_title_struct *t,
U32 style);
extern void gui_title_register_callback(
gui_title_struct *t,
void (*pre_goto_funcptr) (S32 i),
void (*goto_funcptr) (S32 i),
U32 flag);
extern void gui_title_set_theme(
gui_title_struct *t,
UI_window_title_theme *th);
extern void gui_title_set_current_theme(gui_title_struct *t);
#ifndef __MMI_TITLE_BAR_NO_ICON_SHCT__
extern void gui_title_set_no_icon_shct(
gui_title_struct *t,
MMI_BOOL no_icon_shct);
#else/*__MMI_TITLE_BAR_NO_ICON_SHCT__*/
#define gui_title_set_no_icon_shct(_arg1, _arg2)
#endif/*__MMI_TITLE_BAR_NO_ICON_SHCT__*/
#ifndef __MMI_TITLE_BAR_NO_ICON_SHCT__
void gui_title_measure_area1(
gui_title_struct *t,
S32 *width,
S32 *height);
void gui_title_measure_area2(
gui_title_struct *t,
S32 *width,
S32 *height);
#else/*__MMI_TITLE_BAR_NO_ICON_SHCT__*/
#define gui_title_measure_area1(_arg1, _arg2, _arg3)
#define gui_title_measure_area2(_arg1, _arg2, _arg3)
#endif/*__MMI_TITLE_BAR_NO_ICON_SHCT__*/
extern void gui_title_set_in_wap(MMI_BOOL in_wap);
extern MMI_BOOL gui_title_get_in_wap(void);
#ifdef __MMI_SCREEN_SWITCH_EFFECT__
extern void gui_title_get_text_info(
gui_title_struct *t,
S32 *text_width,
S32 *text_height,
PU8 *text_content);
#endif /* __MMI_SCREEN_SWITCH_EFFECT__ */
extern void gui_title_set_alpha_blend_layer(
gui_title_struct *t,
gdi_handle alpha_blend_layer);
extern gdi_handle gui_title_get_alpha_blend_layer(gui_title_struct *t);
extern void gui_title_reset_alpha_blend_layer(gui_title_struct *t);
extern void gui_title_set_target_lcd(
gui_title_struct *t,
gdi_handle target_lcd);
extern gdi_handle gui_title_get_target_lcd(gui_title_struct *t);
extern void gui_title_reset_target_lcd(gui_title_struct *t);
extern void gui_title_set_target_layer(
gui_title_struct *t,
gdi_handle target_layer);
extern gdi_handle gui_title_get_target_layer(gui_title_struct *t);
extern void gui_title_reset_target_layer(gui_title_struct *t);
extern void gui_title_close(gui_title_struct *t);
#ifdef __MMI_VUI_ENGINE__
extern void gui_title_register_venus_update_screen(
gui_title_struct *t,
void (*venus_update_screen_callback)(void *handle),
void *venus_update_screen_handle);
#endif/*__MMI_VUI_ENGINE__*/
#if 0//def __MMI_UI_ANIMATED_TITLE_EFFECT__
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* __MMI_UI_ANIMATED_TITLE_EFFECT__ */
#if 0//def __MMI_UI_TITLE_TRANSITION__
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#if(TITLE_TRANSITION_STYLE_NON_BLOCKING)
/* under construction !*/
#endif /* (TITLE_TRANSITION_STYLE_NON_BLOCKING) */
#endif /* __MMI_UI_TITLE_TRANSITION__ */
//huking add
#define gui_title_show_normal gui_title_oem_show_normal
#define gui_title_show_background gui_title_oem_show_background
#define gui_title_measure gui_title_measure_oem
//end huking add
#endif /* __GUI_TITLE_H__ */