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