-- | Copyright  : Will Thompson, Iñaki García Etxebarria and Jonas Platte
-- License    : LGPL-2.1
-- Maintainer : Iñaki García Etxebarria

#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif

module GI.Atk.Flags
    ( 

 -- * Flags
-- ** HyperlinkStateFlags #flag:HyperlinkStateFlags#

    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.BasicTypes as B.Types
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 Control.Monad.IO.Class as MIO
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


-- Flags HyperlinkStateFlags
-- | Describes the type of link
data HyperlinkStateFlags = 
      HyperlinkStateFlagsInline
    -- ^ Link is inline
    | AnotherHyperlinkStateFlags Int
    -- ^ Catch-all for unknown values
    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 HyperlinkStateFlags
HyperlinkStateFlagsInline = Int
1
    fromEnum (AnotherHyperlinkStateFlags Int
k) = Int
k

    toEnum :: Int -> HyperlinkStateFlags
toEnum Int
1 = HyperlinkStateFlags
HyperlinkStateFlagsInline
    toEnum Int
k = Int -> HyperlinkStateFlags
AnotherHyperlinkStateFlags Int
k

instance P.Ord HyperlinkStateFlags where
    compare :: HyperlinkStateFlags -> HyperlinkStateFlags -> Ordering
compare HyperlinkStateFlags
a 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)

type instance O.ParentTypes HyperlinkStateFlags = '[]
instance O.HasParentTypes HyperlinkStateFlags

foreign import ccall "atk_hyperlink_state_flags_get_type" c_atk_hyperlink_state_flags_get_type :: 
    IO GType

instance B.Types.TypedObject HyperlinkStateFlags where
    glibType :: IO GType
glibType = IO GType
c_atk_hyperlink_state_flags_get_type

instance B.Types.BoxedFlags HyperlinkStateFlags

instance IsGFlag HyperlinkStateFlags