MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / updatePosition

Method updatePosition

src/main/java/fieldcef/plugins/Taps.java:233–242  ·  view source on GitHub ↗
(Binding binding, Rect at)

Source from the content-addressed store, hash-verified

231 }
232
233
234 private void updatePosition(Binding binding, Rect at) {
235 if (binding.editorPosition == null || !binding.editorPosition.equals(at) && binding.target != null)
236 Drawing.dirty(binding.target);
237
238
239 if (at!=null)
240 binding.editorPosition = new Rect(at.x, at.y, at.w, at.h);
241
242 // todo, callback
243 }
244
245 /**

Callers 1

updateMethod · 0.95

Calls 2

dirtyMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected