164
|
1 |
"
|
|
2 |
COPYRIGHT (c) 1995 by Claus Gittinger
|
175
|
3 |
All Rights Reserved
|
164
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
|
151
|
13 |
Object subclass:#DeviceHandle
|
601
|
14 |
instanceVariableNames:'device drawableId gcId'
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'Graphics-Support'
|
151
|
18 |
!
|
|
19 |
|
164
|
20 |
!DeviceHandle class methodsFor:'documentation'!
|
|
21 |
|
|
22 |
copyright
|
|
23 |
"
|
|
24 |
COPYRIGHT (c) 1995 by Claus Gittinger
|
175
|
25 |
All Rights Reserved
|
164
|
26 |
|
|
27 |
This software is furnished under a license and may be used
|
|
28 |
only in accordance with the terms of that license and with the
|
|
29 |
inclusion of the above copyright notice. This software may not
|
|
30 |
be provided or otherwise made available to, or used by, any
|
|
31 |
other person. No title to or ownership of the software is
|
|
32 |
hereby transferred.
|
|
33 |
"
|
|
34 |
!
|
|
35 |
|
175
|
36 |
documentation
|
|
37 |
"
|
|
38 |
This is an abstract class for device handles which are responsible
|
|
39 |
for finalization i.e. to destroy underlying system resources, when the GC
|
|
40 |
frees an object which has created some system object.
|
|
41 |
Currently, these are forms and views (streams, cursors, colors and
|
|
42 |
fonts could also make use of this class - however, for historical reasons,
|
|
43 |
they continue to use their own private finalization machanisms. This may
|
|
44 |
change in future versions).
|
601
|
45 |
|
|
46 |
[see also:]
|
|
47 |
DeviceDrawable
|
611
|
48 |
|
|
49 |
[author:]
|
|
50 |
Claus Gittinger
|
|
51 |
|
175
|
52 |
"
|
164
|
53 |
! !
|
|
54 |
|
151
|
55 |
!DeviceHandle methodsFor:'accessing'!
|
|
56 |
|
1471
|
57 |
id
|
|
58 |
"return the id of the dravable"
|
|
59 |
|
|
60 |
^ drawableId
|
|
61 |
|
|
62 |
"Modified: 20.3.1997 / 16:34:00 / cg"
|
|
63 |
! !
|
|
64 |
|
1518
|
65 |
!DeviceHandle methodsFor:'finalization'!
|
|
66 |
|
|
67 |
disposed
|
|
68 |
"I am abstract"
|
|
69 |
|
|
70 |
self shouldNotImplement
|
|
71 |
|
|
72 |
"Created: 2.4.1997 / 19:23:14 / cg"
|
|
73 |
! !
|
|
74 |
|
1471
|
75 |
!DeviceHandle methodsFor:'private accessing'!
|
|
76 |
|
151
|
77 |
setDevice:aDevice id:aDrawableId gcId:aGCId
|
601
|
78 |
"set the handles contents"
|
|
79 |
|
|
80 |
device := aDevice.
|
|
81 |
drawableId := aDrawableId.
|
|
82 |
gcId := aGCId
|
|
83 |
|
|
84 |
"Modified: 23.4.1996 / 22:10:26 / cg"
|
151
|
85 |
! !
|
601
|
86 |
|
|
87 |
!DeviceHandle class methodsFor:'documentation'!
|
|
88 |
|
|
89 |
version
|
1518
|
90 |
^ '$Header: /cvs/stx/stx/libview/DeviceHandle.st,v 1.8 1997-04-02 18:15:45 cg Exp $'
|
601
|
91 |
! !
|