#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gsk.Flags
(
PathForeachFlags(..) ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
#else
#endif
data PathForeachFlags =
PathForeachFlagsOnlyLines
| PathForeachFlagsQuad
| PathForeachFlagsCubic
| PathForeachFlagsConic
| AnotherPathForeachFlags Int
deriving (Int -> PathForeachFlags -> ShowS
[PathForeachFlags] -> ShowS
PathForeachFlags -> String
(Int -> PathForeachFlags -> ShowS)
-> (PathForeachFlags -> String)
-> ([PathForeachFlags] -> ShowS)
-> Show PathForeachFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PathForeachFlags -> ShowS
showsPrec :: Int -> PathForeachFlags -> ShowS
$cshow :: PathForeachFlags -> String
show :: PathForeachFlags -> String
$cshowList :: [PathForeachFlags] -> ShowS
showList :: [PathForeachFlags] -> ShowS
Show, PathForeachFlags -> PathForeachFlags -> Bool
(PathForeachFlags -> PathForeachFlags -> Bool)
-> (PathForeachFlags -> PathForeachFlags -> Bool)
-> Eq PathForeachFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PathForeachFlags -> PathForeachFlags -> Bool
== :: PathForeachFlags -> PathForeachFlags -> Bool
$c/= :: PathForeachFlags -> PathForeachFlags -> Bool
/= :: PathForeachFlags -> PathForeachFlags -> Bool
Eq)
instance P.Enum PathForeachFlags where
fromEnum :: PathForeachFlags -> Int
fromEnum PathForeachFlags
PathForeachFlagsOnlyLines = Int
0
fromEnum PathForeachFlags
PathForeachFlagsQuad = Int
1
fromEnum PathForeachFlags
PathForeachFlagsCubic = Int
2
fromEnum PathForeachFlags
PathForeachFlagsConic = Int
4
fromEnum (AnotherPathForeachFlags Int
k) = Int
k
toEnum :: Int -> PathForeachFlags
toEnum Int
0 = PathForeachFlags
PathForeachFlagsOnlyLines
toEnum Int
1 = PathForeachFlags
PathForeachFlagsQuad
toEnum Int
2 = PathForeachFlags
PathForeachFlagsCubic
toEnum Int
4 = PathForeachFlags
PathForeachFlagsConic
toEnum Int
k = Int -> PathForeachFlags
AnotherPathForeachFlags Int
k
instance P.Ord PathForeachFlags where
compare :: PathForeachFlags -> PathForeachFlags -> Ordering
compare PathForeachFlags
a PathForeachFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (PathForeachFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum PathForeachFlags
a) (PathForeachFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum PathForeachFlags
b)
type instance O.ParentTypes PathForeachFlags = '[]
instance O.HasParentTypes PathForeachFlags
foreign import ccall "gsk_path_foreach_flags_get_type" c_gsk_path_foreach_flags_get_type ::
IO GType
instance B.Types.TypedObject PathForeachFlags where
glibType :: IO GType
glibType = IO GType
c_gsk_path_foreach_flags_get_type
instance B.Types.BoxedFlags PathForeachFlags
instance IsGFlag PathForeachFlags