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 |
DeviceHandle subclass:#DeviceViewHandle
|
601
|
14 |
instanceVariableNames:''
|
|
15 |
classVariableNames:''
|
|
16 |
poolDictionaries:''
|
|
17 |
category:'Graphics-Support'
|
151
|
18 |
!
|
|
19 |
|
164
|
20 |
!DeviceViewHandle 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 used as a finalization handle for views - in previous systems,
|
|
39 |
a shallowCopy of a view was responsible to destroy the underlying
|
|
40 |
devices view. To make the memory requirements smaller and to speed up
|
|
41 |
view creation a bit, this lightweight class is used now, which only
|
|
42 |
keeps the device handle for finalization.
|
601
|
43 |
|
|
44 |
[see also:]
|
|
45 |
PseudoView
|
175
|
46 |
"
|
164
|
47 |
! !
|
|
48 |
|
151
|
49 |
!DeviceViewHandle methodsFor:'finalization'!
|
|
50 |
|
|
51 |
disposed
|
|
52 |
"the view for which I am a handle was collected
|
|
53 |
- release system resources"
|
|
54 |
|
|
55 |
drawableId notNil ifTrue:[
|
175
|
56 |
gcId notNil ifTrue:[
|
|
57 |
device destroyGC:gcId.
|
|
58 |
gcId := nil.
|
|
59 |
].
|
|
60 |
device destroyView:self withId:drawableId.
|
|
61 |
drawableId := nil.
|
151
|
62 |
].
|
|
63 |
|
|
64 |
|
|
65 |
! !
|
601
|
66 |
|
|
67 |
!DeviceViewHandle class methodsFor:'documentation'!
|
|
68 |
|
|
69 |
version
|
|
70 |
^ '$Header: /cvs/stx/stx/libview/Attic/DevViewH.st,v 1.6 1996-04-23 20:11:36 cg Exp $'
|
|
71 |
! !
|