public class CirclePromptBackground extends PromptBackground
PromptBackground
implementation that renders the prompt background as a circle.Constructor and Description |
---|
CirclePromptBackground()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(float x,
float y) |
void |
draw(android.graphics.Canvas canvas) |
void |
prepare(PromptOptions options,
boolean clipToBounds,
android.graphics.Rect clipBounds)
Prepares the background for drawing.
|
void |
setColour(int colour)
Sets the colour to use for the background.
|
void |
update(PromptOptions options,
float revealModifier,
float alphaModifier) |
public void setColour(int colour)
PromptBackground
setColour
in class PromptBackground
colour
- Colour integer representing the colour.public void prepare(@NonNull PromptOptions options, boolean clipToBounds, @NonNull android.graphics.Rect clipBounds)
PromptBackground
prepare
in class PromptBackground
options
- The options from which the prompt was created.clipToBounds
- Should the prompt be clipped to the supplied clipBounds.clipBounds
- The bounds to clip the drawing to.public void update(@NonNull PromptOptions options, float revealModifier, float alphaModifier)
public void draw(@NonNull android.graphics.Canvas canvas)
public boolean contains(float x, float y)