#if !defined(__HADDOCK_VERSION__)
#define ENABLE_OVERLOADING
#endif
module GI.Gsk.Flags
(
Isolation(..) ,
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
data Isolation =
IsolationNone
| IsolationBackground
| IsolationCopyPaste
| IsolationAll
| AnotherIsolation Int
deriving (Int -> Isolation -> ShowS
[Isolation] -> ShowS
Isolation -> String
(Int -> Isolation -> ShowS)
-> (Isolation -> String)
-> ([Isolation] -> ShowS)
-> Show Isolation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Isolation -> ShowS
showsPrec :: Int -> Isolation -> ShowS
$cshow :: Isolation -> String
show :: Isolation -> String
$cshowList :: [Isolation] -> ShowS
showList :: [Isolation] -> ShowS
Show, Isolation -> Isolation -> Bool
(Isolation -> Isolation -> Bool)
-> (Isolation -> Isolation -> Bool) -> Eq Isolation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Isolation -> Isolation -> Bool
== :: Isolation -> Isolation -> Bool
$c/= :: Isolation -> Isolation -> Bool
/= :: Isolation -> Isolation -> Bool
Eq)
instance P.Enum Isolation where
fromEnum :: Isolation -> Int
fromEnum Isolation
IsolationNone = Int
0
fromEnum Isolation
IsolationBackground = Int
1
fromEnum Isolation
IsolationCopyPaste = Int
2
fromEnum Isolation
IsolationAll = Int
-1
fromEnum (AnotherIsolation Int
k) = Int
k
toEnum :: Int -> Isolation
toEnum Int
0 = Isolation
IsolationNone
toEnum Int
1 = Isolation
IsolationBackground
toEnum Int
2 = Isolation
IsolationCopyPaste
toEnum Int
-1 = Isolation
IsolationAll
toEnum Int
k = Int -> Isolation
AnotherIsolation Int
k
instance P.Ord Isolation where
compare :: Isolation -> Isolation -> Ordering
compare Isolation
a Isolation
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (Isolation -> Int
forall a. Enum a => a -> Int
P.fromEnum Isolation
a) (Isolation -> Int
forall a. Enum a => a -> Int
P.fromEnum Isolation
b)
type instance O.ParentTypes Isolation = '[]
instance O.HasParentTypes Isolation
foreign import ccall "gsk_isolation_get_type" c_gsk_isolation_get_type ::
IO GType
instance B.Types.TypedObject Isolation where
glibType :: IO GType
glibType = IO GType
c_gsk_isolation_get_type
instance B.Types.BoxedFlags Isolation
instance IsGFlag Isolation