easyreveal / com.jem.easyreveal / ClipPathProvider
ClipPathProvider
abstract class ClipPathProvider
Abstract class that should be extended by other ClipPathProvider classes.
Constructors
| Name | Summary |
|---|---|
| <init> | ClipPathProvider()Abstract class that should be extended by other ClipPathProvider classes. |
Properties
| Name | Summary |
|---|---|
| op | var op: OpRegion.Op variable that is used in android.graphics.Canvas.clipPath in the EasyRevealLayouts |
| path | var path: PathPath variable that should be used to make the path to be returned in getPath function. |
Functions
| Name | Summary |
|---|---|
| getPath | abstract fun getPath(percent: Float, view: View): PathGenerate the Path for the percent value to be applied in the view. |
Inheritors
| Name | Summary |
|---|---|
| CircularClipPathProvider | class CircularClipPathProvider : ClipPathProviderClipPathProvider which provides Circular path. |
| LinearClipPathProvider | class LinearClipPathProvider : ClipPathProviderClipPathProvider which provides a Rectangular path used to clip the view in a singular direction. |
| RandomLineClipPathProvider | class RandomLineClipPathProvider : ClipPathProviderClipPathProvider which provides path which consists of random strips of rectangles (AKA, lines). |
| StarClipPathProvider | class StarClipPathProvider : ClipPathProviderClipPathProvider which provides a Star shaped path. |
| SweepClipPathProvider | class SweepClipPathProvider : ClipPathProviderClipPathProvider which provides a Sweep type path, which is basically a circular segment. |
| WaveClipPathProvider | class WaveClipPathProvider : ClipPathProviderClipPathProvider which provides Wave shaped paths which are flatter when percent is closer to 0 or 100, and are at max height when closer to 50. |