Cursor Enum

Definition

public enum Cursor
type Cursor = 
Inheritance
Cursor

Fields

Name Value Description
After 0

Option for getTextRunCursor. Compute the valid cursor after offset or the limit of the context, whichever is less.

Android reference for android.graphics.Paint.CURSOR_AFTER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

AtOrAfter 1

Option for getTextRunCursor. Compute the valid cursor at or after the offset or the limit of the context, whichever is less.

Android reference for android.graphics.Paint.CURSOR_AT_OR_AFTER.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Before 2

Option for getTextRunCursor. Compute the valid cursor before offset or the start of the context, whichever is greater.

Android reference for android.graphics.Paint.CURSOR_BEFORE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

AtOrBefore 3

Option for getTextRunCursor. Compute the valid cursor at or before offset or the start of the context, whichever is greater.

Android reference for android.graphics.Paint.CURSOR_AT_OR_BEFORE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

At 4

Option for getTextRunCursor. Return offset if the cursor at offset is valid, or -1 if it isn't.

Android reference for android.graphics.Paint.CURSOR_AT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to