MCPcopy Create free account
hub / github.com/benfry/processing4 / mouseMoved

Method mouseMoved

app/src/processing/app/syntax/PdeTextArea.java:181–193  ·  view source on GitHub ↗
(MouseEvent me)

Source from the content-addressed store, hash-verified

179 private int lastX; // previous horizontal position of the mouse cursor
180
181 @Override
182 public void mouseMoved(MouseEvent me) {
183 if (me.getX() < Editor.LEFT_GUTTER) {
184 if (lastX >= Editor.LEFT_GUTTER) {
185 painter.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
186 }
187 } else {
188 if (lastX < Editor.LEFT_GUTTER) {
189 painter.setCursor(new Cursor(Cursor.TEXT_CURSOR));
190 }
191 }
192 lastX = me.getX();
193 }
194 };
195
196

Callers

nothing calls this directly

Calls 2

getXMethod · 0.80
setCursorMethod · 0.65

Tested by

no test coverage detected