Package org.robolectric.shadows
Class ShadowNativeLineBreaker
java.lang.Object
org.robolectric.shadows.ShadowNativeLineBreaker
@Implements(value=android.graphics.text.LineBreaker.class,
minSdk=29,
shadowPicker=Picker.class,
callNativeMethodsByDefault=true)
public class ShadowNativeLineBreaker
extends Object
Shadow for
LineBreaker that is backed by native code-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static longnComputeLineBreaks(long nativePtr, char[] text, long measuredTextPtr, int length, float firstWidth, int firstWidthLineCount, float restWidth, float[] variableTabStops, float defaultTabStop, int indentsOffset) protected static floatnGetLineAscent(long ptr, int idx) protected static intnGetLineBreakOffset(long ptr, int idx) protected static intnGetLineCount(long ptr) protected static floatnGetLineDescent(long ptr, int idx) protected static intnGetLineFlag(long ptr, int idx) protected static floatnGetLineWidth(long ptr, int idx) protected static longprotected static longprotected static longnInit(int breakStrategy, int hyphenationFrequency, boolean isJustified, int[] indents)
-
Constructor Details
-
ShadowNativeLineBreaker
public ShadowNativeLineBreaker()
-
-
Method Details
-
nInit
@Implementation(maxSdk=34) protected static long nInit(int breakStrategy, int hyphenationFrequency, boolean isJustified, int[] indents) -
nGetReleaseFunc
-
nComputeLineBreaks
@Implementation(maxSdk=34) protected static long nComputeLineBreaks(long nativePtr, char[] text, long measuredTextPtr, int length, float firstWidth, int firstWidthLineCount, float restWidth, float[] variableTabStops, float defaultTabStop, int indentsOffset) -
nGetLineCount
-
nGetLineBreakOffset
-
nGetLineWidth
-
nGetLineAscent
-
nGetLineDescent
-
nGetLineFlag
-
nGetReleaseResultFunc
-