-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathScreen.inc
304 lines (252 loc) · 9.37 KB
/
Screen.inc
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
//----------------------------------------
// ´úÂëÓÉGenlibVcl¹¤¾ß×Ô¶¯Éú³É¡£
// Copyright ? ying32. All Rights Reserved.
//
//----------------------------------------
function Screen_Create(AOwner: TComponent): TScreen; cdecl;
begin
Result := TScreen.Create(AOwner);
end;
procedure Screen_Free(AObj: TScreen); cdecl;
begin
AObj.Free;
end;
//procedure Screen_Realign(AObj: TScreen); cdecl;
//begin
// AObj.Realign;
//end;
function Screen_FindComponent(AObj: TScreen; AName: PWideChar): TComponent; cdecl;
begin
Result := AObj.FindComponent(AName);
end;
function Screen_GetNamePath(AObj: TScreen): PWideChar; cdecl;
begin
Result := PWideChar(AObj.GetNamePath);
end;
function Screen_HasParent(AObj: TScreen): LongBool; cdecl;
begin
Result := AObj.HasParent;
end;
procedure Screen_Assign(AObj: TScreen; Source: TPersistent); cdecl;
begin
AObj.Assign(Source);
end;
function Screen_ClassName(AObj: TScreen): PWideChar; cdecl;
begin
Result := ShortstrToPWideChar(AObj.ClassName);
end;
function Screen_Equals(AObj: TScreen; Obj: TObject): LongBool; cdecl;
begin
Result := AObj.Equals(Obj);
end;
function Screen_GetHashCode(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.GetHashCode;
end;
function Screen_ToString(AObj: TScreen): PWideChar; cdecl;
begin
Result := PWideChar(AObj.ToString);
end;
function Screen_GetActiveForm(AObj: TScreen): TForm; cdecl;
begin
Result := AObj.ActiveForm;
end;
function Screen_GetCustomFormCount(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.CustomFormCount;
end;
//function Screen_GetCursorCount(AObj: TScreen): Integer; cdecl;
//begin
// Result := AObj.CursorCount;
//end;
function Screen_GetCursor(AObj: TScreen): TCursor; cdecl;
begin
Result := AObj.Cursor;
end;
procedure Screen_SetCursor(AObj: TScreen; AValue: TCursor); cdecl;
begin
AObj.Cursor := AValue;
end;
function Screen_GetFocusedForm(AObj: TScreen): TCustomForm; cdecl;
begin
Result := AObj.FocusedForm;
end;
//procedure Screen_SetFocusedForm(AObj: TScreen; AValue: TCustomForm); cdecl;
//begin
// AObj.FocusedForm := AValue;
//end;
function Screen_GetMonitorCount(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.MonitorCount;
end;
procedure Screen_GetDesktopRect(AObj: TScreen; var Result: TRect); cdecl;
begin
Result := AObj.DesktopRect;
end;
function Screen_GetDesktopHeight(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.DesktopHeight;
end;
function Screen_GetDesktopLeft(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.DesktopLeft;
end;
function Screen_GetDesktopTop(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.DesktopTop;
end;
function Screen_GetDesktopWidth(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.DesktopWidth;
end;
procedure Screen_GetWorkAreaRect(AObj: TScreen; var Result: TRect); cdecl;
begin
Result := AObj.WorkAreaRect;
end;
function Screen_GetWorkAreaHeight(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.WorkAreaHeight;
end;
function Screen_GetWorkAreaLeft(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.WorkAreaLeft;
end;
function Screen_GetWorkAreaTop(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.WorkAreaTop;
end;
function Screen_GetWorkAreaWidth(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.WorkAreaWidth;
end;
function Screen_GetFonts(AObj: TScreen): TStrings; cdecl;
begin
Result := AObj.Fonts;
end;
//function Screen_GetImes(AObj: TScreen): TStrings; cdecl;
//begin
// Result := AObj.Imes;
//end;
//
//function Screen_GetDefaultIme(AObj: TScreen): PWideChar; cdecl;
//begin
// Result := PWideChar(AObj.DefaultIme);
//end;
function Screen_GetHeight(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.Height;
end;
function Screen_GetPixelsPerInch(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.PixelsPerInch;
end;
function Screen_GetPrimaryMonitor(AObj: TScreen): TMonitor; cdecl;
begin
Result := AObj.PrimaryMonitor;
end;
function Screen_GetWidth(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.Width;
end;
function Screen_GetComponentCount(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.ComponentCount;
end;
function Screen_GetComponentIndex(AObj: TScreen): Integer; cdecl;
begin
Result := AObj.ComponentIndex;
end;
procedure Screen_SetComponentIndex(AObj: TScreen; AValue: Integer); cdecl;
begin
AObj.ComponentIndex := AValue;
end;
function Screen_GetOwner(AObj: TScreen): TComponent; cdecl;
begin
Result := AObj.Owner;
end;
function Screen_GetName(AObj: TScreen): PWideChar; cdecl;
begin
Result := PWideChar(AObj.Name);
end;
procedure Screen_SetName(AObj: TScreen; AValue: PWideChar); cdecl;
begin
AObj.Name := AValue;
end;
function Screen_GetTag(AObj: TScreen): NativeInt; cdecl;
begin
Result := AObj.Tag;
end;
procedure Screen_SetTag(AObj: TScreen; AValue: NativeInt); cdecl;
begin
AObj.Tag := AValue;
end;
function Screen_GetCursors(AObj: TScreen; Index: Integer): HICON; cdecl;
begin
Result := AObj.Cursors[Index];
end;
procedure Screen_SetCursors(AObj: TScreen; Index: Integer; AValue: HICON); cdecl;
begin
AObj.Cursors[Index] := AValue;
end;
function Screen_GetMonitors(AObj: TScreen; Index: Integer): TMonitor; cdecl;
begin
Result := AObj.Monitors[Index];
end;
function Screen_GetForms(AObj: TScreen; Index: Integer): TForm; cdecl;
begin
Result := AObj.Forms[Index];
end;
function Screen_GetComponents(AObj: TScreen; AIndex: Integer): TComponent; cdecl;
begin
Result := AObj.Components[AIndex];
end;
exports
Screen_Create {$IFNDEF MSWINDOWS}name '_Screen_Create'{$ENDIF},
Screen_Free {$IFNDEF MSWINDOWS}name '_Screen_Free'{$ENDIF},
//Screen_Realign {$IFNDEF MSWINDOWS}name '_Screen_Realign'{$ENDIF},
Screen_FindComponent {$IFNDEF MSWINDOWS}name '_Screen_FindComponent'{$ENDIF},
Screen_GetNamePath {$IFNDEF MSWINDOWS}name '_Screen_GetNamePath'{$ENDIF},
Screen_HasParent {$IFNDEF MSWINDOWS}name '_Screen_HasParent'{$ENDIF},
Screen_Assign {$IFNDEF MSWINDOWS}name '_Screen_Assign'{$ENDIF},
Screen_ClassName {$IFNDEF MSWINDOWS}name '_Screen_ClassName'{$ENDIF},
Screen_Equals {$IFNDEF MSWINDOWS}name '_Screen_Equals'{$ENDIF},
Screen_GetHashCode {$IFNDEF MSWINDOWS}name '_Screen_GetHashCode'{$ENDIF},
Screen_ToString {$IFNDEF MSWINDOWS}name '_Screen_ToString'{$ENDIF},
Screen_GetActiveForm {$IFNDEF MSWINDOWS}name '_Screen_GetActiveForm'{$ENDIF},
Screen_GetCustomFormCount {$IFNDEF MSWINDOWS}name '_Screen_GetCustomFormCount'{$ENDIF},
//Screen_GetCursorCount {$IFNDEF MSWINDOWS}name '_Screen_GetCursorCount'{$ENDIF},
Screen_GetCursor {$IFNDEF MSWINDOWS}name '_Screen_GetCursor'{$ENDIF},
Screen_SetCursor {$IFNDEF MSWINDOWS}name '_Screen_SetCursor'{$ENDIF},
Screen_GetFocusedForm {$IFNDEF MSWINDOWS}name '_Screen_GetFocusedForm'{$ENDIF},
//Screen_SetFocusedForm {$IFNDEF MSWINDOWS}name '_Screen_SetFocusedForm'{$ENDIF},
Screen_GetMonitorCount {$IFNDEF MSWINDOWS}name '_Screen_GetMonitorCount'{$ENDIF},
Screen_GetDesktopRect {$IFNDEF MSWINDOWS}name '_Screen_GetDesktopRect'{$ENDIF},
Screen_GetDesktopHeight {$IFNDEF MSWINDOWS}name '_Screen_GetDesktopHeight'{$ENDIF},
Screen_GetDesktopLeft {$IFNDEF MSWINDOWS}name '_Screen_GetDesktopLeft'{$ENDIF},
Screen_GetDesktopTop {$IFNDEF MSWINDOWS}name '_Screen_GetDesktopTop'{$ENDIF},
Screen_GetDesktopWidth {$IFNDEF MSWINDOWS}name '_Screen_GetDesktopWidth'{$ENDIF},
Screen_GetWorkAreaRect {$IFNDEF MSWINDOWS}name '_Screen_GetWorkAreaRect'{$ENDIF},
Screen_GetWorkAreaHeight {$IFNDEF MSWINDOWS}name '_Screen_GetWorkAreaHeight'{$ENDIF},
Screen_GetWorkAreaLeft {$IFNDEF MSWINDOWS}name '_Screen_GetWorkAreaLeft'{$ENDIF},
Screen_GetWorkAreaTop {$IFNDEF MSWINDOWS}name '_Screen_GetWorkAreaTop'{$ENDIF},
Screen_GetWorkAreaWidth {$IFNDEF MSWINDOWS}name '_Screen_GetWorkAreaWidth'{$ENDIF},
Screen_GetFonts {$IFNDEF MSWINDOWS}name '_Screen_GetFonts'{$ENDIF},
//Screen_GetImes {$IFNDEF MSWINDOWS}name '_Screen_GetImes'{$ENDIF},
//Screen_GetDefaultIme {$IFNDEF MSWINDOWS}name '_Screen_GetDefaultIme'{$ENDIF},
Screen_GetHeight {$IFNDEF MSWINDOWS}name '_Screen_GetHeight'{$ENDIF},
Screen_GetPixelsPerInch {$IFNDEF MSWINDOWS}name '_Screen_GetPixelsPerInch'{$ENDIF},
Screen_GetPrimaryMonitor {$IFNDEF MSWINDOWS}name '_Screen_GetPrimaryMonitor'{$ENDIF},
Screen_GetWidth {$IFNDEF MSWINDOWS}name '_Screen_GetWidth'{$ENDIF},
Screen_GetComponentCount {$IFNDEF MSWINDOWS}name '_Screen_GetComponentCount'{$ENDIF},
Screen_GetComponentIndex {$IFNDEF MSWINDOWS}name '_Screen_GetComponentIndex'{$ENDIF},
Screen_SetComponentIndex {$IFNDEF MSWINDOWS}name '_Screen_SetComponentIndex'{$ENDIF},
Screen_GetOwner {$IFNDEF MSWINDOWS}name '_Screen_GetOwner'{$ENDIF},
Screen_GetName {$IFNDEF MSWINDOWS}name '_Screen_GetName'{$ENDIF},
Screen_SetName {$IFNDEF MSWINDOWS}name '_Screen_SetName'{$ENDIF},
Screen_GetTag {$IFNDEF MSWINDOWS}name '_Screen_GetTag'{$ENDIF},
Screen_SetTag {$IFNDEF MSWINDOWS}name '_Screen_SetTag'{$ENDIF},
Screen_GetCursors {$IFNDEF MSWINDOWS}name '_Screen_GetCursors'{$ENDIF},
Screen_SetCursors {$IFNDEF MSWINDOWS}name '_Screen_SetCursors'{$ENDIF},
Screen_GetMonitors {$IFNDEF MSWINDOWS}name '_Screen_GetMonitors'{$ENDIF},
Screen_GetForms {$IFNDEF MSWINDOWS}name '_Screen_GetForms'{$ENDIF},
Screen_GetComponents {$IFNDEF MSWINDOWS}name '_Screen_GetComponents'{$ENDIF};