Flutter Engine
The Flutter Engine
|
Classes | |
class | FlutterMutator |
enum | FlutterMutatorType |
Public Member Functions | |
FlutterMutatorsStack () | |
void | pushTransform (float[] values) |
void | pushClipRect (int left, int top, int right, int bottom) |
void | pushClipRRect (int left, int top, int right, int bottom, float[] radiis) |
List< FlutterMutator > | getMutators () |
List< Path > | getFinalClippingPaths () |
Matrix | getFinalMatrix () |
The mutator stack containing a list of mutators
The mutators can be applied to a io.flutter.plugin.platform.PlatformView
to perform a series mutations. See FlutterMutatorsStack.FlutterMutator
for informations on Mutators.
Definition at line 24 of file FlutterMutatorsStack.java.
|
inline |
Initialize the mutator stack.
Definition at line 139 of file FlutterMutatorsStack.java.
|
inline |
Get a list of all the clipping operations. All the clipping operations – whether it is clip rect, clip rrect, or clip path – are converted into Paths. The paths are also transformed with the matrix that up to their stack positions. For example: If the stack looks like (from top to bottom): TransA -> ClipA -> TransB -> ClipB, the final paths will look like [TransA*ClipA, TransA*TransB*ClipB].
Clipping this list to the parent canvas of a view results the final clipping path.
Definition at line 206 of file FlutterMutatorsStack.java.
|
inline |
Returns the final matrix. Apply this matrix to the canvas of a view results the final transformation of the view.
Definition at line 214 of file FlutterMutatorsStack.java.
|
inline |
Get a list of all the raw mutators. The 0 index of the returned list is the top of the stack.
Definition at line 193 of file FlutterMutatorsStack.java.
|
inline |
Push a clipRect FlutterMutatorsStack.FlutterMutator
to the stack.
Definition at line 160 of file FlutterMutatorsStack.java.
|
inline |
Push a clipRRect FlutterMutatorsStack.FlutterMutator
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. |
Definition at line 180 of file FlutterMutatorsStack.java.
|
inline |
Push a transform FlutterMutatorsStack.FlutterMutator
to the stack.
values | the transform matrix to be pushed to the stack. The array matches how a android.graphics.Matrix is constructed. |
Definition at line 151 of file FlutterMutatorsStack.java.