#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Wed, 07 Mar 2018 18:06:42 +0100
changeset 8296 bc1956bd5d3a
parent 8295 944b8917e106
child 8297 395ee5d2951e
#DOCUMENTATION by cg class: DeviceGraphicsContext comment/format in: #function:
DeviceGraphicsContext.st
--- a/DeviceGraphicsContext.st	Wed Mar 07 17:55:09 2018 +0100
+++ b/DeviceGraphicsContext.st	Wed Mar 07 18:06:42 2018 +0100
@@ -487,14 +487,19 @@
     "Modified: / 22-10-2006 / 14:11:37 / cg"
 !
 
-function:aSymbol
-    "set the drawing function if it has changed"
-
-    (aSymbol ~~ function) ifTrue:[
-	function := aSymbol.
-	gcId notNil ifTrue:[
-	    device setFunction:aSymbol in:gcId
-	]
+function:functionSymbol
+    "set the drawing function if it has changed.
+     functionSymbol is one of:
+            #copy,#copyInverted,#xor,#and,#andReverse
+            #andInverted,#or,#orReverse,#orInverted
+            #invert,#clear,#set,#noop,#equiv,#nand.
+     Notice: not all graphicMedia support all functions"
+
+    (functionSymbol ~~ function) ifTrue:[
+        function := functionSymbol.
+        gcId notNil ifTrue:[
+            device setFunction:functionSymbol in:gcId
+        ]
     ]
 !