inspector attrs for Rectangle
authorClaus Gittinger <cg@exept.de>
Thu, 16 Jan 2020 14:39:42 +0100
changeset 19411 5b4bc73d6e87
parent 19410 077e5ea668e5
child 19412 23eb55bc127a
inspector attrs for Rectangle
extensions.st
--- a/extensions.st	Wed Jan 15 15:14:17 2020 +0100
+++ b/extensions.st	Thu Jan 16 14:39:42 2020 +0100
@@ -2785,6 +2785,18 @@
 
 !Rectangle methodsFor:'inspecting'!
 
+inspectorExtraMenuOperations
+    "returns a string to be shown in the inspector's list"
+
+    ^ super inspectorExtraMenuOperations
+    , {
+        { 'Flash on Screen' . [Display rootView flashRectangle:self] } .
+        { 'Screenshot Area' . [(Image fromScreen:self) inspect] }
+    }
+! !
+
+!Rectangle methodsFor:'inspecting'!
+
 inspectorValueStringInListFor:anInspector
     "returns a string to be shown in the inspector's list"