comparison src/aci2/atb/ATBDisplay.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*******************************************************************************
2
3 CONDAT (UK)
4
5 ********************************************************************************
6
7 This software product is the property of Condat (UK) Ltd and may not be
8 disclosed to any third party without the express permission of the owner.
9
10 ********************************************************************************
11
12 $Project name: Basic MMI
13 $Project code: BMI (6349)
14 $Module: MMI
15 $File: ATBDisplay.h
16 $Revision: 1.0
17
18 $Author: Condat(UK)
19 $Date: 22/02/01
20
21 ********************************************************************************
22
23 Description:
24
25
26
27 ********************************************************************************
28
29 $History: ATBDisplay.h
30
31 15/03/02 Original Condat(UK) BMI version.
32
33 Jan 16, 2006 DR: OMAPS00061460 - Shashi Shekar B.S.
34 Description: SAT Icon support
35 Solution : Added definitions for height & width of the title icon.
36
37
38 $End
39
40 *******************************************************************************/
41
42 #ifndef ATB_DISPLAY_H
43 #define ATB_DISPLAY_H
44
45 // Shashi Shekar B.S., a0876501, 16-Jan-2006, OMAPS00061460
46 #ifdef FF_MMI_SAT_ICON
47 #define TITLE_ICON_WIDTH 10
48 #define TITLE_ICON_HEIGHT 16
49 extern const unsigned char SATIconQuestionMark[];
50 #endif
51
52 /*
53 * T_DS_TEXTFORMAT
54 * Data type to contain formatting attributes
55 */
56
57 typedef struct
58 {
59 UBYTE attr; /* Standard attributes */
60 BOOL highlight; /* TRUE if highlighting is on */
61 } T_DS_TEXTFORMAT;
62
63 #define WHOLE_STRING 0xFFFF // Used to indicate that the whole string is to be used for a particular function
64
65 /* Cursor types */
66
67 typedef enum
68 {
69 DS_CURSOR_NONE = 0,
70 DS_CURSOR_BAR,
71 DS_CURSOR_UNDERLINE,
72 DS_CURSOR_BLOCK
73 }
74 T_DS_CURSOR;
75
76 /* Alignments */
77
78 typedef enum
79 {
80 DS_ALIGN_LEFT = 0,
81 DS_ALIGN_RIGHT = 1,
82 DS_ALIGN_CENTRE = 2
83 }
84 T_DS_ALIGN;
85
86 /* Local function prototypes */
87
88 void ATB_display_Cursor (T_ATB_TEXT *text, USHORT textIndex, UBYTE type, SHORT x, SHORT y, USHORT width, USHORT height);
89 void ATB_display_Text(SHORT x, SHORT y, T_DS_TEXTFORMAT *format, T_ATB_TEXT *text);
90 void ATB_display_SetFormatAttr(T_DS_TEXTFORMAT *format, USHORT attr, BOOL highlight);
91 void ATB_display_ClearFormat(T_DS_TEXTFORMAT *format);
92 void ATB_display_CopyFormat(T_DS_TEXTFORMAT *dest, T_DS_TEXTFORMAT *src);
93 int ATB_display_GetCharWidth (USHORT character, T_DS_TEXTFORMAT *format);
94 int ATB_display_GetMaxCharWidth (T_DS_TEXTFORMAT *format);
95 int ATB_display_GetCharHeight (USHORT character, T_DS_TEXTFORMAT *format);
96 USHORT ATB_display_StringWidth(T_ATB_TEXT *text, T_DS_TEXTFORMAT *format);
97 USHORT ATB_display_StringHeight(T_ATB_TEXT *text, T_DS_TEXTFORMAT *format);
98 #endif