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 |
'From Smalltalk/X, Version:2.10.5 on 25-may-1995 at 7:37:41 am'!
|
|
14 |
|
|
15 |
DeviceHandle subclass:#DeviceFormHandle
|
|
16 |
instanceVariableNames:''
|
|
17 |
classVariableNames:''
|
|
18 |
poolDictionaries:''
|
|
19 |
category:'Graphics-Support'
|
|
20 |
!
|
|
21 |
|
164
|
22 |
!DeviceFormHandle 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 used as a finalization handle for forms - in previous systems,
|
|
41 |
a shallowCopy of a form was responsible to destroy the underlying
|
|
42 |
devices bitmap. To make the memory requirements smaller and to speed up
|
|
43 |
bitmap creation a bit, this lightweight class is used now, which only
|
|
44 |
keeps the device handle for finalization.
|
|
45 |
"
|
|
46 |
!
|
|
47 |
|
164
|
48 |
version
|
|
49 |
"
|
175
|
50 |
$Header: /cvs/stx/stx/libview/Attic/DevFormH.st,v 1.3 1995-08-29 16:41:19 claus Exp $
|
164
|
51 |
"
|
|
52 |
! !
|
|
53 |
|
151
|
54 |
!DeviceFormHandle methodsFor:'finalization'!
|
|
55 |
|
|
56 |
disposed
|
|
57 |
"the Form for which I am a handle has been collected - tell it to the x-server"
|
|
58 |
|
|
59 |
drawableId notNil ifTrue:[
|
175
|
60 |
gcId notNil ifTrue:[
|
|
61 |
device destroyGC:gcId.
|
|
62 |
gcId := nil
|
|
63 |
].
|
|
64 |
device destroyPixmap:drawableId.
|
|
65 |
drawableId := nil
|
151
|
66 |
]
|
|
67 |
! !
|
|
68 |
|