DevViewH.st
author Claus Gittinger <cg@exept.de>
Tue, 23 Apr 1996 22:12:21 +0200
changeset 601 2c4c1e797909
parent 272 452b6b52573c
child 611 e0442439a3c6
permissions -rw-r--r--
commentary
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
164
claus
parents: 151
diff changeset
     1
"
claus
parents: 151
diff changeset
     2
 COPYRIGHT (c) 1995 by Claus Gittinger
175
claus
parents: 164
diff changeset
     3
	      All Rights Reserved
164
claus
parents: 151
diff changeset
     4
claus
parents: 151
diff changeset
     5
 This software is furnished under a license and may be used
claus
parents: 151
diff changeset
     6
 only in accordance with the terms of that license and with the
claus
parents: 151
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
claus
parents: 151
diff changeset
     8
 be provided or otherwise made available to, or used by, any
claus
parents: 151
diff changeset
     9
 other person.  No title to or ownership of the software is
claus
parents: 151
diff changeset
    10
 hereby transferred.
claus
parents: 151
diff changeset
    11
"
claus
parents: 151
diff changeset
    12
151
claus
parents:
diff changeset
    13
DeviceHandle subclass:#DeviceViewHandle
601
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    14
	instanceVariableNames:''
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    15
	classVariableNames:''
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    16
	poolDictionaries:''
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    17
	category:'Graphics-Support'
151
claus
parents:
diff changeset
    18
!
claus
parents:
diff changeset
    19
164
claus
parents: 151
diff changeset
    20
!DeviceViewHandle class methodsFor:'documentation'!
claus
parents: 151
diff changeset
    21
claus
parents: 151
diff changeset
    22
copyright
claus
parents: 151
diff changeset
    23
"
claus
parents: 151
diff changeset
    24
 COPYRIGHT (c) 1995 by Claus Gittinger
175
claus
parents: 164
diff changeset
    25
	      All Rights Reserved
164
claus
parents: 151
diff changeset
    26
claus
parents: 151
diff changeset
    27
 This software is furnished under a license and may be used
claus
parents: 151
diff changeset
    28
 only in accordance with the terms of that license and with the
claus
parents: 151
diff changeset
    29
 inclusion of the above copyright notice.   This software may not
claus
parents: 151
diff changeset
    30
 be provided or otherwise made available to, or used by, any
claus
parents: 151
diff changeset
    31
 other person.  No title to or ownership of the software is
claus
parents: 151
diff changeset
    32
 hereby transferred.
claus
parents: 151
diff changeset
    33
"
claus
parents: 151
diff changeset
    34
!
claus
parents: 151
diff changeset
    35
175
claus
parents: 164
diff changeset
    36
documentation
claus
parents: 164
diff changeset
    37
"
claus
parents: 164
diff changeset
    38
    This is used as a finalization handle for views - in previous systems,
claus
parents: 164
diff changeset
    39
    a shallowCopy of a view was responsible to destroy the underlying
claus
parents: 164
diff changeset
    40
    devices view. To make the memory requirements smaller and to speed up
claus
parents: 164
diff changeset
    41
    view creation a bit, this lightweight class is used now, which only
claus
parents: 164
diff changeset
    42
    keeps the device handle for finalization.
601
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    43
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    44
    [see also:]
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    45
        PseudoView
175
claus
parents: 164
diff changeset
    46
"
164
claus
parents: 151
diff changeset
    47
! !
claus
parents: 151
diff changeset
    48
151
claus
parents:
diff changeset
    49
!DeviceViewHandle methodsFor:'finalization'!
claus
parents:
diff changeset
    50
claus
parents:
diff changeset
    51
disposed
claus
parents:
diff changeset
    52
    "the view for which I am a handle was collected 
claus
parents:
diff changeset
    53
     - release system resources"
claus
parents:
diff changeset
    54
claus
parents:
diff changeset
    55
    drawableId notNil ifTrue:[
175
claus
parents: 164
diff changeset
    56
	gcId notNil ifTrue:[
claus
parents: 164
diff changeset
    57
	    device destroyGC:gcId.
claus
parents: 164
diff changeset
    58
	    gcId := nil.
claus
parents: 164
diff changeset
    59
	].
claus
parents: 164
diff changeset
    60
	device destroyView:self withId:drawableId.
claus
parents: 164
diff changeset
    61
	drawableId := nil.
151
claus
parents:
diff changeset
    62
    ].
claus
parents:
diff changeset
    63
claus
parents:
diff changeset
    64
claus
parents:
diff changeset
    65
! !
601
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    66
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    67
!DeviceViewHandle class methodsFor:'documentation'!
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    68
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    69
version
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    70
    ^ '$Header: /cvs/stx/stx/libview/Attic/DevViewH.st,v 1.6 1996-04-23 20:11:36 cg Exp $'
2c4c1e797909 commentary
Claus Gittinger <cg@exept.de>
parents: 272
diff changeset
    71
! !