1 import "Desktop.dll" {
2 int Desktop_Depth(int)
3 int Desktop_Width(int)
4 int Desktop_Height(int)
5 int Desktop_Frequency(int)
6 int Desktop_MouseX()
7 int Desktop_MouseY()
8 int Desktop_Examine()
9 int Desktop_Name(int)
10 }
11
12 include {
13 "defines.g"
14 }
15
16 type TDesktop <inherit = GAPI_Object>:
17
18 global {
19 TDesktop Desktop
20 }
21
22 property int TDesktop.Depth{
23 return Desktop_Depth(0)
24 }
25 property int TDesktop.Width{
26 return Desktop_Width(0)
27 }
28 property int TDesktop.Height{
29 return Desktop_Height(0)
30 }
31 property int TDesktop.MouseX{
32 return Desktop_MouseX()
33 }
34 property int TDesktop.MouseY{
35 return Desktop_MouseY()
36 }
37 method str TDesktop.getName(int id){
38 str s
39 s.copy(Desktop_Name(id))
40 return s
41 }
42 method TDesktop.Examine() {
43 Desktop_Examine()
44 }
45
46
Редактировать