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

    #if !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.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

    -- 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
    $cshowsPrec :: Int -> HyperlinkStateFlags -> ShowS
    showsPrec :: Int -> HyperlinkStateFlags -> ShowS
    $cshow :: HyperlinkStateFlags -> String
    show :: HyperlinkStateFlags -> String
    $cshowList :: [HyperlinkStateFlags] -> ShowS
    showList :: [HyperlinkStateFlags] -> ShowS
    Show, HyperlinkStateFlags -> HyperlinkStateFlags -> Bool
    (HyperlinkStateFlags -> HyperlinkStateFlags -> Bool)
    -> (HyperlinkStateFlags -> HyperlinkStateFlags -> Bool)
    -> Eq HyperlinkStateFlags
    forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
    $c== :: HyperlinkStateFlags -> HyperlinkStateFlags -> Bool
    == :: HyperlinkStateFlags -> HyperlinkStateFlags -> Bool
    $c/= :: HyperlinkStateFlags -> HyperlinkStateFlags -> Bool
    /= :: 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