"
COPYRIGHT (c) 1997 by eXept Software AG / 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.
"
GraphicsDevice subclass:#HostGraphicsDevice
instanceVariableNames:'deviceColors deviceFonts'
classVariableNames:''
poolDictionaries:''
category:'Interface-Graphics'
!
!HostGraphicsDevice class methodsFor:'documentation'!
copyright
"
COPYRIGHT (c) 1997 by eXept Software AG / 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 abstract class was inserted to provide a home for ST-80 classes
(previously, DeviceWorkstation was directly under Object).
Will (over time) move commn functionality from there into this class.
In ST/X, this is mostly dummy.
[see also:]
DeviceWorkstation XWorkstation
[author:]
Claus Gittinger
"
! !
!HostGraphicsDevice methodsFor:'accessing'!
deviceColors
"return the registry keeping track of colors which were allocated
on this device"
^ deviceColors
"Created: 24.2.1997 / 18:01:41 / cg"
!
deviceFonts
"return the registry keeping track of fonts which were allocated
on this device"
^ deviceFonts
! !
!HostGraphicsDevice methodsFor:'color stuff'!
registerColor:aColor
deviceColors register:aColor.
"Created: 24.2.1997 / 18:29:10 / cg"
!
unregisterColor:aColor
deviceColors unregister:aColor.
"Created: 24.2.1997 / 18:29:14 / cg"
! !
!HostGraphicsDevice methodsFor:'font stuff'!
registerFont:aFont
deviceFonts register:aFont.
"Created: 24.2.1997 / 18:29:10 / cg"
!
unregisterFont:aFont
deviceFonts unregister:aFont.
"Created: 24.2.1997 / 18:29:14 / cg"
! !
!HostGraphicsDevice methodsFor:'initialize / release'!
initializeDeviceResourceTables
deviceColors := Registry new.
deviceFonts := Registry new.
"Created: 24.2.1997 / 18:29:53 / cg"
!
releaseDeviceColors
deviceColors := Registry new.
"Created: 24.2.1997 / 18:07:49 / cg"
!
releaseDeviceFonts
deviceFonts := Registry new.
! !
!HostGraphicsDevice class methodsFor:'documentation'!
version
^ '$Header: /cvs/stx/stx/libview/HostGraphicsDevice.st,v 1.5 1997-02-24 21:23:33 cg Exp $'
! !