public class PromptText
extends java.lang.Object
Constructor and Description |
---|
PromptText() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(float x,
float y)
Does the element contain the point.
|
void |
draw(android.graphics.Canvas canvas)
Draw the element.
|
android.graphics.RectF |
getBounds()
Get the window position for the prompt text.
|
void |
prepare(PromptOptions options,
boolean clipToBounds,
android.graphics.Rect clipBounds)
Recalculates the primary and secondary text positions.
|
void |
update(PromptOptions options,
float revealModifier,
float alphaModifier)
Update the current prompt rendering state based on the prompt options and current reveal & alpha scales.
|
@NonNull public android.graphics.RectF getBounds()
public void prepare(@NonNull PromptOptions options, boolean clipToBounds, @NonNull android.graphics.Rect clipBounds)
public void update(@NonNull PromptOptions options, float revealModifier, float alphaModifier)
options
- The options used to create the prompt.revealModifier
- The current size/revealed scale from 0 - 1.alphaModifier
- The current colour alpha scale from 0 - 1.public void draw(@NonNull android.graphics.Canvas canvas)
canvas
- The canvas to draw to.public boolean contains(float x, float y)
x
- x coordinate.y
- y coordinate.