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.33 date: 2019/08/15 17:50:54
user: cg
file: HostGraphicsDevice.st directory: libview
module: stx stc-classLibrary: libview
Author:
Claus Gittinger

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.


Related information:

    DeviceWorkstation
    XWorkstation

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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 13 Dec 2019 16:38:00 GMT