{-# language CPP #-}
-- No documentation found for Chapter "ViewStateFlags"
module OpenXR.Core10.Enums.ViewStateFlags  (ViewStateFlags(..)) where

import OpenXR.Internal.Utils (enumReadPrec)
import OpenXR.Internal.Utils (enumShowsPrec)
import GHC.Show (showString)
import Numeric (showHex)
import OpenXR.Zero (Zero)
import Data.Bits (Bits)
import Data.Bits (FiniteBits)
import Foreign.Storable (Storable)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
import OpenXR.Core10.FundamentalTypes (Flags64)
-- | XrViewStateFlags - View state flags
--
-- == Flag Descriptions
--
-- = See Also
--
-- 'OpenXR.Core10.DisplayTiming.View',
-- 'OpenXR.Core10.DisplayTiming.ViewState',
-- 'OpenXR.Core10.DisplayTiming.locateViews'
newtype ViewStateFlags = ViewStateFlags Flags64
  deriving newtype (ViewStateFlags -> ViewStateFlags -> Bool
(ViewStateFlags -> ViewStateFlags -> Bool)
-> (ViewStateFlags -> ViewStateFlags -> Bool) -> Eq ViewStateFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ViewStateFlags -> ViewStateFlags -> Bool
$c/= :: ViewStateFlags -> ViewStateFlags -> Bool
== :: ViewStateFlags -> ViewStateFlags -> Bool
$c== :: ViewStateFlags -> ViewStateFlags -> Bool
Eq, Eq ViewStateFlags
Eq ViewStateFlags =>
(ViewStateFlags -> ViewStateFlags -> Ordering)
-> (ViewStateFlags -> ViewStateFlags -> Bool)
-> (ViewStateFlags -> ViewStateFlags -> Bool)
-> (ViewStateFlags -> ViewStateFlags -> Bool)
-> (ViewStateFlags -> ViewStateFlags -> Bool)
-> (ViewStateFlags -> ViewStateFlags -> ViewStateFlags)
-> (ViewStateFlags -> ViewStateFlags -> ViewStateFlags)
-> Ord ViewStateFlags
ViewStateFlags -> ViewStateFlags -> Bool
ViewStateFlags -> ViewStateFlags -> Ordering
ViewStateFlags -> ViewStateFlags -> ViewStateFlags
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 :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
$cmin :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
max :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
$cmax :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
>= :: ViewStateFlags -> ViewStateFlags -> Bool
$c>= :: ViewStateFlags -> ViewStateFlags -> Bool
> :: ViewStateFlags -> ViewStateFlags -> Bool
$c> :: ViewStateFlags -> ViewStateFlags -> Bool
<= :: ViewStateFlags -> ViewStateFlags -> Bool
$c<= :: ViewStateFlags -> ViewStateFlags -> Bool
< :: ViewStateFlags -> ViewStateFlags -> Bool
$c< :: ViewStateFlags -> ViewStateFlags -> Bool
compare :: ViewStateFlags -> ViewStateFlags -> Ordering
$ccompare :: ViewStateFlags -> ViewStateFlags -> Ordering
$cp1Ord :: Eq ViewStateFlags
Ord, Ptr b -> Int -> IO ViewStateFlags
Ptr b -> Int -> ViewStateFlags -> IO ()
Ptr ViewStateFlags -> IO ViewStateFlags
Ptr ViewStateFlags -> Int -> IO ViewStateFlags
Ptr ViewStateFlags -> Int -> ViewStateFlags -> IO ()
Ptr ViewStateFlags -> ViewStateFlags -> IO ()
ViewStateFlags -> Int
(ViewStateFlags -> Int)
-> (ViewStateFlags -> Int)
-> (Ptr ViewStateFlags -> Int -> IO ViewStateFlags)
-> (Ptr ViewStateFlags -> Int -> ViewStateFlags -> IO ())
-> (forall b. Ptr b -> Int -> IO ViewStateFlags)
-> (forall b. Ptr b -> Int -> ViewStateFlags -> IO ())
-> (Ptr ViewStateFlags -> IO ViewStateFlags)
-> (Ptr ViewStateFlags -> ViewStateFlags -> IO ())
-> Storable ViewStateFlags
forall b. Ptr b -> Int -> IO ViewStateFlags
forall b. Ptr b -> Int -> ViewStateFlags -> 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 ViewStateFlags -> ViewStateFlags -> IO ()
$cpoke :: Ptr ViewStateFlags -> ViewStateFlags -> IO ()
peek :: Ptr ViewStateFlags -> IO ViewStateFlags
$cpeek :: Ptr ViewStateFlags -> IO ViewStateFlags
pokeByteOff :: Ptr b -> Int -> ViewStateFlags -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> ViewStateFlags -> IO ()
peekByteOff :: Ptr b -> Int -> IO ViewStateFlags
$cpeekByteOff :: forall b. Ptr b -> Int -> IO ViewStateFlags
pokeElemOff :: Ptr ViewStateFlags -> Int -> ViewStateFlags -> IO ()
$cpokeElemOff :: Ptr ViewStateFlags -> Int -> ViewStateFlags -> IO ()
peekElemOff :: Ptr ViewStateFlags -> Int -> IO ViewStateFlags
$cpeekElemOff :: Ptr ViewStateFlags -> Int -> IO ViewStateFlags
alignment :: ViewStateFlags -> Int
$calignment :: ViewStateFlags -> Int
sizeOf :: ViewStateFlags -> Int
$csizeOf :: ViewStateFlags -> Int
Storable, ViewStateFlags
ViewStateFlags -> Zero ViewStateFlags
forall a. a -> Zero a
zero :: ViewStateFlags
$czero :: ViewStateFlags
Zero, Eq ViewStateFlags
ViewStateFlags
Eq ViewStateFlags =>
(ViewStateFlags -> ViewStateFlags -> ViewStateFlags)
-> (ViewStateFlags -> ViewStateFlags -> ViewStateFlags)
-> (ViewStateFlags -> ViewStateFlags -> ViewStateFlags)
-> (ViewStateFlags -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> ViewStateFlags
-> (Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> Bool)
-> (ViewStateFlags -> Maybe Int)
-> (ViewStateFlags -> Int)
-> (ViewStateFlags -> Bool)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int -> ViewStateFlags)
-> (ViewStateFlags -> Int)
-> Bits ViewStateFlags
Int -> ViewStateFlags
ViewStateFlags -> Bool
ViewStateFlags -> Int
ViewStateFlags -> Maybe Int
ViewStateFlags -> ViewStateFlags
ViewStateFlags -> Int -> Bool
ViewStateFlags -> Int -> ViewStateFlags
ViewStateFlags -> ViewStateFlags -> ViewStateFlags
forall a.
Eq a =>
(a -> a -> a)
-> (a -> a -> a)
-> (a -> a -> a)
-> (a -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> a
-> (Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> Bool)
-> (a -> Maybe Int)
-> (a -> Int)
-> (a -> Bool)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int -> a)
-> (a -> Int)
-> Bits a
popCount :: ViewStateFlags -> Int
$cpopCount :: ViewStateFlags -> Int
rotateR :: ViewStateFlags -> Int -> ViewStateFlags
$crotateR :: ViewStateFlags -> Int -> ViewStateFlags
rotateL :: ViewStateFlags -> Int -> ViewStateFlags
$crotateL :: ViewStateFlags -> Int -> ViewStateFlags
unsafeShiftR :: ViewStateFlags -> Int -> ViewStateFlags
$cunsafeShiftR :: ViewStateFlags -> Int -> ViewStateFlags
shiftR :: ViewStateFlags -> Int -> ViewStateFlags
$cshiftR :: ViewStateFlags -> Int -> ViewStateFlags
unsafeShiftL :: ViewStateFlags -> Int -> ViewStateFlags
$cunsafeShiftL :: ViewStateFlags -> Int -> ViewStateFlags
shiftL :: ViewStateFlags -> Int -> ViewStateFlags
$cshiftL :: ViewStateFlags -> Int -> ViewStateFlags
isSigned :: ViewStateFlags -> Bool
$cisSigned :: ViewStateFlags -> Bool
bitSize :: ViewStateFlags -> Int
$cbitSize :: ViewStateFlags -> Int
bitSizeMaybe :: ViewStateFlags -> Maybe Int
$cbitSizeMaybe :: ViewStateFlags -> Maybe Int
testBit :: ViewStateFlags -> Int -> Bool
$ctestBit :: ViewStateFlags -> Int -> Bool
complementBit :: ViewStateFlags -> Int -> ViewStateFlags
$ccomplementBit :: ViewStateFlags -> Int -> ViewStateFlags
clearBit :: ViewStateFlags -> Int -> ViewStateFlags
$cclearBit :: ViewStateFlags -> Int -> ViewStateFlags
setBit :: ViewStateFlags -> Int -> ViewStateFlags
$csetBit :: ViewStateFlags -> Int -> ViewStateFlags
bit :: Int -> ViewStateFlags
$cbit :: Int -> ViewStateFlags
zeroBits :: ViewStateFlags
$czeroBits :: ViewStateFlags
rotate :: ViewStateFlags -> Int -> ViewStateFlags
$crotate :: ViewStateFlags -> Int -> ViewStateFlags
shift :: ViewStateFlags -> Int -> ViewStateFlags
$cshift :: ViewStateFlags -> Int -> ViewStateFlags
complement :: ViewStateFlags -> ViewStateFlags
$ccomplement :: ViewStateFlags -> ViewStateFlags
xor :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
$cxor :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
.|. :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
$c.|. :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
.&. :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
$c.&. :: ViewStateFlags -> ViewStateFlags -> ViewStateFlags
$cp1Bits :: Eq ViewStateFlags
Bits, Bits ViewStateFlags
Bits ViewStateFlags =>
(ViewStateFlags -> Int)
-> (ViewStateFlags -> Int)
-> (ViewStateFlags -> Int)
-> FiniteBits ViewStateFlags
ViewStateFlags -> Int
forall b.
Bits b =>
(b -> Int) -> (b -> Int) -> (b -> Int) -> FiniteBits b
countTrailingZeros :: ViewStateFlags -> Int
$ccountTrailingZeros :: ViewStateFlags -> Int
countLeadingZeros :: ViewStateFlags -> Int
$ccountLeadingZeros :: ViewStateFlags -> Int
finiteBitSize :: ViewStateFlags -> Int
$cfiniteBitSize :: ViewStateFlags -> Int
$cp1FiniteBits :: Bits ViewStateFlags
FiniteBits)



conNameViewStateFlags :: String
conNameViewStateFlags :: String
conNameViewStateFlags = "ViewStateFlags"

enumPrefixViewStateFlags :: String
enumPrefixViewStateFlags :: String
enumPrefixViewStateFlags = ""

showTableViewStateFlags :: [(ViewStateFlags, String)]
showTableViewStateFlags :: [(ViewStateFlags, String)]
showTableViewStateFlags = []

instance Show ViewStateFlags where
  showsPrec :: Int -> ViewStateFlags -> ShowS
showsPrec = String
-> [(ViewStateFlags, String)]
-> String
-> (ViewStateFlags -> Flags64)
-> (Flags64 -> ShowS)
-> Int
-> ViewStateFlags
-> ShowS
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec String
enumPrefixViewStateFlags
                            [(ViewStateFlags, String)]
showTableViewStateFlags
                            String
conNameViewStateFlags
                            (\(ViewStateFlags x :: Flags64
x) -> Flags64
x)
                            (\x :: Flags64
x -> String -> ShowS
showString "0x" ShowS -> ShowS -> ShowS
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Flags64 -> ShowS
forall a. (Integral a, Show a) => a -> ShowS
showHex Flags64
x)

instance Read ViewStateFlags where
  readPrec :: ReadPrec ViewStateFlags
readPrec = String
-> [(ViewStateFlags, String)]
-> String
-> (Flags64 -> ViewStateFlags)
-> ReadPrec ViewStateFlags
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec String
enumPrefixViewStateFlags [(ViewStateFlags, String)]
showTableViewStateFlags String
conNameViewStateFlags Flags64 -> ViewStateFlags
ViewStateFlags