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 forLineBreakerthat is backed by native code
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShadowNativeLineBreaker.PickerShadow picker forLineBreaker.
-
Constructor Summary
Constructors Constructor Description ShadowNativeLineBreaker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected 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 longnGetReleaseFunc()protected static longnGetReleaseResultFunc()protected static longnInit(int breakStrategy, int hyphenationFrequency, boolean isJustified, int[] indents)
-
-
-
Method Detail
-
nInit
@Implementation protected static long nInit(int breakStrategy, int hyphenationFrequency, boolean isJustified, int[] indents)
-
nGetReleaseFunc
@Implementation protected static long 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
@Implementation protected static int nGetLineCount(long ptr)
-
nGetLineBreakOffset
@Implementation protected static int nGetLineBreakOffset(long ptr, int idx)
-
nGetLineWidth
@Implementation protected static float nGetLineWidth(long ptr, int idx)
-
nGetLineAscent
@Implementation protected static float nGetLineAscent(long ptr, int idx)
-
nGetLineDescent
@Implementation protected static float nGetLineDescent(long ptr, int idx)
-
nGetLineFlag
@Implementation protected static int nGetLineFlag(long ptr, int idx)
-
nGetReleaseResultFunc
@Implementation protected static long nGetReleaseResultFunc()
-
-