GraphicsDevice.st
author mawalch
Thu, 07 Jul 2016 20:21:22 +0200
changeset 7403 9a4c5d6da62c
parent 7362 8ac49e48c3a9
child 7366 18c5cd709f5c
child 7487 39fb74b4ade1
permissions -rw-r--r--
#OTHER by mawalch Spelling fixes.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
1283
ba106a6b1c5b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1282
diff changeset
     2
COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
3222
0bb571e07c0e moved screen instance variable
Claus Gittinger <cg@exept.de>
parents: 3198
diff changeset
     3
	      All Rights Reserved
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
3198
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    12
"{ Package: 'stx:libview' }"
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    13
7357
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
    14
"{ NameSpace: Smalltalk }"
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
    15
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
Object subclass:#GraphicsDevice
3443
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    17
	instanceVariableNames:'displayId screen eventListeners deviceType'
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Interface-Graphics'
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
7357
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
    23
AllocationFailure subclass:#GraphicResourceAllocationFailure
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
    24
	instanceVariableNames:''
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
    25
	classVariableNames:''
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
    26
	poolDictionaries:''
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
    27
	privateIn:GraphicsDevice
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
    28
!
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
    29
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
!GraphicsDevice class methodsFor:'documentation'!
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
copyright
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
"
1283
ba106a6b1c5b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1282
diff changeset
    34
COPYRIGHT (c) 1997 by eXept Software AG / Claus Gittinger
3222
0bb571e07c0e moved screen instance variable
Claus Gittinger <cg@exept.de>
parents: 3198
diff changeset
    35
	      All Rights Reserved
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
 This software is furnished under a license and may be used
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
 only in accordance with the terms of that license and with the
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
 inclusion of the above copyright notice.   This software may not
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
 be provided or otherwise made available to, or used by, any
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
 other person.  No title to or ownership of the software is
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
 hereby transferred.
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
"
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
!
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
documentation
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
"
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
    this abstract class was inserted to provide a home for ST-80 classes
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    (previously, DeviceWorkstation was directly under Object).
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
1283
ba106a6b1c5b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1282
diff changeset
    52
    In ST/X, this is mostly dummy.
ba106a6b1c5b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1282
diff changeset
    53
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    [instance variables:]
3443
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    55
      displayId       <Handle>            the device handle
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    56
      screen          any                 another some device specific id
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    57
      eventListeners  <Collection> | nil  bunch of objects interested in events.
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    58
      deviceType      <Symbol>             some arbitrary symbol, used to choose windowSpecs.
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    [see also:]
3222
0bb571e07c0e moved screen instance variable
Claus Gittinger <cg@exept.de>
parents: 3198
diff changeset
    61
	DeviceWorkstation XWorkstation
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    [author:]
3222
0bb571e07c0e moved screen instance variable
Claus Gittinger <cg@exept.de>
parents: 3198
diff changeset
    64
	Claus Gittinger
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
"
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
! !
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
3445
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
    69
!GraphicsDevice methodsFor:'accessing & queries'!
3198
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    70
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    71
addEventListener:aListener
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    72
    "add a local eventListener (with new protocol - #processEvent:)
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    73
     This one gets a chance to intercept all events for this device"
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    74
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    75
    eventListeners isNil ifTrue:[
3488
b6605e20bfde *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3445
diff changeset
    76
        eventListeners := OrderedCollection new:2
3198
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    77
    ].
3488
b6605e20bfde *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3445
diff changeset
    78
    (eventListeners includesIdentical:aListener) ifFalse:[
b6605e20bfde *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3445
diff changeset
    79
        eventListeners add:aListener
b6605e20bfde *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3445
diff changeset
    80
    ].
3198
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    81
!
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    82
3445
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
    83
bePDA
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
    84
    self deviceType:#pda
3443
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    85
!
3198
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    86
3443
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    87
deviceType
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    88
    ^ deviceType
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    89
!
3198
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
    90
3443
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    91
deviceType:aSymbol
ab7697bff56c added deviceType
Claus Gittinger <cg@exept.de>
parents: 3222
diff changeset
    92
    deviceType := aSymbol
3445
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
    93
!
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
    94
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
    95
isPDA
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
    96
    ^ self deviceType == #pda
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
    97
!
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
    98
5561
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
    99
isWebServiceDevice
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
   100
    "I am not a WebService pseude-device"
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
   101
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
   102
    ^ false
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
   103
!
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
   104
3445
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
   105
removeEventListener:aListener
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
   106
    "remove a local eventListener (with new protocol - #processEvent:)"
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
   107
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
   108
    eventListeners notNil ifTrue:[
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
   109
	eventListeners removeIdentical:aListener ifAbsent:nil
0967a57d0350 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3443
diff changeset
   110
    ].
