Package org.robolectric.shadows
Class ShadowNativePathMeasure
java.lang.Object
org.robolectric.shadows.ShadowNativePathMeasure
@Implements(value=android.graphics.PathMeasure.class, minSdk=26, shadowPicker=Picker.class, isInAndroidSdk=false) public class ShadowNativePathMeasure extends Object
Shadow for
PathMeasure
that is backed by native code-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowNativePathMeasure.Picker
Shadow picker forPathMeasure
. -
Constructor Summary
Constructors Constructor Description ShadowNativePathMeasure()
-
Method Summary
Modifier and Type Method Description protected static long
native_create(long nativePath, boolean forceClosed)
protected static void
native_destroy(long nativeInstance)
protected static float
native_getLength(long nativeInstance)
protected static boolean
native_getMatrix(long nativeInstance, float distance, long nativeMatrix, int flags)
protected static boolean
native_getPosTan(long nativeInstance, float distance, float[] pos, float[] tan)
protected static boolean
native_getSegment(long nativeInstance, float startD, float stopD, long nativePath, boolean startWithMoveTo)
protected static boolean
native_isClosed(long nativeInstance)
protected static boolean
native_nextContour(long nativeInstance)
protected static void
native_setPath(long nativeInstance, long nativePath, boolean forceClosed)
-
Constructor Details
-
ShadowNativePathMeasure
public ShadowNativePathMeasure()
-
-
Method Details
-
native_create
@Implementation(minSdk=26) protected static long native_create(long nativePath, boolean forceClosed) -
native_setPath
@Implementation(minSdk=26) protected static void native_setPath(long nativeInstance, long nativePath, boolean forceClosed) -
native_getLength
-
native_getPosTan
@Implementation(minSdk=26) protected static boolean native_getPosTan(long nativeInstance, float distance, float[] pos, float[] tan) -
native_getMatrix
@Implementation(minSdk=26) protected static boolean native_getMatrix(long nativeInstance, float distance, long nativeMatrix, int flags) -
native_getSegment
@Implementation(minSdk=26) protected static boolean native_getSegment(long nativeInstance, float startD, float stopD, long nativePath, boolean startWithMoveTo) -
native_isClosed
-
native_nextContour
-
native_destroy
-