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