{-# language CPP #-}
module Vulkan.Core10.Enums.BorderColor (BorderColor( BORDER_COLOR_FLOAT_TRANSPARENT_BLACK
, BORDER_COLOR_INT_TRANSPARENT_BLACK
, BORDER_COLOR_FLOAT_OPAQUE_BLACK
, BORDER_COLOR_INT_OPAQUE_BLACK
, BORDER_COLOR_FLOAT_OPAQUE_WHITE
, BORDER_COLOR_INT_OPAQUE_WHITE
, BORDER_COLOR_INT_CUSTOM_EXT
, BORDER_COLOR_FLOAT_CUSTOM_EXT
, ..
)) where
import Vulkan.Internal.Utils (enumReadPrec)
import Vulkan.Internal.Utils (enumShowsPrec)
import GHC.Show (showsPrec)
import Vulkan.Zero (Zero)
import Foreign.Storable (Storable)
import Data.Int (Int32)
import GHC.Read (Read(readPrec))
import GHC.Show (Show(showsPrec))
newtype BorderColor = BorderColor Int32
deriving newtype (BorderColor -> BorderColor -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BorderColor -> BorderColor -> Bool
$c/= :: BorderColor -> BorderColor -> Bool
== :: BorderColor -> BorderColor -> Bool
$c== :: BorderColor -> BorderColor -> Bool
Eq, Eq BorderColor
BorderColor -> BorderColor -> Bool
BorderColor -> BorderColor -> Ordering
BorderColor -> BorderColor -> BorderColor
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 :: BorderColor -> BorderColor -> BorderColor
$cmin :: BorderColor -> BorderColor -> BorderColor
max :: BorderColor -> BorderColor -> BorderColor
$cmax :: BorderColor -> BorderColor -> BorderColor
>= :: BorderColor -> BorderColor -> Bool
$c>= :: BorderColor -> BorderColor -> Bool
> :: BorderColor -> BorderColor -> Bool
$c> :: BorderColor -> BorderColor -> Bool
<= :: BorderColor -> BorderColor -> Bool
$c<= :: BorderColor -> BorderColor -> Bool
< :: BorderColor -> BorderColor -> Bool
$c< :: BorderColor -> BorderColor -> Bool
compare :: BorderColor -> BorderColor -> Ordering
$ccompare :: BorderColor -> BorderColor -> Ordering
Ord, Ptr BorderColor -> IO BorderColor
Ptr BorderColor -> Int -> IO BorderColor
Ptr BorderColor -> Int -> BorderColor -> IO ()
Ptr BorderColor -> BorderColor -> IO ()
BorderColor -> Int
forall b. Ptr b -> Int -> IO BorderColor
forall b. Ptr b -> Int -> BorderColor -> 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 BorderColor -> BorderColor -> IO ()
$cpoke :: Ptr BorderColor -> BorderColor -> IO ()
peek :: Ptr BorderColor -> IO BorderColor
$cpeek :: Ptr BorderColor -> IO BorderColor
pokeByteOff :: forall b. Ptr b -> Int -> BorderColor -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> BorderColor -> IO ()
peekByteOff :: forall b. Ptr b -> Int -> IO BorderColor
$cpeekByteOff :: forall b. Ptr b -> Int -> IO BorderColor
pokeElemOff :: Ptr BorderColor -> Int -> BorderColor -> IO ()
$cpokeElemOff :: Ptr BorderColor -> Int -> BorderColor -> IO ()
peekElemOff :: Ptr BorderColor -> Int -> IO BorderColor
$cpeekElemOff :: Ptr BorderColor -> Int -> IO BorderColor
alignment :: BorderColor -> Int
$calignment :: BorderColor -> Int
sizeOf :: BorderColor -> Int
$csizeOf :: BorderColor -> Int
Storable, BorderColor
forall a. a -> Zero a
zero :: BorderColor
$czero :: BorderColor
Zero)
pattern $bBORDER_COLOR_FLOAT_TRANSPARENT_BLACK :: BorderColor
$mBORDER_COLOR_FLOAT_TRANSPARENT_BLACK :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = BorderColor 0
pattern $bBORDER_COLOR_INT_TRANSPARENT_BLACK :: BorderColor
$mBORDER_COLOR_INT_TRANSPARENT_BLACK :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_INT_TRANSPARENT_BLACK = BorderColor 1
pattern $bBORDER_COLOR_FLOAT_OPAQUE_BLACK :: BorderColor
$mBORDER_COLOR_FLOAT_OPAQUE_BLACK :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_FLOAT_OPAQUE_BLACK = BorderColor 2
pattern $bBORDER_COLOR_INT_OPAQUE_BLACK :: BorderColor
$mBORDER_COLOR_INT_OPAQUE_BLACK :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_INT_OPAQUE_BLACK = BorderColor 3
pattern $bBORDER_COLOR_FLOAT_OPAQUE_WHITE :: BorderColor
$mBORDER_COLOR_FLOAT_OPAQUE_WHITE :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_FLOAT_OPAQUE_WHITE = BorderColor 4
pattern $bBORDER_COLOR_INT_OPAQUE_WHITE :: BorderColor
$mBORDER_COLOR_INT_OPAQUE_WHITE :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_INT_OPAQUE_WHITE = BorderColor 5
pattern $bBORDER_COLOR_INT_CUSTOM_EXT :: BorderColor
$mBORDER_COLOR_INT_CUSTOM_EXT :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_INT_CUSTOM_EXT = BorderColor 1000287004
pattern $bBORDER_COLOR_FLOAT_CUSTOM_EXT :: BorderColor
$mBORDER_COLOR_FLOAT_CUSTOM_EXT :: forall {r}. BorderColor -> ((# #) -> r) -> ((# #) -> r) -> r
BORDER_COLOR_FLOAT_CUSTOM_EXT = BorderColor 1000287003
{-# COMPLETE
BORDER_COLOR_FLOAT_TRANSPARENT_BLACK
, BORDER_COLOR_INT_TRANSPARENT_BLACK
, BORDER_COLOR_FLOAT_OPAQUE_BLACK
, BORDER_COLOR_INT_OPAQUE_BLACK
, BORDER_COLOR_FLOAT_OPAQUE_WHITE
, BORDER_COLOR_INT_OPAQUE_WHITE
, BORDER_COLOR_INT_CUSTOM_EXT
, BORDER_COLOR_FLOAT_CUSTOM_EXT ::
BorderColor
#-}
conNameBorderColor :: String
conNameBorderColor :: String
conNameBorderColor = String
"BorderColor"
enumPrefixBorderColor :: String
enumPrefixBorderColor :: String
enumPrefixBorderColor = String
"BORDER_COLOR_"
showTableBorderColor :: [(BorderColor, String)]
showTableBorderColor :: [(BorderColor, String)]
showTableBorderColor =
[
( BorderColor
BORDER_COLOR_FLOAT_TRANSPARENT_BLACK
, String
"FLOAT_TRANSPARENT_BLACK"
)
,
( BorderColor
BORDER_COLOR_INT_TRANSPARENT_BLACK
, String
"INT_TRANSPARENT_BLACK"
)
, (BorderColor
BORDER_COLOR_FLOAT_OPAQUE_BLACK, String
"FLOAT_OPAQUE_BLACK")
, (BorderColor
BORDER_COLOR_INT_OPAQUE_BLACK, String
"INT_OPAQUE_BLACK")
, (BorderColor
BORDER_COLOR_FLOAT_OPAQUE_WHITE, String
"FLOAT_OPAQUE_WHITE")
, (BorderColor
BORDER_COLOR_INT_OPAQUE_WHITE, String
"INT_OPAQUE_WHITE")
, (BorderColor
BORDER_COLOR_INT_CUSTOM_EXT, String
"INT_CUSTOM_EXT")
, (BorderColor
BORDER_COLOR_FLOAT_CUSTOM_EXT, String
"FLOAT_CUSTOM_EXT")
]
instance Show BorderColor where
showsPrec :: Int -> BorderColor -> ShowS
showsPrec =
forall a i.
Eq a =>
String
-> [(a, String)]
-> String
-> (a -> i)
-> (i -> ShowS)
-> Int
-> a
-> ShowS
enumShowsPrec
String
enumPrefixBorderColor
[(BorderColor, String)]
showTableBorderColor
String
conNameBorderColor
(\(BorderColor Int32
x) -> Int32
x)
(forall a. Show a => Int -> a -> ShowS
showsPrec Int
11)
instance Read BorderColor where
readPrec :: ReadPrec BorderColor
readPrec =
forall i a.
Read i =>
String -> [(a, String)] -> String -> (i -> a) -> ReadPrec a
enumReadPrec
String
enumPrefixBorderColor
[(BorderColor, String)]
showTableBorderColor
String
conNameBorderColor
Int32 -> BorderColor
BorderColor