Paint

Page 1 2 3 4

public float run(char[] text, int start, int count, int ctxStart, int ctxEnd, boolean rtl, float[] advances, int advIndex) source

The run text[start, start + count) shaped in its context: its advances per char into advances.

public float measureText(char[] text, int index, int count) source
public float measureText(String text, int start, int end) source
public float measureText(String text) source
public float measureText(CharSequence text, int start, int end) source
public int getTextWidths(char[] text, int index, int count, float[] widths) source
public int getTextWidths(CharSequence text, int start, int end, float[] widths) source
public int getTextWidths(String text, int start, int end, float[] widths) source
public int getTextWidths(String text, float[] widths) source
public float getTextRunAdvances(char[] chars, int index, int count, int contextIndex, int contextCount, boolean isRtl, float[] advances, int advancesIndex) source
public float getTextRunAdvances(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float[] advances, int advancesIndex) source
public float getRunAdvance(char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) source
public float getRunAdvance(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset) source
public float getRunCharacterAdvance(char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, int offset, float[] advances, int advancesIndex) source
public int getOffsetForAdvance(char[] text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) source
public int getOffsetForAdvance(CharSequence text, int start, int end, int contextStart, int contextEnd, boolean isRtl, float advance) source
public int getTextRunCursor(char[] text, int contextStart, int contextLength, boolean isRtl, int offset, int cursorOpt) source
public int getTextRunCursor(CharSequence text, int contextStart, int contextEnd, boolean isRtl, int offset, int cursorOpt) source
public int breakText(char[] text, int index, int count, float maxWidth, float[] measuredWidth) source
public int breakText(CharSequence text, int start, int end, boolean measureForwards, float maxWidth, float[] measuredWidth) source
public int breakText(String text, boolean measureForwards, float maxWidth, float[] measuredWidth) source
public void getTextBounds(char[] text, int index, int count, Rect bounds) source
public void getTextBounds(String text, int start, int end, Rect bounds) source
public void getTextBounds(CharSequence text, int start, int end, Rect bounds) source
public void getTextPath(char[] text, int index, int count, float x, float y, Path path) source
public void getTextPath(String text, int start, int end, float x, float y, Path path) source
public boolean hasGlyph(String string) source
public float getUnderlinePositionInternal() source

The display list

public void write(DisplayList.Writer w) source

The paint into a display list: the fields the renderer reads (docs/platforms/android-apps/hwui.md).

public boolean nothingToDraw() source

Whether a draw with the paint shows nothing (transparent, no shader or filter, source-over).

Page 1 2 3 4


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.