author | mawalch |
Thu, 07 Jul 2016 20:21:22 +0200 | |
changeset 7403 | 9a4c5d6da62c |
parent 6347 | 194a3dd887ef |
child 6524 | 1647b1f4874a |
child 7416 | bd3b9e9edd9e |
permissions | -rw-r--r-- |
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 |
" |
|
6347 | 12 |
|
3611
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
2913
diff
changeset
|
13 |
"{ Package: 'stx:libview' }" |
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
2913
diff
changeset
|
14 |
|
151 | 15 |
Object subclass:#DeviceHandle |
6347 | 16 |
instanceVariableNames:'device parentId drawableId gcId' |
601 | 17 |
classVariableNames:'' |
18 |
poolDictionaries:'' |
|
19 |
category:'Graphics-Support' |
|
151 | 20 |
! |
21 |
||
164 | 22 |
!DeviceHandle class methodsFor:'documentation'! |
23 |
||
24 |
copyright |
|
25 |
" |
|
26 |
COPYRIGHT (c) 1995 by Claus Gittinger |
|
175 | 27 |
All Rights Reserved |
164 | 28 |
|
29 |
This software is furnished under a license and may be used |
|
30 |
only in accordance with the terms of that license and with the |
|
31 |
inclusion of the above copyright notice. This software may not |
|
32 |
be provided or otherwise made available to, or used by, any |
|
33 |
other person. No title to or ownership of the software is |
|
34 |
hereby transferred. |
|
35 |
" |
|
36 |
! |
|
37 |
||
175 | 38 |
documentation |
39 |
" |
|
40 |
This is an abstract class for device handles which are responsible |
|
41 |
for finalization i.e. to destroy underlying system resources, when the GC |
|
42 |
frees an object which has created some system object. |
|
43 |
Currently, these are forms and views (streams, cursors, colors and |
|
44 |
fonts could also make use of this class - however, for historical reasons, |
|
45 |
they continue to use their own private finalization machanisms. This may |
|
46 |
change in future versions). |
|
601 | 47 |
|
48 |
[see also:] |
|
49 |
DeviceDrawable |
|
611 | 50 |
|
51 |
[author:] |
|
52 |
Claus Gittinger |
|
53 |
||
175 | 54 |
" |
164 | 55 |
! ! |
56 |
||
151 | 57 |
!DeviceHandle methodsFor:'accessing'! |
58 |
||
4436
05eadeb4b603
In #cleanUpLobbyForChildrenOfView...
Stefan Vogel <sv@exept.de>
parents:
4434
diff
changeset
|
59 |
device |
05eadeb4b603
In #cleanUpLobbyForChildrenOfView...
Stefan Vogel <sv@exept.de>
parents:
4434
diff
changeset
|
60 |
^ device |
05eadeb4b603
In #cleanUpLobbyForChildrenOfView...
Stefan Vogel <sv@exept.de>
parents:
4434
diff
changeset
|
61 |
! |
05eadeb4b603
In #cleanUpLobbyForChildrenOfView...
Stefan Vogel <sv@exept.de>
parents:
4434
diff
changeset
|
62 |
|
1471 | 63 |
id |
64 |
"return the id of the dravable" |
|
65 |
||
66 |
^ drawableId |
|
67 |
||
68 |
"Modified: 20.3.1997 / 16:34:00 / cg" |
|
6347 | 69 |
! |
70 |
||
71 |
parentId |
|
72 |
^ parentId |
|
1471 | 73 |
! ! |
74 |
||
1518 | 75 |
!DeviceHandle methodsFor:'finalization'! |
76 |
||
3611
8b4384c9e660
Use #finalize instead of #disposed
Stefan Vogel <sv@exept.de>
parents:
2913
diff
changeset
|
77 |
finalize |
1518 | 78 |
"I am abstract" |
79 |
||
2913 | 80 |
self subclassResponsibility |
1518 | 81 |
|
82 |
"Created: 2.4.1997 / 19:23:14 / cg" |
|
83 |
! ! |
|
84 |
||
3878 | 85 |
!DeviceHandle methodsFor:'private-accessing'! |
1471 | 86 |
|
151 | 87 |
setDevice:aDevice id:aDrawableId gcId:aGCId |
601 | 88 |
"set the handles contents" |
89 |
||
90 |
device := aDevice. |
|
91 |
drawableId := aDrawableId. |
|
92 |
gcId := aGCId |
|
93 |
||
94 |
"Modified: 23.4.1996 / 22:10:26 / cg" |
|
6347 | 95 |
! |
96 |
||
97 |
setDevice:aDevice id:aDrawableId gcId:aGCId parentId:parentIdArg |
|
98 |
"set the handles contents" |
|
99 |
||
100 |
device := aDevice. |
|
101 |
drawableId := aDrawableId. |
|
102 |
gcId := aGCId. |
|
103 |
parentId := parentIdArg. |
|
151 | 104 |
! ! |
601 | 105 |
|
106 |
!DeviceHandle class methodsFor:'documentation'! |
|
107 |
||
108 |
version |
|
6347 | 109 |
^ '$Header: /cvs/stx/stx/libview/DeviceHandle.st,v 1.16 2014-03-20 09:53:38 stefan Exp $' |
601 | 110 |
! ! |