#TUNING by cg
authorClaus Gittinger <cg@exept.de>
Tue, 24 Jan 2017 23:14:59 +0100
changeset 6056 da66f10bc24d
parent 6055 aa065a7f4719
child 6057 e3929e2b5edf
#TUNING by cg class: ObjectView changed: #drawHandle: #drawHandlesFor: #invertDragRectangle draw by sending messages to gc instead of self. (new GC structure)
ObjectView.st
--- a/ObjectView.st	Tue Jan 24 23:08:10 2017 +0100
+++ b/ObjectView.st	Tue Jan 24 23:14:59 2017 +0100
@@ -1138,16 +1138,16 @@
      Extracted into a separate method to allow easier redefinition
      (different lineWidth etc)"
 
-    self clippedByChildren:false.
-
-    self xoring:[
-        self lineWidth:0. 
+    gc clippedByChildren:false.
+
+    gc xoring:[
+        gc lineWidth:0. 
 "/        self lineStyle:#dashed.
-        self displayRectangle:dragObject.
+        gc displayRectangle:dragObject.
 "/        self lineStyle:#solid.
     ].
 
-    self clippedByChildren:true.
+    gc clippedByChildren:true.
 
     "Modified: 3.6.1996 / 10:02:22 / cg"
 !
@@ -2808,10 +2808,8 @@
 
     hsize := self handleSize.
     halfSize := hsize // 2.
-    self fillRectangleX:(aPoint x - halfSize)
-		      y:(aPoint y - halfSize)
-		  width:hsize 
-		 height:hsize
+    gc fillRectangleX:(aPoint x - halfSize) y:(aPoint y - halfSize)
+       width:hsize height:hsize
 !
 
 drawHandlesFor:anObject
@@ -2820,10 +2818,8 @@
     hsize := self handleSize.
     halfSize := hsize // 2.
     self handlesOf:anObject do:[:handlePoint |
-        self fillRectangleX:(handlePoint x - halfSize)
-                          y:(handlePoint y - halfSize)
-                      width:hsize 
-                     height:hsize
+        gc fillRectangleX:(handlePoint x - halfSize) y:(handlePoint y - halfSize)
+           width:hsize height:hsize
     ]
 !