PointerIcon

Class of android.view · PointerIcon.java · Android's reference

public final class PointerIcon implements android.os.Parcelable

A mouse pointer's shape.

Fields

public static final int TYPE_NULL = 0 source
public static final int TYPE_ARROW = 1000 source
public static final int TYPE_HAND = 1002 source
public static final int TYPE_TEXT = 1008 source
public static final int TYPE_CROSSHAIR = 1007 source
public static final int TYPE_DEFAULT = TYPE_ARROW source

Methods

public static PointerIcon getSystemIcon(android.content.Context context, int type) source
public static PointerIcon create(android.graphics.Bitmap bitmap, float hotSpotX, float hotSpotY) source
public static PointerIcon load(android.content.res.Resources resources, int resourceId) source

An icon from a pointer-icon resource. Its bitmap is not read: the host shows its arrow.

public int getType() source
public boolean equals(Object o) source
public int hashCode() source
public int describeContents() source
public void writeToParcel(android.os.Parcel dest, int flags) source

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.