Package org.robolectric.shadows
Class ShadowNativeMeasuredParagraph
java.lang.Object
org.robolectric.shadows.ShadowNativeMeasuredParagraph
@Implements(value=android.text.MeasuredParagraph.class,
minSdk=28,
maxSdk=28,
shadowPicker=Picker.class)
public class ShadowNativeMeasuredParagraph
extends Object
Shadow for
MeasuredParagraph that is backed by native code-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidnAddReplacementRun(long nativeBuilderPtr, long paintPtr, int start, int end, float width) protected static voidnAddStyleRun(long nativeBuilderPtr, long paintPtr, int start, int end, boolean isRtl) protected static longnBuildNativeMeasuredParagraph(long nativeBuilderPtr, char[] text, boolean computeHyphenation, boolean computeLayout) protected static voidnFreeBuilder(long nativeBuilderPtr) protected static voidnGetBounds(long nativePtr, char[] buf, int start, int end, Rect rect) protected static intnGetMemoryUsage(long nativePtr) protected static longprotected static floatnGetWidth(long nativePtr, int start, int end) protected static long
-
Constructor Details
-
ShadowNativeMeasuredParagraph
public ShadowNativeMeasuredParagraph()
-
-
Method Details
-
nInitBuilder
-
nAddStyleRun
@Implementation protected static void nAddStyleRun(long nativeBuilderPtr, long paintPtr, int start, int end, boolean isRtl) -
nAddReplacementRun
@Implementation protected static void nAddReplacementRun(long nativeBuilderPtr, long paintPtr, int start, int end, float width) -
nBuildNativeMeasuredParagraph
@Implementation protected static long nBuildNativeMeasuredParagraph(long nativeBuilderPtr, char[] text, boolean computeHyphenation, boolean computeLayout) -
nFreeBuilder
-
nGetWidth
-
nGetReleaseFunc
-
nGetMemoryUsage
-
nGetBounds
@Implementation protected static void nGetBounds(long nativePtr, char[] buf, int start, int end, Rect rect)
-