MCPcopy Create free account
hub / github.com/HumbleUI/Skija / swap

Method swap

tests/java/PathTest.java:226–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

224 }
225
226 public void swap() {
227 try (Path p1 = new PathBuilder().lineTo(40, 40).lineTo(40, 0).lineTo(0, 40).lineTo(0, 0).closePath().build();
228 Path p2 = new PathBuilder().lineTo(0, 0).lineTo(20, 20).build();) {
229 p1.swap(p2);
230 assertEquals(new PathBuilder().lineTo(0, 0).lineTo(20, 20).build(), p1);
231 assertEquals(new PathBuilder().lineTo(40, 40).lineTo(40, 0).lineTo(0, 40).lineTo(0, 0).closePath().build(), p2);
232 }
233 }
234
235 public void contains() {
236 try (Path p = new PathBuilder().addRRect(RRect.makeLTRB(10, 20, 54, 120, 10, 20)).build()) {

Callers

nothing calls this directly

Calls 4

closePathMethod · 0.80
lineToMethod · 0.80
assertEqualsMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected