comparison src/ui/mfw/mfw_win.h @ 3:67bfe9f274f6

src/ui: import of src/ui3 from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 06:33:10 +0000
parents
children 92abb46dc1ba
comparison
equal deleted inserted replaced
2:3a14ee9a9843 3:67bfe9f274f6
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_win.h $|
4 | $Author:: Es $ CONDAT GmbH $Revision:: 8 $|
5 | CREATED: 21.09.98 $Modtime:: 23.03.00 9:08 $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 MODULE : MFW_WIN
10
11 PURPOSE : window types & constants
12
13 EXPORT :
14
15 TO DO :
16
17 $History:: mfw_win.h $
18 *
19 * ***************** Version 8 *****************
20 * User: Es Date: 23.03.00 Time: 14:42
21 * Updated in $/GSM/Condat/MS/SRC/MFW
22 * Added 'winUnhide()': no update(), no event.
23 *
24 * ***************** Version 7 *****************
25 * User: Kk Date: 17.01.00 Time: 8:56
26 * Updated in $/GSM/Condat/MS/SRC/MFW
27 * added simple check functions for easy checking if win is visible,
28 * focussed, closed
29 *
30 * ***************** Version 6 *****************
31 * User: Le Date: 6.01.00 Time: 9:23
32 * Updated in $/GSM/Condat/MS/SRC/MFW
33 * Alignment of MFW versions
34 *
35 * ***************** Version 3 *****************
36 * User: Xam Date: 12/15/99 Time: 4:06p
37 * Updated in $/GSM/Condat/SND-MMI/MFW
38 * Added constant MfwWinClosed.
39 *
40 * ***************** Version 2 *****************
41 * User: Es Date: 22.11.99 Time: 10:30
42 * Updated in $/GSM/Condat/SND-MMI/MFW
43 *
44 * ***************** Version 1 *****************
45 * User: Es Date: 18.11.99 Time: 16:35
46 * Created in $/GSM/Condat/SND-MMI/MFW
47 * Initial
48 *
49 * ***************** Version 5 *****************
50 * User: Es Date: 6.07.99 Time: 12:37
51 * Updated in $/GSM/DEV/MS/SRC/MFW
52 *
53 * ***************** Version 4 *****************
54 * User: Es Date: 17.02.99 Time: 20:01
55 * Updated in $/GSM/DEV/MS/SRC/MFW
56 *
57 * ***************** Version 3 *****************
58 * User: Es Date: 14.01.99 Time: 17:19
59 * Updated in $/GSM/DEV/MS/SRC/MFW
60 *
61 * ***************** Version 2 *****************
62 * User: Es Date: 23.12.98 Time: 16:19
63 * Updated in $/GSM/DEV/MS/SRC/MFW
64 */
65
66 #ifndef _DEF_MFW_WIN_H_
67 #define _DEF_MFW_WIN_H_
68
69
70 typedef struct MfwWinAttrTag /* WINDOW ATTRIBUTES */
71 {
72 MfwRect win; /* window position and size */
73 MfwRect view; /* view position and size */
74 U16 bgColor; /* background color */
75 } MfwWinAttr;
76
77 typedef unsigned long *MfwUserDataPtr ;
78
79 typedef struct MfwWinTag /* WINDOW CONTROL BLOCK */
80 {
81 MfwEvt mask; /* selection of events */
82 MfwEvt flags; /* current event */
83 MfwCb handler; /* event handler */
84 MfwWinAttr *attr; /* window attributes */
85 MfwHdr *elems; /* window elements */
86 void *user; /* user specific data */
87 } MfwWin;
88
89 /* WINDOW FLAGS */
90 #define MfwWinVisible 1 /* window is visible */
91 #define MfwWinFocussed 2 /* input focus / selected */
92 #define MfwWinDelete 4 /* window will be deleted */
93 #define MfwWinClosed 256 /* Child window closed ?? */
94 /* xreddymn Aug-09-2004, MMI-SPR-23964 (TII_MMS33)
95 * Implemented suspend and resume functionality for MFW windows
96 */
97 #define MfwWinSuspend 8 /* window is suspended */
98 #define MfwWinResume 16 /* window is resumed */
99 /* PROTOTYPES */
100 MfwRes winInit (U16 *sx, U16 *sy);
101 MfwRes winExit (void);
102 MfwHnd winCreate (MfwHnd w, MfwWinAttr *a, MfwEvt e, MfwCb f);
103 MfwRes winDelete (MfwHnd w);
104 MfwRes winShow (MfwHnd w);
105 MfwRes winHide (MfwHnd w);
106 MfwRes winUnhide (MfwHnd w);
107 MfwHnd winFocus (MfwHnd w);
108 U8 winAutoFocus (U8 useit);
109 MfwRes winClear (MfwHnd win);
110 MfwRes winUpdate (MfwWin *w);
111 MfwHnd winNext (MfwHnd winCur);
112 MfwHnd winPrev (MfwHnd winCur);
113
114 int winIsVisible(MfwHnd w);
115 int winIsFocussed(MfwHnd w);
116 int winIsClosed(MfwHnd w);
117
118 void mfw_traceWinHdrs(void);
119
120 #endif
121