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