HorizontalLineTo

class HorizontalLineTo(values: List<String>, isRelative: Boolean, minified: Boolean) : PathNodes, CoordinateX(source)

The HorizontalLineTo class represents the SVG/AVG "horizontal line to" command which is used to draw a horizontal line from the current point to a new point.

It's a type of PathNodes which holds SVG/AVG command parameters.

The class contains an overridden materialize function which returns a String representation of the SVG/AVG command in the form required by the Compose path functions.

Constructors

Link copied to clipboard
constructor(values: List<String>, isRelative: Boolean, minified: Boolean)

Properties

Link copied to clipboard
open override val approximateByteSize: Int

Calculates the approximate bytecode size of the path nodes. Accounts for method invocation byte size, float byte sizes, and additional byte size if the path should be closed.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val x: Double

The new x-coordinate to which the line extends.

Functions

Link copied to clipboard
fun copy(x: Double = this.x, isRelative: Boolean = this.isRelative, minified: Boolean = this.minified, shouldClose: Boolean = this.shouldClose): PathNodes.HorizontalLineTo

Creates a copy of this HorizontalLineTo command.

Link copied to clipboard
open fun materialize(): String
Link copied to clipboard
open override fun toString(): String