Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
io.flutter.embedding.engine.mutatorsstack.FlutterMutatorsStack.FlutterMutator Class Reference

Public Member Functions

 FlutterMutator (Rect rect)
 
 FlutterMutator (Rect rect, float[] radiis)
 
 FlutterMutator (Path path)
 
 FlutterMutator (Matrix matrix)
 
FlutterMutatorType getType ()
 
Rect getRect ()
 
Path getPath ()
 
Matrix getMatrix ()
 

Detailed Description

A class represents a mutator

A mutator contains information of a single mutation operation that can be applied to a io.flutter.plugin.platform.PlatformView. See FlutterMutatorsStack.FlutterMutator for informations on Mutators.

Definition at line 44 of file FlutterMutatorsStack.java.

Constructor & Destructor Documentation

◆ FlutterMutator() [1/4]

io.flutter.embedding.engine.mutatorsstack.FlutterMutatorsStack.FlutterMutator.FlutterMutator ( Rect  rect)
inline

Initialize a clip rect mutator.

Parameters
rectthe rect to be clipped.

Definition at line 58 of file FlutterMutatorsStack.java.

58 {
59 this.type = FlutterMutatorType.CLIP_RECT;
60 this.rect = rect;
61 }

◆ FlutterMutator() [2/4]

io.flutter.embedding.engine.mutatorsstack.FlutterMutatorsStack.FlutterMutator.FlutterMutator ( Rect  rect,
float[]  radiis 
)
inline

Initialize a clip rrect mutator.

Parameters
rectthe rect of the rrect
radiisthe radiis of the rrect. Array of 8 values, 4 pairs of [X,Y]. This value cannot be null.

Definition at line 70 of file FlutterMutatorsStack.java.

70 {
71 this.type = FlutterMutatorType.CLIP_RRECT;
72 this.rect = rect;
73 this.radiis = radiis;
74 }

◆ FlutterMutator() [3/4]

io.flutter.embedding.engine.mutatorsstack.FlutterMutatorsStack.FlutterMutator.FlutterMutator ( Path  path)
inline

Initialize a clip path mutator.

Parameters
paththe path to be clipped.

Definition at line 81 of file FlutterMutatorsStack.java.

81 {
82 this.type = FlutterMutatorType.CLIP_PATH;
83 this.path = path;
84 }

◆ FlutterMutator() [4/4]

io.flutter.embedding.engine.mutatorsstack.FlutterMutatorsStack.FlutterMutator.FlutterMutator ( Matrix  matrix)
inline

Initialize a transform mutator.

Parameters
matrixthe transform matrix to apply.

Definition at line 91 of file FlutterMutatorsStack.java.

91 {
92 this.type = FlutterMutatorType.TRANSFORM;
93 this.matrix = matrix;
94 }

Member Function Documentation

◆ getMatrix()

Matrix io.flutter.embedding.engine.mutatorsstack.FlutterMutatorsStack.FlutterMutator.getMatrix ( )
inline

Get the matrix of the mutator if the getType() returns FlutterMutatorType.TRANSFORM.

Returns
the matrix if the type is FlutterMutatorType.TRANSFORM; otherwise null.

Definition at line 128 of file FlutterMutatorsStack.java.

128 {
129 return matrix;
130 }

◆ getPath()

Path io.flutter.embedding.engine.mutatorsstack.FlutterMutatorsStack.FlutterMutator.getPath ( )
inline

Get the path of the mutator if the getType() returns FlutterMutatorType.CLIP_PATH.

Returns
the clipping path if the type is FlutterMutatorType.CLIP_PATH; otherwise null.

Definition at line 119 of file FlutterMutatorsStack.java.

119 {
120 return path;
121 }

◆ getRect()

Rect io.flutter.embedding.engine.mutatorsstack.FlutterMutatorsStack.FlutterMutator.getRect ( )
inline

Get the rect of the mutator if the getType() returns FlutterMutatorType.CLIP_RECT.

Returns
the clipping rect if the type is FlutterMutatorType.CLIP_RECT; otherwise null.

Definition at line 110 of file FlutterMutatorsStack.java.

110 {
111 return rect;
112 }

◆ getType()

FlutterMutatorType io.flutter.embedding.engine.mutatorsstack.FlutterMutatorsStack.FlutterMutator.getType ( )
inline

Get the mutator type.

Returns
The type of the mutator.

Definition at line 101 of file FlutterMutatorsStack.java.

101 {
102 return type;
103 }

The documentation for this class was generated from the following file: