Class

PathFillType

Determines the winding rule that decides how the interior of a Path is calculated.

Source set: Common
public class PathFillType internal constructor(@Suppress("unused") private val value: Int)

Determines the winding rule that decides how the interior of a Path is calculated.

This enum is used by the Path.fillType property.

Functions

toString

Source set: Common
override fun toString(): String

Members

Companion

Source set: Common
public companion object

Properties

NonZero

Source set: Common
public val NonZero: PathFillType

The interior is defined by a non-zero sum of signed edge crossings.

For a given point, the point is considered to be on the inside of the path if a line drawn from the point to infinity crosses lines going clockwise around the point a different number of times than it crosses lines going counter-clockwise around that point.

See: <https://en.wikipedia.org/wiki/Nonzero-rule>

EvenOdd

Source set: Common
public val EvenOdd: PathFillType

The interior is defined by an odd number of edge crossings.

For a given point, the point is considered to be on the inside of the path if a line drawn from the point to infinity crosses an odd number of lines.

See: <https://en.wikipedia.org/wiki/Even-odd_rule>

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: