#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Atk.Flags
(
HyperlinkStateFlags(..) ,
) 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 HyperlinkStateFlags =
HyperlinkStateFlagsInline
| AnotherHyperlinkStateFlags Int
deriving (Int -> HyperlinkStateFlags -> ShowS
[HyperlinkStateFlags] -> ShowS
HyperlinkStateFlags -> String
(Int -> HyperlinkStateFlags -> ShowS)
-> (HyperlinkStateFlags -> String)
-> ([HyperlinkStateFlags] -> ShowS)
-> Show HyperlinkStateFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HyperlinkStateFlags] -> ShowS
$cshowList :: [HyperlinkStateFlags] -> ShowS
show :: HyperlinkStateFlags -> String
$cshow :: HyperlinkStateFlags -> String
showsPrec :: Int -> HyperlinkStateFlags -> ShowS
$cshowsPrec :: Int -> HyperlinkStateFlags -> ShowS
Show, HyperlinkStateFlags -> HyperlinkStateFlags -> Bool
(HyperlinkStateFlags -> HyperlinkStateFlags -> Bool)
-> (HyperlinkStateFlags -> HyperlinkStateFlags -> Bool)
-> Eq HyperlinkStateFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HyperlinkStateFlags -> HyperlinkStateFlags -> Bool
$c/= :: HyperlinkStateFlags -> HyperlinkStateFlags -> Bool
== :: HyperlinkStateFlags -> HyperlinkStateFlags -> Bool
$c== :: HyperlinkStateFlags -> HyperlinkStateFlags -> Bool
Eq)
instance P.Enum HyperlinkStateFlags where
fromEnum :: HyperlinkStateFlags -> Int
fromEnum HyperlinkStateFlagsInline = 1
fromEnum (AnotherHyperlinkStateFlags k :: Int
k) = Int
k
toEnum :: Int -> HyperlinkStateFlags
toEnum 1 = HyperlinkStateFlags
HyperlinkStateFlagsInline
toEnum k :: Int
k = Int -> HyperlinkStateFlags
AnotherHyperlinkStateFlags Int
k
instance P.Ord HyperlinkStateFlags where
compare :: HyperlinkStateFlags -> HyperlinkStateFlags -> Ordering
compare a :: HyperlinkStateFlags
a b :: HyperlinkStateFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (HyperlinkStateFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum HyperlinkStateFlags
a) (HyperlinkStateFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum HyperlinkStateFlags
b)
foreign import ccall "atk_hyperlink_state_flags_get_type" c_atk_hyperlink_state_flags_get_type ::
IO GType
instance BoxedFlags HyperlinkStateFlags where
boxedFlagsType :: Proxy HyperlinkStateFlags -> IO GType
boxedFlagsType _ = IO GType
c_atk_hyperlink_state_flags_get_type
instance IsGFlag HyperlinkStateFlags