{-# language CPP #-}
module OpenXR.Core10.Enums.ReferenceSpaceType (ReferenceSpaceType( REFERENCE_SPACE_TYPE_VIEW
, REFERENCE_SPACE_TYPE_LOCAL
, REFERENCE_SPACE_TYPE_STAGE
, REFERENCE_SPACE_TYPE_UNBOUNDED_MSFT
, ..
)) where
import OpenXR.Internal.Utils (enumReadPrec)
import OpenXR.Internal.Utils (enumShowsPrec)
import GHC.Show (showsPrec)
import OpenXR.Zero (Zero)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
newtype ReferenceSpaceType = ReferenceSpaceType Int32
deriving newtype (ReferenceSpaceType -> ReferenceSpaceType -> Bool
(ReferenceSpaceType -> ReferenceSpaceType -> Bool)
-> (ReferenceSpaceType -> ReferenceSpaceType -> Bool)
-> Eq ReferenceSpaceType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
$c/= :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
== :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
$c== :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
Eq, Eq ReferenceSpaceType
Eq ReferenceSpaceType =>
(ReferenceSpaceType -> ReferenceSpaceType -> Ordering)
-> (ReferenceSpaceType -> ReferenceSpaceType -> Bool)
-> (ReferenceSpaceType -> ReferenceSpaceType -> Bool)
-> (ReferenceSpaceType -> ReferenceSpaceType -> Bool)
-> (ReferenceSpaceType -> ReferenceSpaceType -> Bool)
-> (ReferenceSpaceType -> ReferenceSpaceType -> ReferenceSpaceType)
-> (ReferenceSpaceType -> ReferenceSpaceType -> ReferenceSpaceType)
-> Ord ReferenceSpaceType
ReferenceSpaceType -> ReferenceSpaceType -> Bool
ReferenceSpaceType -> ReferenceSpaceType -> Ordering
ReferenceSpaceType -> ReferenceSpaceType -> ReferenceSpaceType
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ReferenceSpaceType -> ReferenceSpaceType -> ReferenceSpaceType
$cmin :: ReferenceSpaceType -> ReferenceSpaceType -> ReferenceSpaceType
max :: ReferenceSpaceType -> ReferenceSpaceType -> ReferenceSpaceType
$cmax :: ReferenceSpaceType -> ReferenceSpaceType -> ReferenceSpaceType
>= :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
$c>= :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
> :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
$c> :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
<= :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
$c<= :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
< :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
$c< :: ReferenceSpaceType -> ReferenceSpaceType -> Bool
compare :: ReferenceSpaceType -> ReferenceSpaceType -> Ordering
$ccompare :: ReferenceSpaceType -> ReferenceSpaceType -> Ordering
$cp1Ord :: Eq ReferenceSpaceType
Ord, Ptr b -> Int -> IO ReferenceSpaceType
Ptr b -> Int -> ReferenceSpaceType -> IO ()
Ptr ReferenceSpaceType -> IO ReferenceSpaceType
Ptr ReferenceSpaceType -> Int -> IO ReferenceSpaceType
Ptr ReferenceSpaceType -> Int -> ReferenceSpaceType -> IO ()
Ptr ReferenceSpaceType -> ReferenceSpaceType -> IO ()
ReferenceSpaceType -> Int
(ReferenceSpaceType -> Int)
-> (ReferenceSpaceType -> Int)
-> (Ptr ReferenceSpaceType -> Int -> IO ReferenceSpaceType)
-> (Ptr ReferenceSpaceType -> Int -> ReferenceSpaceType -> IO ())
-> (forall b. Ptr b -> Int -> IO ReferenceSpaceType)
-> (forall b. Ptr b -> Int -> ReferenceSpaceType -> IO ())
-> (Ptr ReferenceSpaceType -> IO ReferenceSpaceType)
-> (Ptr ReferenceSpaceType -> ReferenceSpaceType -> IO ())
-> Storable ReferenceSpaceType
forall b. Ptr b -> Int -> IO ReferenceSpaceType
forall b. Ptr b -> Int -> ReferenceSpaceType -> IO ()
forall a.
(a -> Int)
-> (a -> Int)
-> (Ptr a -> Int -> IO a)
-> (Ptr a -> Int -> a -> IO ())
-> (forall b. Ptr b -> Int -> IO a)
-> (forall b. Ptr b -> Int -> a -> IO ())
-> (Ptr a -> IO a)
-> (Ptr a -> a -> IO ())
-> Storable a
poke :: Ptr ReferenceSpaceType -> ReferenceSpaceType -> IO ()
$cpoke :: Ptr ReferenceSpaceType -> ReferenceSpaceType -> IO ()
peek :: Ptr ReferenceSpaceType -> IO ReferenceSpaceType
$cpeek :: Ptr ReferenceSpaceType -> IO ReferenceSpaceType
pokeByteOff :: Ptr b -> Int -> ReferenceSpaceType -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ReferenceSpaceType -> IO ()
peekByteOff :: Ptr b -> Int -> IO ReferenceSpaceType
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ReferenceSpaceType
pokeElemOff :: Ptr ReferenceSpaceType -> Int -> ReferenceSpaceType -> IO ()
$cpokeElemOff :: Ptr ReferenceSpaceType -> Int -> ReferenceSpaceType -> IO ()
peekElemOff :: Ptr ReferenceSpaceType -> Int -> IO ReferenceSpaceType
$cpeekElemOff :: Ptr ReferenceSpaceType -> Int -> IO ReferenceSpaceType
alignment :: ReferenceSpaceType -> Int
$calignment :: ReferenceSpaceType -> Int
sizeOf :: ReferenceSpaceType -> Int
$csizeOf :: ReferenceSpaceType -> Int
Storable, ReferenceSpaceType
ReferenceSpaceType -> Zero ReferenceSpaceType
forall a. a -> Zero a
zero :: ReferenceSpaceType
$czero :: ReferenceSpaceType
Zero)
pattern $bREFERENCE_SPACE_TYPE_VIEW :: ReferenceSpaceType
$mREFERENCE_SPACE_TYPE_VIEW :: forall r. ReferenceSpaceType -> (Void# -> r) -> (Void# -> r) -> r
REFERENCE_SPACE_TYPE_VIEW = ReferenceSpaceType 1
pattern $bREFERENCE_SPACE_TYPE_LOCAL :: ReferenceSpaceType
$mREFERENCE_SPACE_TYPE_LOCAL :: forall r. ReferenceSpaceType -> (Void# -> r) -> (Void# -> r) -> r
REFERENCE_SPACE_TYPE_LOCAL = ReferenceSpaceType 2
pattern $bREFERENCE_SPACE_TYPE_STAGE :: ReferenceSpaceType
$mREFERENCE_SPACE_TYPE_STAGE :: forall r. ReferenceSpaceType -> (Void# -> r) -> (Void# -> r) -> r
REFERENCE_SPACE_TYPE_STAGE = ReferenceSpaceType 3
pattern $bREFERENCE_SPACE_TYPE_UNBOUNDED_MSFT :: ReferenceSpaceType
$mREFERENCE_SPACE_TYPE_UNBOUNDED_MSFT :: forall r. ReferenceSpaceType -> (Void# -> r) -> (Void# -> r) -> r
REFERENCE_SPACE_TYPE_UNBOUNDED_MSFT = ReferenceSpaceType 1000038000
{-# complete REFERENCE_SPACE_TYPE_VIEW,
REFERENCE_SPACE_TYPE_LOCAL,
REFERENCE_SPACE_TYPE_STAGE,
REFERENCE_SPACE_TYPE_UNBOUNDED_MSFT :: ReferenceSpaceType #-}
conNameReferenceSpaceType :: String
conNameReferenceSpaceType :: String
conNameReferenceSpaceType = "ReferenceSpaceType"
enumPrefixReferenceSpaceType :: String
enumPrefixReferenceSpaceType :: String
enumPrefixReferenceSpaceType = "REFERENCE_SPACE_TYPE_"
showTableReferenceSpaceType :: [(ReferenceSpaceType, String)]
showTableReferenceSpaceType :: [(ReferenceSpaceType, String)]
showTableReferenceSpaceType =
[ (ReferenceSpaceType
REFERENCE_SPACE_TYPE_VIEW , "VIEW")
, (ReferenceSpaceType
REFERENCE_SPACE_TYPE_LOCAL , "LOCAL")
, (ReferenceSpaceType
REFERENCE_SPACE_TYPE_STAGE , "STAGE")
, (ReferenceSpaceType
REFERENCE_SPACE_TYPE_UNBOUNDED_MSFT, "UNBOUNDED_MSFT")
]
instance Show ReferenceSpaceType where
showsPrec :: Int -> ReferenceSpaceType -> ShowS
showsPrec = String
-> [(ReferenceSpaceType, String)]
-> String
-> (ReferenceSpaceType -> Int32)
-> (Int32 -> ShowS)
-> Int
-> ReferenceSpaceType
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixReferenceSpaceType
[(ReferenceSpaceType, String)]
showTableReferenceSpaceType
String
conNameReferenceSpaceType
(\(ReferenceSpaceType x :: Int32
x) -> Int32
x)
(Int -> Int32 -> ShowS
forall a. Show a => Int -> a -> ShowS
showsPrec 11)
instance Read ReferenceSpaceType where
readPrec :: ReadPrec ReferenceSpaceType
readPrec =
String
-> [(ReferenceSpaceType, String)]
-> String
-> (Int32 -> ReferenceSpaceType)
-> ReadPrec ReferenceSpaceType
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixReferenceSpaceType [(ReferenceSpaceType, String)]
showTableReferenceSpaceType String
conNameReferenceSpaceType Int32 -> ReferenceSpaceType
ReferenceSpaceType