DevFormH.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

"
 COPYRIGHT (c) 1995 by Claus Gittinger
	      All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"

DeviceHandle subclass:#DeviceFormHandle
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Graphics-Support'
!

!DeviceFormHandle class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1995 by Claus Gittinger
	      All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
!

documentation
"
    This is used as a finalization handle for forms - in previous systems,
    a shallowCopy of a form was responsible to destroy the underlying
    devices bitmap. To make the memory requirements smaller and to speed up
    bitmap creation a bit, this lightweight class is used now, which only
    keeps the device handle for finalization.

    [see also:]
        Form
"
! !

!DeviceFormHandle methodsFor:'finalization'!

disposed
    "the Form for which I am a handle has been collected - tell it to the x-server"

    drawableId notNil ifTrue:[
	gcId notNil ifTrue:[
	    device destroyGC:gcId.
	    gcId := nil
	].
	device destroyPixmap:drawableId.
	drawableId := nil
    ]
! !

!DeviceFormHandle class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libview/Attic/DevFormH.st,v 1.6 1996-04-23 20:11:33 cg Exp $'
! !