public class FlutterMutatorsStack extends Object
The mutators can be applied to a PlatformView
to perform a
series mutations. See io.flutter.embedding.engine.mutatorsstack.Mutator
for informations
on Mutators.
Modifier and Type | Class and Description |
---|---|
class |
FlutterMutatorsStack.FlutterMutator
A class represents a mutator
|
static class |
FlutterMutatorsStack.FlutterMutatorType
The type of a Mutator See
io.flutter.embedding.engine.mutatorsstack.Mutator for
informations on Mutators. |
Constructor and Description |
---|
FlutterMutatorsStack()
Initialize the mutator stack.
|
Modifier and Type | Method and Description |
---|---|
List<Path> |
getFinalClippingPaths()
Get a list of all the clipping operations.
|
Matrix |
getFinalMatrix()
Returns the final matrix.
|
List<FlutterMutatorsStack.FlutterMutator> |
getMutators()
Get a list of all the raw mutators.
|
void |
pushClipRect(int left,
int top,
int right,
int bottom)
Push a clipRect
io.flutter.embedding.engine.mutatorsstack.Mutator to the stack. |
void |
pushClipRRect(int left,
int top,
int right,
int bottom,
float[] radiis)
Push a clipRRect
io.flutter.embedding.engine.mutatorsstack.Mutator to the stack. |
void |
pushTransform(float[] values)
Push a transform
io.flutter.embedding.engine.mutatorsstack.Mutator to the stack. |
public void pushTransform(float[] values)
io.flutter.embedding.engine.mutatorsstack.Mutator
to the stack.values
- the transform matrix to be pushed to the stack. The array matches how a Matrix
is constructed.public void pushClipRect(int left, int top, int right, int bottom)
io.flutter.embedding.engine.mutatorsstack.Mutator
to the stack.public void pushClipRRect(int left, int top, int right, int bottom, float[] radiis)
io.flutter.embedding.engine.mutatorsstack.Mutator
to the stack.left
- left offset of the rrect.top
- top offset of the rrect.right
- right position of the rrect.bottom
- bottom position of the rrect.radiis
- the radiis of the rrect. It must be size of 8, including an x and y for each
corner.public List<FlutterMutatorsStack.FlutterMutator> getMutators()
public List<Path> getFinalClippingPaths()
Clipping this list to the parent canvas of a view results the final clipping path.
public Matrix getFinalMatrix()