    -- | 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.Gsk.Flags
        (

     -- * Flags

    -- ** Isolation #flag:Isolation#

        Isolation(..)                           ,

    -- ** PathForeachFlags #flag:PathForeachFlags#

        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

    -- Workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/23392
    #if MIN_VERSION_base(4,18,0)

    #else

    #endif

    -- Flags PathForeachFlags
    -- | Flags that can be passed to 'GI.Gsk.Structs.Path.pathForeach' to influence what
    -- kinds of operations the path is decomposed into.
    --
    -- By default, 'GI.Gsk.Structs.Path.pathForeach' will only emit a path with all
    -- operations flattened to straight lines to allow for maximum compatibility.
    -- The only operations emitted will be @GSK_PATH_MOVE@, @GSK_PATH_LINE@ and
    -- @GSK_PATH_CLOSE@.
    --
    -- /Since: 4.14/
    data PathForeachFlags =
          PathForeachFlagsOnlyLines
        -- ^ The default behavior, only allow lines.
        | PathForeachFlagsQuad
        -- ^ Allow emission of @GSK_PATH_QUAD@ operations
        | PathForeachFlagsCubic
        -- ^ Allow emission of @GSK_PATH_CUBIC@ operations.
        | PathForeachFlagsConic
        -- ^ Allow emission of @GSK_PATH_CONIC@ operations.
        | AnotherPathForeachFlags Int
        -- ^ Catch-all for unknown values
        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

    -- Flags Isolation
    -- | These flags describe the types of isolations possible with a
    -- t'GI.Gsk.Objects.IsolationNode.IsolationNode'.
    --
    -- More isolation options may be added in the future.
    --
    -- /Since: 4.22/
    data Isolation =
          IsolationNone
        -- ^ No isolation is defined.
        | IsolationBackground
        -- ^ If the background should be made available.
        --   If the background is not available, future operations will be rendered
        --   to a transparent background and added to the existing background later.
        | IsolationCopyPaste
        -- ^ If copies should be available to paste nodes.
        --   If copies are not available, paste nodes can only paste from copies that
        --   are made inside the isolated contents.
        | IsolationAll
        -- ^ Isolate everything. This will include features that
        --   are added in the future.
        | AnotherIsolation Int
        -- ^ Catch-all for unknown values
        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