MCPcopy Create free account
hub / github.com/JetBrains/skija / hasNothingToDraw

Method hasNothingToDraw

shared/java/Paint.java:674–681  ·  view source on GitHub ↗

Returns true if Paint prevents all drawing; otherwise, the Paint may or may not allow drawing. Returns true if, for example, BlendMode combined with alpha computes a new alpha of zero. @return true if Paint prevents all drawing @see <a href="https://fiddle.skia.org/c/@Paint_nothing

()

Source from the content-addressed store, hash-verified

672 * @see <a href="https://fiddle.skia.org/c/@Paint_nothingToDraw">https://fiddle.skia.org/c/@Paint_nothingToDraw</a>
673 */
674 public boolean hasNothingToDraw() {
675 try {
676 Stats.onNativeCall();
677 return _nHasNothingToDraw(_ptr);
678 } finally {
679 Reference.reachabilityFence(this);
680 }
681 }
682
683 public static native long _nGetFinalizer();
684 public static native long _nMake();

Callers 1

executeMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nHasNothingToDrawMethod · 0.95

Tested by 1

executeMethod · 0.64