Package org.robolectric.shadows
Class ShadowNativeRadialGradient
java.lang.Object
org.robolectric.shadows.ShadowNativeRadialGradient
@Implements(value=android.graphics.RadialGradient.class,
minSdk=26,
shadowPicker=Picker.class)
public class ShadowNativeRadialGradient
extends Object
Shadow for
RadialGradient
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static long
nativeCreate
(long matrix, float startX, float startY, float startRadius, float endX, float endY, float endRadius, long[] colors, float[] positions, int tileMode, long colorSpaceHandle) protected static long
nativeCreate
(long matrix, float x, float y, float radius, long[] colors, float[] positions, int tileMode, long colorSpaceHandle) protected static long
nativeCreate1
(long matrix, float x, float y, float radius, int[] colors, float[] positions, int tileMode) protected static long
nativeCreate2
(long matrix, float x, float y, float radius, int color0, int color1, int tileMode)
-
Constructor Details
-
ShadowNativeRadialGradient
public ShadowNativeRadialGradient()
-
-
Method Details
-
nativeCreate
@Implementation(minSdk=31) protected static long nativeCreate(long matrix, float startX, float startY, float startRadius, float endX, float endY, float endRadius, @ColorLong long[] colors, float[] positions, int tileMode, long colorSpaceHandle) -
nativeCreate
@Implementation(minSdk=29, maxSdk=30) protected static long nativeCreate(long matrix, float x, float y, float radius, @ColorLong long[] colors, float[] positions, int tileMode, long colorSpaceHandle) -
nativeCreate1
@Implementation(minSdk=26, maxSdk=28) protected static long nativeCreate1(long matrix, float x, float y, float radius, int[] colors, float[] positions, int tileMode) -
nativeCreate2
@Implementation(minSdk=26, maxSdk=28) protected static long nativeCreate2(long matrix, float x, float y, float radius, int color0, int color1, int tileMode)
-