#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.GObject.Flags
(
BindingFlags(..) ,
ConnectFlags(..) ,
ParamFlags(..) ,
SignalFlags(..) ,
SignalMatchType(..) ,
TypeDebugFlags(..) ,
TypeFlags(..) ,
TypeFundamentalFlags(..) ,
) 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.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
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 Data.Text as T
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
data TypeFundamentalFlags =
TypeFundamentalFlagsClassed
| TypeFundamentalFlagsInstantiatable
| TypeFundamentalFlagsDerivable
| TypeFundamentalFlagsDeepDerivable
| AnotherTypeFundamentalFlags Int
deriving (Int -> TypeFundamentalFlags -> ShowS
[TypeFundamentalFlags] -> ShowS
TypeFundamentalFlags -> String
(Int -> TypeFundamentalFlags -> ShowS)
-> (TypeFundamentalFlags -> String)
-> ([TypeFundamentalFlags] -> ShowS)
-> Show TypeFundamentalFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TypeFundamentalFlags] -> ShowS
$cshowList :: [TypeFundamentalFlags] -> ShowS
show :: TypeFundamentalFlags -> String
$cshow :: TypeFundamentalFlags -> String
showsPrec :: Int -> TypeFundamentalFlags -> ShowS
$cshowsPrec :: Int -> TypeFundamentalFlags -> ShowS
Show, TypeFundamentalFlags -> TypeFundamentalFlags -> Bool
(TypeFundamentalFlags -> TypeFundamentalFlags -> Bool)
-> (TypeFundamentalFlags -> TypeFundamentalFlags -> Bool)
-> Eq TypeFundamentalFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TypeFundamentalFlags -> TypeFundamentalFlags -> Bool
$c/= :: TypeFundamentalFlags -> TypeFundamentalFlags -> Bool
== :: TypeFundamentalFlags -> TypeFundamentalFlags -> Bool
$c== :: TypeFundamentalFlags -> TypeFundamentalFlags -> Bool
Eq)
instance P.Enum TypeFundamentalFlags where
fromEnum :: TypeFundamentalFlags -> Int
fromEnum TypeFundamentalFlagsClassed = 1
fromEnum TypeFundamentalFlagsInstantiatable = 2
fromEnum TypeFundamentalFlagsDerivable = 4
fromEnum TypeFundamentalFlagsDeepDerivable = 8
fromEnum (AnotherTypeFundamentalFlags k :: Int
k) = Int
k
toEnum :: Int -> TypeFundamentalFlags
toEnum 1 = TypeFundamentalFlags
TypeFundamentalFlagsClassed
toEnum 2 = TypeFundamentalFlags
TypeFundamentalFlagsInstantiatable
toEnum 4 = TypeFundamentalFlags
TypeFundamentalFlagsDerivable
toEnum 8 = TypeFundamentalFlags
TypeFundamentalFlagsDeepDerivable
toEnum k :: Int
k = Int -> TypeFundamentalFlags
AnotherTypeFundamentalFlags Int
k
instance P.Ord TypeFundamentalFlags where
compare :: TypeFundamentalFlags -> TypeFundamentalFlags -> Ordering
compare a :: TypeFundamentalFlags
a b :: TypeFundamentalFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TypeFundamentalFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TypeFundamentalFlags
a) (TypeFundamentalFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TypeFundamentalFlags
b)
instance IsGFlag TypeFundamentalFlags
data TypeFlags =
TypeFlagsAbstract
| TypeFlagsValueAbstract
| AnotherTypeFlags Int
deriving (Int -> TypeFlags -> ShowS
[TypeFlags] -> ShowS
TypeFlags -> String
(Int -> TypeFlags -> ShowS)
-> (TypeFlags -> String)
-> ([TypeFlags] -> ShowS)
-> Show TypeFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TypeFlags] -> ShowS
$cshowList :: [TypeFlags] -> ShowS
show :: TypeFlags -> String
$cshow :: TypeFlags -> String
showsPrec :: Int -> TypeFlags -> ShowS
$cshowsPrec :: Int -> TypeFlags -> ShowS
Show, TypeFlags -> TypeFlags -> Bool
(TypeFlags -> TypeFlags -> Bool)
-> (TypeFlags -> TypeFlags -> Bool) -> Eq TypeFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TypeFlags -> TypeFlags -> Bool
$c/= :: TypeFlags -> TypeFlags -> Bool
== :: TypeFlags -> TypeFlags -> Bool
$c== :: TypeFlags -> TypeFlags -> Bool
Eq)
instance P.Enum TypeFlags where
fromEnum :: TypeFlags -> Int
fromEnum TypeFlagsAbstract = 16
fromEnum TypeFlagsValueAbstract = 32
fromEnum (AnotherTypeFlags k :: Int
k) = Int
k
toEnum :: Int -> TypeFlags
toEnum 16 = TypeFlags
TypeFlagsAbstract
toEnum 32 = TypeFlags
TypeFlagsValueAbstract
toEnum k :: Int
k = Int -> TypeFlags
AnotherTypeFlags Int
k
instance P.Ord TypeFlags where
compare :: TypeFlags -> TypeFlags -> Ordering
compare a :: TypeFlags
a b :: TypeFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TypeFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TypeFlags
a) (TypeFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TypeFlags
b)
instance IsGFlag TypeFlags
{-# DEPRECATED TypeDebugFlags ["(Since version 2.36)","'GI.GObject.Functions.typeInit' is now done automatically"] #-}
data TypeDebugFlags =
TypeDebugFlagsNone
| TypeDebugFlagsObjects
| TypeDebugFlagsSignals
| TypeDebugFlagsInstanceCount
| TypeDebugFlagsMask
| AnotherTypeDebugFlags Int
deriving (Int -> TypeDebugFlags -> ShowS
[TypeDebugFlags] -> ShowS
TypeDebugFlags -> String
(Int -> TypeDebugFlags -> ShowS)
-> (TypeDebugFlags -> String)
-> ([TypeDebugFlags] -> ShowS)
-> Show TypeDebugFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TypeDebugFlags] -> ShowS
$cshowList :: [TypeDebugFlags] -> ShowS
show :: TypeDebugFlags -> String
$cshow :: TypeDebugFlags -> String
showsPrec :: Int -> TypeDebugFlags -> ShowS
$cshowsPrec :: Int -> TypeDebugFlags -> ShowS
Show, TypeDebugFlags -> TypeDebugFlags -> Bool
(TypeDebugFlags -> TypeDebugFlags -> Bool)
-> (TypeDebugFlags -> TypeDebugFlags -> Bool) -> Eq TypeDebugFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TypeDebugFlags -> TypeDebugFlags -> Bool
$c/= :: TypeDebugFlags -> TypeDebugFlags -> Bool
== :: TypeDebugFlags -> TypeDebugFlags -> Bool
$c== :: TypeDebugFlags -> TypeDebugFlags -> Bool
Eq)
instance P.Enum TypeDebugFlags where
fromEnum :: TypeDebugFlags -> Int
fromEnum TypeDebugFlagsNone = 0
fromEnum TypeDebugFlagsObjects = 1
fromEnum TypeDebugFlagsSignals = 2
fromEnum TypeDebugFlagsInstanceCount = 4
fromEnum TypeDebugFlagsMask = 7
fromEnum (AnotherTypeDebugFlags k :: Int
k) = Int
k
toEnum :: Int -> TypeDebugFlags
toEnum 0 = TypeDebugFlags
TypeDebugFlagsNone
toEnum 1 = TypeDebugFlags
TypeDebugFlagsObjects
toEnum 2 = TypeDebugFlags
TypeDebugFlagsSignals
toEnum 4 = TypeDebugFlags
TypeDebugFlagsInstanceCount
toEnum 7 = TypeDebugFlags
TypeDebugFlagsMask
toEnum k :: Int
k = Int -> TypeDebugFlags
AnotherTypeDebugFlags Int
k
instance P.Ord TypeDebugFlags where
compare :: TypeDebugFlags -> TypeDebugFlags -> Ordering
compare a :: TypeDebugFlags
a b :: TypeDebugFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TypeDebugFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TypeDebugFlags
a) (TypeDebugFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TypeDebugFlags
b)
instance IsGFlag TypeDebugFlags
data SignalMatchType =
SignalMatchTypeId
| SignalMatchTypeDetail
| SignalMatchTypeClosure
| SignalMatchTypeFunc
| SignalMatchTypeData
| SignalMatchTypeUnblocked
| AnotherSignalMatchType Int
deriving (Int -> SignalMatchType -> ShowS
[SignalMatchType] -> ShowS
SignalMatchType -> String
(Int -> SignalMatchType -> ShowS)
-> (SignalMatchType -> String)
-> ([SignalMatchType] -> ShowS)
-> Show SignalMatchType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SignalMatchType] -> ShowS
$cshowList :: [SignalMatchType] -> ShowS
show :: SignalMatchType -> String
$cshow :: SignalMatchType -> String
showsPrec :: Int -> SignalMatchType -> ShowS
$cshowsPrec :: Int -> SignalMatchType -> ShowS
Show, SignalMatchType -> SignalMatchType -> Bool
(SignalMatchType -> SignalMatchType -> Bool)
-> (SignalMatchType -> SignalMatchType -> Bool)
-> Eq SignalMatchType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SignalMatchType -> SignalMatchType -> Bool
$c/= :: SignalMatchType -> SignalMatchType -> Bool
== :: SignalMatchType -> SignalMatchType -> Bool
$c== :: SignalMatchType -> SignalMatchType -> Bool
Eq)
instance P.Enum SignalMatchType where
fromEnum :: SignalMatchType -> Int
fromEnum SignalMatchTypeId = 1
fromEnum SignalMatchTypeDetail = 2
fromEnum SignalMatchTypeClosure = 4
fromEnum SignalMatchTypeFunc = 8
fromEnum SignalMatchTypeData = 16
fromEnum SignalMatchTypeUnblocked = 32
fromEnum (AnotherSignalMatchType k :: Int
k) = Int
k
toEnum :: Int -> SignalMatchType
toEnum 1 = SignalMatchType
SignalMatchTypeId
toEnum 2 = SignalMatchType
SignalMatchTypeDetail
toEnum 4 = SignalMatchType
SignalMatchTypeClosure
toEnum 8 = SignalMatchType
SignalMatchTypeFunc
toEnum 16 = SignalMatchType
SignalMatchTypeData
toEnum 32 = SignalMatchType
SignalMatchTypeUnblocked
toEnum k :: Int
k = Int -> SignalMatchType
AnotherSignalMatchType Int
k
instance P.Ord SignalMatchType where
compare :: SignalMatchType -> SignalMatchType -> Ordering
compare a :: SignalMatchType
a b :: SignalMatchType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (SignalMatchType -> Int
forall a. Enum a => a -> Int
P.fromEnum SignalMatchType
a) (SignalMatchType -> Int
forall a. Enum a => a -> Int
P.fromEnum SignalMatchType
b)
instance IsGFlag SignalMatchType
data SignalFlags =
SignalFlagsRunFirst
| SignalFlagsRunLast
| SignalFlagsRunCleanup
| SignalFlagsNoRecurse
| SignalFlagsDetailed
| SignalFlagsAction
| SignalFlagsNoHooks
| SignalFlagsMustCollect
| SignalFlagsDeprecated
| AnotherSignalFlags Int
deriving (Int -> SignalFlags -> ShowS
[SignalFlags] -> ShowS
SignalFlags -> String
(Int -> SignalFlags -> ShowS)
-> (SignalFlags -> String)
-> ([SignalFlags] -> ShowS)
-> Show SignalFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SignalFlags] -> ShowS
$cshowList :: [SignalFlags] -> ShowS
show :: SignalFlags -> String
$cshow :: SignalFlags -> String
showsPrec :: Int -> SignalFlags -> ShowS
$cshowsPrec :: Int -> SignalFlags -> ShowS
Show, SignalFlags -> SignalFlags -> Bool
(SignalFlags -> SignalFlags -> Bool)
-> (SignalFlags -> SignalFlags -> Bool) -> Eq SignalFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SignalFlags -> SignalFlags -> Bool
$c/= :: SignalFlags -> SignalFlags -> Bool
== :: SignalFlags -> SignalFlags -> Bool
$c== :: SignalFlags -> SignalFlags -> Bool
Eq)
instance P.Enum SignalFlags where
fromEnum :: SignalFlags -> Int
fromEnum SignalFlagsRunFirst = 1
fromEnum SignalFlagsRunLast = 2
fromEnum SignalFlagsRunCleanup = 4
fromEnum SignalFlagsNoRecurse = 8
fromEnum SignalFlagsDetailed = 16
fromEnum SignalFlagsAction = 32
fromEnum SignalFlagsNoHooks = 64
fromEnum SignalFlagsMustCollect = 128
fromEnum SignalFlagsDeprecated = 256
fromEnum (AnotherSignalFlags k :: Int
k) = Int
k
toEnum :: Int -> SignalFlags
toEnum 1 = SignalFlags
SignalFlagsRunFirst
toEnum 2 = SignalFlags
SignalFlagsRunLast
toEnum 4 = SignalFlags
SignalFlagsRunCleanup
toEnum 8 = SignalFlags
SignalFlagsNoRecurse
toEnum 16 = SignalFlags
SignalFlagsDetailed
toEnum 32 = SignalFlags
SignalFlagsAction
toEnum 64 = SignalFlags
SignalFlagsNoHooks
toEnum 128 = SignalFlags
SignalFlagsMustCollect
toEnum 256 = SignalFlags
SignalFlagsDeprecated
toEnum k :: Int
k = Int -> SignalFlags
AnotherSignalFlags Int
k
instance P.Ord SignalFlags where
compare :: SignalFlags -> SignalFlags -> Ordering
compare a :: SignalFlags
a b :: SignalFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (SignalFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum SignalFlags
a) (SignalFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum SignalFlags
b)
instance IsGFlag SignalFlags
data ParamFlags =
ParamFlagsReadable
| ParamFlagsWritable
| ParamFlagsReadwrite
| ParamFlagsConstruct
| ParamFlagsConstructOnly
| ParamFlagsLaxValidation
| ParamFlagsStaticName
| ParamFlagsPrivate
| ParamFlagsStaticNick
| ParamFlagsStaticBlurb
| ParamFlagsExplicitNotify
| ParamFlagsDeprecated
| AnotherParamFlags Int
deriving (Int -> ParamFlags -> ShowS
[ParamFlags] -> ShowS
ParamFlags -> String
(Int -> ParamFlags -> ShowS)
-> (ParamFlags -> String)
-> ([ParamFlags] -> ShowS)
-> Show ParamFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ParamFlags] -> ShowS
$cshowList :: [ParamFlags] -> ShowS
show :: ParamFlags -> String
$cshow :: ParamFlags -> String
showsPrec :: Int -> ParamFlags -> ShowS
$cshowsPrec :: Int -> ParamFlags -> ShowS
Show, ParamFlags -> ParamFlags -> Bool
(ParamFlags -> ParamFlags -> Bool)
-> (ParamFlags -> ParamFlags -> Bool) -> Eq ParamFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ParamFlags -> ParamFlags -> Bool
$c/= :: ParamFlags -> ParamFlags -> Bool
== :: ParamFlags -> ParamFlags -> Bool
$c== :: ParamFlags -> ParamFlags -> Bool
Eq)
instance P.Enum ParamFlags where
fromEnum :: ParamFlags -> Int
fromEnum ParamFlagsReadable = 1
fromEnum ParamFlagsWritable = 2
fromEnum ParamFlagsReadwrite = 3
fromEnum ParamFlagsConstruct = 4
fromEnum ParamFlagsConstructOnly = 8
fromEnum ParamFlagsLaxValidation = 16
fromEnum ParamFlagsStaticName = 32
fromEnum ParamFlagsPrivate = 32
fromEnum ParamFlagsStaticNick = 64
fromEnum ParamFlagsStaticBlurb = 128
fromEnum ParamFlagsExplicitNotify = 1073741824
fromEnum ParamFlagsDeprecated = 2147483648
fromEnum (AnotherParamFlags k :: Int
k) = Int
k
toEnum :: Int -> ParamFlags
toEnum 1 = ParamFlags
ParamFlagsReadable
toEnum 2 = ParamFlags
ParamFlagsWritable
toEnum 3 = ParamFlags
ParamFlagsReadwrite
toEnum 4 = ParamFlags
ParamFlagsConstruct
toEnum 8 = ParamFlags
ParamFlagsConstructOnly
toEnum 16 = ParamFlags
ParamFlagsLaxValidation
toEnum 32 = ParamFlags
ParamFlagsStaticName
toEnum 64 = ParamFlags
ParamFlagsStaticNick
toEnum 128 = ParamFlags
ParamFlagsStaticBlurb
toEnum 1073741824 = ParamFlags
ParamFlagsExplicitNotify
toEnum 2147483648 = ParamFlags
ParamFlagsDeprecated
toEnum k :: Int
k = Int -> ParamFlags
AnotherParamFlags Int
k
instance P.Ord ParamFlags where
compare :: ParamFlags -> ParamFlags -> Ordering
compare a :: ParamFlags
a b :: ParamFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ParamFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum ParamFlags
a) (ParamFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum ParamFlags
b)
instance IsGFlag ParamFlags
data ConnectFlags =
ConnectFlagsAfter
| ConnectFlagsSwapped
| AnotherConnectFlags Int
deriving (Int -> ConnectFlags -> ShowS
[ConnectFlags] -> ShowS
ConnectFlags -> String
(Int -> ConnectFlags -> ShowS)
-> (ConnectFlags -> String)
-> ([ConnectFlags] -> ShowS)
-> Show ConnectFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConnectFlags] -> ShowS
$cshowList :: [ConnectFlags] -> ShowS
show :: ConnectFlags -> String
$cshow :: ConnectFlags -> String
showsPrec :: Int -> ConnectFlags -> ShowS
$cshowsPrec :: Int -> ConnectFlags -> ShowS
Show, ConnectFlags -> ConnectFlags -> Bool
(ConnectFlags -> ConnectFlags -> Bool)
-> (ConnectFlags -> ConnectFlags -> Bool) -> Eq ConnectFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConnectFlags -> ConnectFlags -> Bool
$c/= :: ConnectFlags -> ConnectFlags -> Bool
== :: ConnectFlags -> ConnectFlags -> Bool
$c== :: ConnectFlags -> ConnectFlags -> Bool
Eq)
instance P.Enum ConnectFlags where
fromEnum :: ConnectFlags -> Int
fromEnum ConnectFlagsAfter = 1
fromEnum ConnectFlagsSwapped = 2
fromEnum (AnotherConnectFlags k :: Int
k) = Int
k
toEnum :: Int -> ConnectFlags
toEnum 1 = ConnectFlags
ConnectFlagsAfter
toEnum 2 = ConnectFlags
ConnectFlagsSwapped
toEnum k :: Int
k = Int -> ConnectFlags
AnotherConnectFlags Int
k
instance P.Ord ConnectFlags where
compare :: ConnectFlags -> ConnectFlags -> Ordering
compare a :: ConnectFlags
a b :: ConnectFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ConnectFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum ConnectFlags
a) (ConnectFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum ConnectFlags
b)
instance IsGFlag ConnectFlags
data BindingFlags =
BindingFlagsDefault
| BindingFlagsBidirectional
| BindingFlagsSyncCreate
| BindingFlagsInvertBoolean
| AnotherBindingFlags Int
deriving (Int -> BindingFlags -> ShowS
[BindingFlags] -> ShowS
BindingFlags -> String
(Int -> BindingFlags -> ShowS)
-> (BindingFlags -> String)
-> ([BindingFlags] -> ShowS)
-> Show BindingFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BindingFlags] -> ShowS
$cshowList :: [BindingFlags] -> ShowS
show :: BindingFlags -> String
$cshow :: BindingFlags -> String
showsPrec :: Int -> BindingFlags -> ShowS
$cshowsPrec :: Int -> BindingFlags -> ShowS
Show, BindingFlags -> BindingFlags -> Bool
(BindingFlags -> BindingFlags -> Bool)
-> (BindingFlags -> BindingFlags -> Bool) -> Eq BindingFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BindingFlags -> BindingFlags -> Bool
$c/= :: BindingFlags -> BindingFlags -> Bool
== :: BindingFlags -> BindingFlags -> Bool
$c== :: BindingFlags -> BindingFlags -> Bool
Eq)
instance P.Enum BindingFlags where
fromEnum :: BindingFlags -> Int
fromEnum BindingFlagsDefault = 0
fromEnum BindingFlagsBidirectional = 1
fromEnum BindingFlagsSyncCreate = 2
fromEnum BindingFlagsInvertBoolean = 4
fromEnum (AnotherBindingFlags k :: Int
k) = Int
k
toEnum :: Int -> BindingFlags
toEnum 0 = BindingFlags
BindingFlagsDefault
toEnum 1 = BindingFlags
BindingFlagsBidirectional
toEnum 2 = BindingFlags
BindingFlagsSyncCreate
toEnum 4 = BindingFlags
BindingFlagsInvertBoolean
toEnum k :: Int
k = Int -> BindingFlags
AnotherBindingFlags Int
k
instance P.Ord BindingFlags where
compare :: BindingFlags -> BindingFlags -> Ordering
compare a :: BindingFlags
a b :: BindingFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (BindingFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum BindingFlags
a) (BindingFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum BindingFlags
b)
foreign import ccall "g_binding_flags_get_type" c_g_binding_flags_get_type ::
IO GType
instance BoxedFlags BindingFlags where
boxedFlagsType :: Proxy BindingFlags -> IO GType
boxedFlagsType _ = IO GType
c_g_binding_flags_get_type
instance IsGFlag BindingFlags