eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HostGraphicsDevice':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HostGraphicsDevice


Inheritance:

   Object
   |
   +--GraphicsDevice
      |
      +--HostGraphicsDevice
         |
         +--DeviceWorkstation

Package:
stx:libview
Category:
Interface-Graphics
Version:
rev: 1.34 date: 2021/01/20 14:35:25
user: cg
file: HostGraphicsDevice.st directory: libview
module: stx stc-classLibrary: libview

Description:


this abstract class was inserted to provide a home for ST-80 classes
(previously, DeviceWorkstation was directly under Object).
We will (over time) move common functionality from there into this class.

In ST/X, this is mostly dummy.

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.

Instance protocol:

Compatibility-Squeak
o  deferUpdates: aBoolean
Set the deferUpdates flag in the virtual machine.
When this flag is true, BitBlt operations on the Display are not
automatically propagated to the screen.
If this underlying platform does not support deferred updates,
this primitive will fail.
Answer the receiver if the primitive succeeds, nil if it fails.

o  forceDisplayUpdate
On platforms that buffer screen updates,
force the screen to be updated immediately.
On other platforms, or if the primitive is not implemented, do nothing.

accessing
o  deviceColors
return the registry keeping track of colors which were allocated
on this device.

o  deviceCursors
return the registry keeping track of cursors which were allocated
on this device.

o  deviceFonts
return the registry keeping track of fonts which were allocated
on this device.

o  graphicsContexts
return the registry keeping track of graphics contexts which were allocated
on this device.

accessing & queries
o  defaultExtentForTopViews

initialization & release
o  initializeDeviceResourceTables

o  releaseDeviceColors
TrueColors are not registered.
Release them the hard way

o  releaseDeviceCursors

o  releaseDeviceFonts

o  releaseGraphicsContexts

misc
o  recolorCursorsToFgColor: fgColor defaultBgColor: bgColor
change the colors of all existing cursors

Usage example(s):

     Display recolorCursorsToFgColor:(Color red) defaultBgColor:(Color white)

     Display recolorCursorsToFgColor:(Color blue) defaultBgColor:(Color white)
     Display recolorCursorsToFgColor:(Color blue) defaultBgColor:(Color black)
     Display recolorCursorsToFgColor:(Color white) defaultBgColor:(Color black)
     Display recolorCursorsToFgColor:(Color white) defaultBgColor:(Color red)

registration
o  cleanupLobbyForChildrenOfViewWithId: anId
recursively clean all the subcomponents of the handle with id anId.
This must be done on finalization, because descendent handles
are destroyed implicitly when a parent handle is destroyed.

o  registerColor: aColor

o  registerCursor: aCursor

o  registerFont: aFont

o  registerGraphicsContext: aGC

o  unregisterColor: aColor

o  unregisterCursor: aCursor

o  unregisterFont: aFont

o  unregisterGraphicsContext: aGC



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 13:25:18 GMT