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 Modifier and Type Class Description static class
ShadowNativeMeasuredParagraph.Picker
Shadow picker forMeasuredParagraph
. -
Constructor Summary
Constructors Constructor Description ShadowNativeMeasuredParagraph()
-
Method Summary
Modifier and Type Method Description protected static void
nAddReplacementRun(long nativeBuilderPtr, long paintPtr, int start, int end, float width)
protected static void
nAddStyleRun(long nativeBuilderPtr, long paintPtr, int start, int end, boolean isRtl)
protected static long
nBuildNativeMeasuredParagraph(long nativeBuilderPtr, char[] text, boolean computeHyphenation, boolean computeLayout)
protected static void
nFreeBuilder(long nativeBuilderPtr)
protected static void
nGetBounds(long nativePtr, char[] buf, int start, int end, Rect rect)
protected static int
nGetMemoryUsage(long nativePtr)
protected static long
nGetReleaseFunc()
protected static float
nGetWidth(long nativePtr, int start, int end)
protected static long
nInitBuilder()
-
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)
-