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

Method clipRect

examples/scenes/src/SwingScene.java:569–578  ·  view source on GitHub ↗
(int x, int y, int width, int height)

Source from the content-addressed store, hash-verified

567 }
568
569 @Override
570 public void clipRect(int x, int y, int width, int height) {
571 log("[+] clipRect %d %d %d %d", x, y, width, height);
572 if (clip == null)
573 setClip(x, y, width, height);
574 else {
575 var r = clip.intersection(new java.awt.Rectangle(x, y, width, height));
576 setClip(r.x, r.y, r.width, r.height);
577 }
578 }
579
580 @Override
581 public void setClip(int x, int y, int width, int height) {

Callers 11

clipMethod · 0.95
drawRatioMethod · 0.45
drawMethod · 0.45
drawBlurMethod · 0.45
drawPathEffectMethod · 0.45
drawPathMethod · 0.45
drawPathsMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
beforeDrawMethod · 0.45
drawClipsMethod · 0.45

Calls 2

logMethod · 0.95
setClipMethod · 0.95

Tested by

no test coverage detected