Outline

Class of android.graphics · Outline.java · Android's reference

public final class Outline

A view's shape for its shadow and its clip: a rectangle with a radius, an oval or a path.

Fields

public static final int MODE_EMPTY = 0 source
public static final int MODE_ROUND_RECT = 1 source
public static final int MODE_PATH = 2 source
public int mMode source
public final Rect mRect source
public float mRadius source
public Path mPath source
public float mAlpha source

Constructors

public Outline() empty body source
public Outline(Outline src) source

Methods

public void setEmpty() source
public boolean isEmpty() source
public boolean canClip() source
public void setAlpha(float alpha) source
public float getAlpha() source
public void set(Outline src) source
public void setRect(int left, int top, int right, int bottom) source
public void setRect(Rect r) source
public void setRoundRect(int left, int top, int right, int bottom, float radius) source
public void setRoundRect(Rect r, float radius) source
public boolean getRect(Rect outRect) source
public float getRadius() source
public void setOval(int left, int top, int right, int bottom) source
public void setOval(Rect r) source
public void setPath(Path path) source
public void setConvexPath(Path convexPath) deprecated source
public void offset(int dx, int dy) 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.