eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'GraphicsDevice':

Home

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

Class: GraphicsDevice


Inheritance:

   Object
   |
   +--GraphicsDevice
      |
      +--HostGraphicsDevice

Package:
stx:libview
Category:
Interface-Graphics
Version:
rev: 1.22 date: 2019/08/15 17:44:30
user: cg
file: GraphicsDevice.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).

In ST/X, this is mostly dummy.

[instance variables:]
  displayId       <Handle>            the device handle
  screen          any                 another some device specific id
  eventListeners  <Collection> | nil  bunch of objects interested in events.
  deviceType      <Symbol>             some arbitrary symbol, used to choose windowSpecs.


Related information:

    DeviceWorkstation
    XWorkstation

Instance protocol:

accessing & queries
o  addEventListener: aListener
add a local eventListener (with new protocol - #processEvent:)
This one gets a chance to intercept all events for this device

o  bePDA

o  deviceType

o  deviceType: aSymbol

o  isPDA

o  isWebServiceDevice
I am not a WebService pseudo-device

o  literalArrayEncoding
(comment from inherited method)
generate a literalArrayEncoding array for myself.
This uses #literalArrayEncodingSlotOrder which defines the slots and
order and #skippedInLiteralEncoding which defines slots to skip.
In addition, an object may define virtualSlotsInLiteralEncoding for slots
which are not really instvars, but should be fetched via getters.
For most subclasses, there is no need to redefine those.

o  removeEventListener: aListener
remove a local eventListener (with new protocol - #processEvent:)

o  supportsAlphaChannel
return true, if this device supports alpha information.
Currently none does

creating graphics contexts
o  newGraphicsContextFor: aGraphicsMedium
create a new graphics context.
The default is to use the inherited graphics context.
Subclasses may redefine this to use their own graphics context

event processing
o  notifyEventListenersAbout: anEvent
notify all eventHandlers about an incoming event.
If any returns true, it is assumed to be eaten by the handler and not
enqueued (i.e. not passed to the windowGroup process)

misc
o  roundTripTime
answer the round trip time in milliseconds.
May be used to detect slow device connections.
Subclasses redefine this. Assume a fast Diplay connection
and answer 0 here

usage example(s):

     Screen current roundTripTime


Private classes:

    GraphicResourceAllocationFailure


ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 26 Apr 2024 13:26:01 GMT