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)
public class ShadowNativeLineBreaker
extends Object
Shadow for
LineBreaker
that is backed by native code-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static long
nComputeLineBreaks
(long nativePtr, char[] text, long measuredTextPtr, int length, float firstWidth, int firstWidthLineCount, float restWidth, float[] variableTabStops, float defaultTabStop, int indentsOffset) protected static float
nGetLineAscent
(long ptr, int idx) protected static int
nGetLineBreakOffset
(long ptr, int idx) protected static int
nGetLineCount
(long ptr) protected static float
nGetLineDescent
(long ptr, int idx) protected static int
nGetLineFlag
(long ptr, int idx) protected static float
nGetLineWidth
(long ptr, int idx) protected static long
protected static long
protected static long
nInit
(int breakStrategy, int hyphenationFrequency, boolean isJustified, int[] indents) protected static long
nInit
(int breakStrategy, int hyphenationFrequency, boolean isJustified, int[] indents, boolean useBoundsForWidth)
-
Constructor Details
-
ShadowNativeLineBreaker
public ShadowNativeLineBreaker()
-
-
Method Details
-
nInit
@Implementation(maxSdk=34) protected static long nInit(int breakStrategy, int hyphenationFrequency, boolean isJustified, int[] indents) -
nInit
@Implementation(minSdk=35) protected static long nInit(int breakStrategy, int hyphenationFrequency, boolean isJustified, int[] indents, boolean useBoundsForWidth) -
nGetReleaseFunc
-
nComputeLineBreaks
@Implementation 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
-