/// /// ThorShape.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © Marc Rousavy @ Margelo /// package com.margelo.nitro.thor import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "ThorShape". */ @DoNotStrip @Keep data class ThorShape( @DoNotStrip @Keep val type: ThorShapeType, @DoNotStrip @Keep val fill: String?, @DoNotStrip @Keep val stroke: String?, @DoNotStrip @Keep val strokeWidth: Double?, @DoNotStrip @Keep val x: Double?, @DoNotStrip @Keep val y: Double?, @DoNotStrip @Keep val width: Double?, @DoNotStrip @Keep val height: Double?, @DoNotStrip @Keep val rx: Double?, @DoNotStrip @Keep val ry: Double?, @DoNotStrip @Keep val cx: Double?, @DoNotStrip @Keep val cy: Double?, @DoNotStrip @Keep val radius: Double?, @DoNotStrip @Keep val x1: Double?, @DoNotStrip @Keep val y1: Double?, @DoNotStrip @Keep val x2: Double?, @DoNotStrip @Keep val y2: Double?, @DoNotStrip @Keep val points: DoubleArray?, @DoNotStrip @Keep val closed: Boolean? ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is ThorShape) return false return Objects.deepEquals(this.type, other.type) && Objects.deepEquals(this.fill, other.fill) && Objects.deepEquals(this.stroke, other.stroke) && Objects.deepEquals(this.strokeWidth, other.strokeWidth) && Objects.deepEquals(this.x, other.x) && Objects.deepEquals(this.y, other.y) && Objects.deepEquals(this.width, other.width) && Objects.deepEquals(this.height, other.height) && Objects.deepEquals(this.rx, other.rx) && Objects.deepEquals(this.ry, other.ry) && Objects.deepEquals(this.cx, other.cx) && Objects.deepEquals(this.cy, other.cy) && Objects.deepEquals(this.radius, other.radius) && Objects.deepEquals(this.x1, other.x1) && Objects.deepEquals(this.y1, other.y1) && Objects.deepEquals(this.x2, other.x2) && Objects.deepEquals(this.y2, other.y2) && Objects.deepEquals(this.points, other.points) && Objects.deepEquals(this.closed, other.closed) } override fun hashCode(): Int { return arrayOf( type, fill, stroke, strokeWidth, x, y, width, height, rx, ry, cx, cy, radius, x1, y1, x2, y2, points, closed ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(type: ThorShapeType, fill: String?, stroke: String?, strokeWidth: Double?, x: Double?, y: Double?, width: Double?, height: Double?, rx: Double?, ry: Double?, cx: Double?, cy: Double?, radius: Double?, x1: Double?, y1: Double?, x2: Double?, y2: Double?, points: DoubleArray?, closed: Boolean?): ThorShape { return ThorShape(type, fill, stroke, strokeWidth, x, y, width, height, rx, ry, cx, cy, radius, x1, y1, x2, y2, points, closed) } } }