DeviceGraphicsContext.st
branchdelegated_gc_jv
changeset 6729 d4608914dc99
parent 6655 c600b219bb9e
child 6800 f4acb46ba42e
equal deleted inserted replaced
6728:9a57ec59402c 6729:d4608914dc99
     7  inclusion of the above copyright notice.   This software may not
     7  inclusion of the above copyright notice.   This software may not
     8  be provided or otherwise made available to, or used by, any
     8  be provided or otherwise made available to, or used by, any
     9  other person.  No title to or ownership of the software is
     9  other person.  No title to or ownership of the software is
    10  hereby transferred.
    10  hereby transferred.
    11 "
    11 "
    12 'From Smalltalk/X, Version:6.2.3.0 on 23-05-2014 at 17:22:04'                   !
       
    13 
       
    14 "{ Package: 'stx:libview' }"
    12 "{ Package: 'stx:libview' }"
       
    13 
       
    14 "{ NameSpace: Smalltalk }"
    15 
    15 
    16 GraphicsContext subclass:#DeviceGraphicsContext
    16 GraphicsContext subclass:#DeviceGraphicsContext
    17 	instanceVariableNames:'drawableId gcId deviceFont foreground background drawableType
    17 	instanceVariableNames:'drawableId gcId deviceFont foreground background drawableType
    18 		parentId'
    18 		parentId'
    19 	classVariableNames:'CachedScaledForms CachedScales Lobby'
    19 	classVariableNames:'CachedScaledForms CachedScales Lobby'
  1123         height:srcH
  1123         height:srcH
  1124         x:srcX
  1124         x:srcX
  1125         y:srcY
  1125         y:srcY
  1126         toX:dstX
  1126         toX:dstX
  1127         y:dstY
  1127         y:dstY
  1128 !
       
  1129 
       
  1130 copyFrom:aDrawable x:srcX y:srcY toX:dstX y:dstY width:w height:h
       
  1131     "copy from aDrawable into the receiver;
       
  1132      the source may be the receiver as well - in this case its a scroll.
       
  1133      All coordinates are in device coordinates."
       
  1134 
       
  1135     ^ self
       
  1136 	copyFrom:aDrawable
       
  1137 	x:srcX y:srcY
       
  1138 	toX:dstX y:dstY
       
  1139 	width:w height:h
       
  1140 	async:false
       
  1141 
       
  1142     "Modified: 29.1.1997 / 13:12:36 / cg"
       
  1143 !
  1128 !
  1144 
  1129 
  1145 copyFrom:aDrawable x:srcX y:srcY toX:dstX y:dstY width:w height:h async:async
  1130 copyFrom:aDrawable x:srcX y:srcY toX:dstX y:dstY width:w height:h async:async
  1146     "copy from aDrawable into the receiver;
  1131     "copy from aDrawable into the receiver;
  1147      the source may be the receiver as well - in this case its a scroll.
  1132      the source may be the receiver as well - in this case its a scroll.
  1300 	    height:h
  1285 	    height:h
  1301     ]
  1286     ]
  1302 
  1287 
  1303     "Modified: / 22.8.1998 / 15:15:52 / cg"
  1288     "Modified: / 22.8.1998 / 15:15:52 / cg"
  1304 ! !
  1289 ! !
       
  1290 
  1305 
  1291 
  1306 !DeviceGraphicsContext methodsFor:'copying'!
  1292 !DeviceGraphicsContext methodsFor:'copying'!
  1307 
  1293 
  1308 postCopy
  1294 postCopy
  1309     "this may not be enough to allow copying of views ..."
  1295     "this may not be enough to allow copying of views ..."