Package org.robolectric.shadows
Class ShadowNativeVectorDrawable
java.lang.Object
org.robolectric.shadows.ShadowDrawable
org.robolectric.shadows.ShadowNativeVectorDrawable
@Implements(value=android.graphics.drawable.VectorDrawable.class,
minSdk=26,
shadowPicker=Picker.class,
isInAndroidSdk=false)
public class ShadowNativeVectorDrawable
extends ShadowDrawable
Shadow for
VectorDrawable
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
nAddChild
(long groupPtr, long nodePtr) protected static long
protected static long
nCreateClipPath
(long clipPathPtr) protected static long
protected static long
nCreateFullPath
(long nativeFullPathPtr) protected static long
protected static long
nCreateGroup
(long groupPtr) protected static long
nCreateTree
(long rootGroupPtr) protected static long
nCreateTreeFromCopy
(long treeToCopy, long rootGroupPtr) protected static int
nDraw
(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache) protected static float
nGetFillAlpha
(long pathPtr) protected static int
nGetFillColor
(long pathPtr) protected static boolean
nGetFullPathProperties
(long pathPtr, byte[] properties, int length) protected static boolean
nGetGroupProperties
(long groupPtr, float[] properties, int length) protected static float
nGetPivotX
(long groupPtr) protected static float
nGetPivotY
(long groupPtr) protected static float
nGetRootAlpha
(long rendererPtr) protected static float
nGetRotation
(long groupPtr) protected static float
nGetScaleX
(long groupPtr) protected static float
nGetScaleY
(long groupPtr) protected static float
nGetStrokeAlpha
(long pathPtr) protected static int
nGetStrokeColor
(long pathPtr) protected static float
nGetStrokeWidth
(long pathPtr) protected static float
nGetTranslateX
(long groupPtr) protected static float
nGetTranslateY
(long groupPtr) protected static float
nGetTrimPathEnd
(long pathPtr) protected static float
nGetTrimPathOffset
(long pathPtr) protected static float
nGetTrimPathStart
(long pathPtr) protected static void
nSetAllowCaching
(long rendererPtr, boolean allowCaching) protected static void
nSetAntiAlias
(long rendererPtr, boolean aa) protected static void
nSetFillAlpha
(long pathPtr, float fillAlpha) protected static void
nSetFillColor
(long pathPtr, int fillColor) protected static void
protected static void
nSetPathData
(long pathPtr, long pathDataPtr) protected static void
nSetPathString
(long pathPtr, String pathString, int length) protected static void
nSetPivotX
(long groupPtr, float pivotX) protected static void
nSetPivotY
(long groupPtr, float pivotY) protected static void
nSetRendererViewportSize
(long rendererPtr, float viewportWidth, float viewportHeight) protected static boolean
nSetRootAlpha
(long rendererPtr, float alpha) protected static void
nSetRotation
(long groupPtr, float rotation) protected static void
nSetScaleX
(long groupPtr, float scaleX) protected static void
nSetScaleY
(long groupPtr, float scaleY) protected static void
nSetStrokeAlpha
(long pathPtr, float alpha) protected static void
nSetStrokeColor
(long pathPtr, int strokeColor) protected static void
nSetStrokeWidth
(long pathPtr, float width) protected static void
nSetTranslateX
(long groupPtr, float translateX) protected static void
nSetTranslateY
(long groupPtr, float translateY) protected static void
nSetTrimPathEnd
(long pathPtr, float trimPathEnd) protected static void
nSetTrimPathOffset
(long pathPtr, float trimPathOffset) protected static void
nSetTrimPathStart
(long pathPtr, float trimPathStart) protected static void
nUpdateFullPathFillGradient
(long pathPtr, long fillGradientPtr) protected static void
nUpdateFullPathProperties
(long pathPtr, float strokeWidth, int strokeColor, float strokeAlpha, int fillColor, float fillAlpha, float trimPathStart, float trimPathEnd, float trimPathOffset, float strokeMiterLimit, int strokeLineCap, int strokeLineJoin, int fillType) protected static void
nUpdateFullPathStrokeGradient
(long pathPtr, long strokeGradientPtr) protected static void
nUpdateGroupProperties
(long groupPtr, float rotate, float pivotX, float pivotY, float scaleX, float scaleY, float translateX, float translateY) Methods inherited from class org.robolectric.shadows.ShadowDrawable
createFromResourceId, getCreatedFromResId, getInputStream, invalidateSelf, setCreatedFromResId, validate, wasInvalidated
-
Constructor Details
-
ShadowNativeVectorDrawable
public ShadowNativeVectorDrawable()
-
-
Method Details
-
nDraw
@Implementation(minSdk=26) protected static int nDraw(long rendererPtr, long canvasWrapperPtr, long colorFilterPtr, Rect bounds, boolean needsMirroring, boolean canReuseCache) -
nGetFullPathProperties
@Implementation(minSdk=26) protected static boolean nGetFullPathProperties(long pathPtr, byte[] properties, int length) -
nSetName
-
nGetGroupProperties
@Implementation(minSdk=26) protected static boolean nGetGroupProperties(long groupPtr, float[] properties, int length) -
nSetPathString
@Implementation(minSdk=26) protected static void nSetPathString(long pathPtr, String pathString, int length) -
nCreateTree
-
nCreateTreeFromCopy
@Implementation(minSdk=26) protected static long nCreateTreeFromCopy(long treeToCopy, long rootGroupPtr) -
nSetRendererViewportSize
@Implementation(minSdk=26) protected static void nSetRendererViewportSize(long rendererPtr, float viewportWidth, float viewportHeight) -
nSetRootAlpha
-
nGetRootAlpha
-
nSetAntiAlias
-
nSetAllowCaching
@Implementation(minSdk=26) protected static void nSetAllowCaching(long rendererPtr, boolean allowCaching) -
nCreateFullPath
-
nCreateFullPath
-
nUpdateFullPathProperties
@Implementation(minSdk=26) protected static void nUpdateFullPathProperties(long pathPtr, float strokeWidth, int strokeColor, float strokeAlpha, int fillColor, float fillAlpha, float trimPathStart, float trimPathEnd, float trimPathOffset, float strokeMiterLimit, int strokeLineCap, int strokeLineJoin, int fillType) -
nUpdateFullPathFillGradient
@Implementation(minSdk=26) protected static void nUpdateFullPathFillGradient(long pathPtr, long fillGradientPtr) -
nUpdateFullPathStrokeGradient
@Implementation(minSdk=26) protected static void nUpdateFullPathStrokeGradient(long pathPtr, long strokeGradientPtr) -
nCreateClipPath
-
nCreateClipPath
-
nCreateGroup
-
nCreateGroup
-
nUpdateGroupProperties
@Implementation(minSdk=26) protected static void nUpdateGroupProperties(long groupPtr, float rotate, float pivotX, float pivotY, float scaleX, float scaleY, float translateX, float translateY) -
nAddChild
-
nGetRotation
-
nSetRotation
-
nGetPivotX
-
nSetPivotX
-
nGetPivotY
-
nSetPivotY
-
nGetScaleX
-
nSetScaleX
-
nGetScaleY
-
nSetScaleY
-
nGetTranslateX
-
nSetTranslateX
-
nGetTranslateY
-
nSetTranslateY
-
nSetPathData
-
nGetStrokeWidth
-
nSetStrokeWidth
-
nGetStrokeColor
-
nSetStrokeColor
-
nGetStrokeAlpha
-
nSetStrokeAlpha
-
nGetFillColor
-
nSetFillColor
-
nGetFillAlpha
-
nSetFillAlpha
-
nGetTrimPathStart
-
nSetTrimPathStart
@Implementation(minSdk=26) protected static void nSetTrimPathStart(long pathPtr, float trimPathStart) -
nGetTrimPathEnd
-
nSetTrimPathEnd
-
nGetTrimPathOffset
-
nSetTrimPathOffset
@Implementation(minSdk=26) protected static void nSetTrimPathOffset(long pathPtr, float trimPathOffset)
-