/// /// Insets.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.unistyles import androidx.annotation.Keep import com.facebook.proguard.annotations.DoNotStrip import java.util.Objects /** * Represents the JavaScript object/struct "Insets". */ @DoNotStrip @Keep data class Insets( @DoNotStrip @Keep val top: Double, @DoNotStrip @Keep val bottom: Double, @DoNotStrip @Keep val left: Double, @DoNotStrip @Keep val right: Double, @DoNotStrip @Keep val ime: Double ) { /* primary constructor */ override fun equals(other: Any?): Boolean { if (this === other) return true if (other !is Insets) return false return Objects.deepEquals(this.top, other.top) && Objects.deepEquals(this.bottom, other.bottom) && Objects.deepEquals(this.left, other.left) && Objects.deepEquals(this.right, other.right) && Objects.deepEquals(this.ime, other.ime) } override fun hashCode(): Int { return arrayOf( top, bottom, left, right, ime ).contentDeepHashCode() } companion object { /** * Constructor called from C++ */ @DoNotStrip @Keep @Suppress("unused") @JvmStatic private fun fromCpp(top: Double, bottom: Double, left: Double, right: Double, ime: Double): Insets { return Insets(top, bottom, left, right, ime) } } }