3198
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   111
! !
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   112
6220
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   113
!GraphicsDevice methodsFor:'creating graphics contexts'!
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   114
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   115
newGraphicsContextFor:aGraphicsMedium
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   116
    "create a new graphics context.
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   117
     The defaults is to use the inherited graphics context.
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   118
     Subclasses may redefine this to use their own graphics context"
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   119
6357
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   120
    |gc|
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   121
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   122
    GraphicsMedium superclass == DeviceGraphicsContext ifTrue:[
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   123
        "this is for transition to delegatest GC"
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   124
        ^ aGraphicsMedium.
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   125
    ].
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   126
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   127
    gc := DeviceGraphicsContext onDevice:self.
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   128
    gc font:aGraphicsMedium class defaultFont.
bc674a4f8cfd class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 6334
diff changeset
   129
    ^ gc.
6220
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   130
! !
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   131
3198
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   132
!GraphicsDevice methodsFor:'event processing'!
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   133
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   134
notifyEventListenersAbout:anEvent
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   135
    "notify all eventHandlers about an incoming event.
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   136
     If any returns true, it is assumed to be eaten by the handler and not
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   137
     enqueued (i.e. not passed to the windowGroup process)"
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   138
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   139
    |anyListenerReturnedTrue|
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   140
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   141
    anyListenerReturnedTrue := false.
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   142
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   143
    "/ local listeners ...
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   144
    eventListeners notNil ifTrue:[
7362
8ac49e48c3a9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 7357
diff changeset
   145
        eventListeners do:[:aListener |
8ac49e48c3a9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 7357
diff changeset
   146
            "/ notice: evaluating or here; all listeners get a chance
8ac49e48c3a9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 7357
diff changeset
   147
            anyListenerReturnedTrue := anyListenerReturnedTrue |
8ac49e48c3a9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 7357
diff changeset
   148
                                       (aListener processEvent:anEvent)
8ac49e48c3a9 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 7357
diff changeset
   149
        ]
3198
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   150
    ].
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   151
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   152
    ^ anyListenerReturnedTrue.
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   153
! !
84ed1e2f1bd6 Add per device eventListeners.
Stefan Vogel <sv@exept.de>
parents: 1287
diff changeset
   154
3577
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   155
!GraphicsDevice methodsFor:'misc'!
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   156
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   157
roundTripTime
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   158
    "answer the round trip time in milliseconds.
5561
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
   159
     May be used to detect slow device connections.
3577
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   160
     Subclasses redefine this. Assume a fast Diplay connection
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   161
     and answer 0 here"
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   162
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   163
    ^ 0
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   164
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   165
    "
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   166
     Screen current roundTripTime
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   167
    "
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   168
! !
c0282d4e18d6 Define #roundTripTime
Stefan Vogel <sv@exept.de>
parents: 3488
diff changeset
   169
7357
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   170
!GraphicsDevice::GraphicResourceAllocationFailure class methodsFor:'documentation'!
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   171
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   172
copyright
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   173
"
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   174
 COPYRIGHT (c) 2016 by eXept Software AG
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   175
              All Rights Reserved
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   176
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   177
 This software is furnished under a license and may be used
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   178
 only in accordance with the terms of that license and with the
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   179
 inclusion of the above copyright notice.   This software may not
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   180
 be provided or otherwise made available to, or used by, any
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   181
 other person.  No title to or ownership of the software is
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   182
 hereby transferred.
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   183
"
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   184
!
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   185
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   186
documentation
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   187
"
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   188
    raised when allocation of a graphics resource (pixmap, bitmap, cursor, font, etc.)
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   189
    fails.
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   190
"
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   191
! !
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   192
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   193
!GraphicsDevice::GraphicResourceAllocationFailure class methodsFor:'queries'!
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   194
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   195
defaultAnswer
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   196
    ^ nil
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   197
!
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   198
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   199
isQuerySignal
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   200
    ^ true
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   201
! !
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   202
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   203
!GraphicsDevice::GraphicResourceAllocationFailure class methodsFor:'raising'!
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   204
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   205
query
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   206
    ^ self raiseAsQuery
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   207
! !
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   208
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
!GraphicsDevice class methodsFor:'documentation'!
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
version
7357
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   212
    ^ '$Header$'
5561
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
   213
!
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
   214
5d0f94937438 added: #isWebServiceDevice
Stefan Vogel <sv@exept.de>
parents: 3577
diff changeset
   215
version_CVS
7357
bfc2b9583931 #FEATURE by sr
sr
parents: 6357
diff changeset
   216
    ^ '$Header$'
1282
46629b32e1d7 intitial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
! !
6220
67d0b77833c6 class: GraphicsDevice
Stefan Vogel <sv@exept.de>
parents: 5561
diff changeset
   218