package com.isidroid.rendering.constant

import androidx.annotation.IntDef

@Retention(AnnotationRetention.SOURCE)
@IntDef(PrintOrientation.AUTO, PrintOrientation.PORTRAIT, PrintOrientation.LANDSCAPE)
annotation class PrintOrientation {
    companion object {
        const val AUTO = 0
        const val PORTRAIT = 1
        const val LANDSCAPE = 2
    }
}


@PrintOrientation val Int.orientationName
    get() = when (this) {
        PrintOrientation.AUTO -> "AUTO"
        PrintOrientation.PORTRAIT -> "PORTRAIT"
        PrintOrientation.LANDSCAPE -> "LANDSCAPE"
        else -> "UNKNOWN"
    }

