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: Op
Region.Op variable that is used in android.graphics.Canvas.clipPath in the EasyRevealLayouts
path var path: Path
Path 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): Path
Generate the Path for the percent value to be applied in the view.

Inheritors

Name Summary
CircularClipPathProvider class CircularClipPathProvider : ClipPathProvider
ClipPathProvider which provides Circular path.
LinearClipPathProvider class LinearClipPathProvider : ClipPathProvider
ClipPathProvider which provides a Rectangular path used to clip the view in a singular direction.
RandomLineClipPathProvider class RandomLineClipPathProvider : ClipPathProvider
ClipPathProvider which provides path which consists of random strips of rectangles (AKA, lines).
StarClipPathProvider class StarClipPathProvider : ClipPathProvider
ClipPathProvider which provides a Star shaped path.
SweepClipPathProvider class SweepClipPathProvider : ClipPathProvider
ClipPathProvider which provides a Sweep type path, which is basically a circular segment.
WaveClipPathProvider class WaveClipPathProvider : ClipPathProvider
ClipPathProvider 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.