    -- | 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.Dbusmenu.Enums
        (

     -- * Enumerations

    -- ** Status #enum:Status#

        Status(..)                              ,

    -- ** TextDirection #enum:TextDirection#

        TextDirection(..)                       ,

        ) 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

    -- Enum TextDirection
    -- | The direction of text that the strings that this server
    -- 	will be sending strings as.
    data TextDirection =
          TextDirectionNone
        -- ^ Unspecified text direction
        | TextDirectionLtr
        -- ^ Left-to-right text direction
        | TextDirectionRtl
        -- ^ Right-to-left text direction
        | AnotherTextDirection Int
        -- ^ Catch-all for unknown values
        deriving (Int -> TextDirection -> ShowS
    [TextDirection] -> ShowS
    TextDirection -> String
    (Int -> TextDirection -> ShowS)
    -> (TextDirection -> String)
    -> ([TextDirection] -> ShowS)
    -> Show TextDirection
    forall a.
    (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
    $cshowsPrec :: Int -> TextDirection -> ShowS
    showsPrec :: Int -> TextDirection -> ShowS
    $cshow :: TextDirection -> String
    show :: TextDirection -> String
    $cshowList :: [TextDirection] -> ShowS
    showList :: [TextDirection] -> ShowS
    Show, TextDirection -> TextDirection -> Bool
    (TextDirection -> TextDirection -> Bool)
    -> (TextDirection -> TextDirection -> Bool) -> Eq TextDirection
    forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
    $c== :: TextDirection -> TextDirection -> Bool
    == :: TextDirection -> TextDirection -> Bool
    $c/= :: TextDirection -> TextDirection -> Bool
    /= :: TextDirection -> TextDirection -> Bool
    Eq)

    instance P.Enum TextDirection where
        fromEnum :: TextDirection -> Int
    fromEnum TextDirection
    TextDirectionNone = Int
    0
        fromEnum TextDirection
    TextDirectionLtr = Int
    1
        fromEnum TextDirection
    TextDirectionRtl = Int
    2
        fromEnum (AnotherTextDirection Int
    k) = Int
    k

        toEnum :: Int -> TextDirection
    toEnum Int
    0 = TextDirection
    TextDirectionNone
        toEnum Int
    1 = TextDirection
    TextDirectionLtr
        toEnum Int
    2 = TextDirection
    TextDirectionRtl
        toEnum Int
    k = Int -> TextDirection
    AnotherTextDirection Int
    k

    instance P.Ord TextDirection where
        compare :: TextDirection -> TextDirection -> Ordering
    compare TextDirection
    a TextDirection
    b = Int -> Int -> Ordering
    forall a. Ord a => a -> a -> Ordering
    P.compare (TextDirection -> Int
    forall a. Enum a => a -> Int
    P.fromEnum TextDirection
    a) (TextDirection -> Int
    forall a. Enum a => a -> Int
    P.fromEnum TextDirection
    b)

    -- Enum Status
    -- | Tracks how the menus should be presented to the user.
    data Status =
          StatusNormal
        -- ^ Everything is normal
        | StatusNotice
        -- ^ The menus should be shown at a higher priority
        | AnotherStatus Int
        -- ^ Catch-all for unknown values
        deriving (Int -> Status -> ShowS
    [Status] -> ShowS
    Status -> String
    (Int -> Status -> ShowS)
    -> (Status -> String) -> ([Status] -> ShowS) -> Show Status
    forall a.
    (Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
    $cshowsPrec :: Int -> Status -> ShowS
    showsPrec :: Int -> Status -> ShowS
    $cshow :: Status -> String
    show :: Status -> String
    $cshowList :: [Status] -> ShowS
    showList :: [Status] -> ShowS
    Show, Status -> Status -> Bool
    (Status -> Status -> Bool)
    -> (Status -> Status -> Bool) -> Eq Status
    forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
    $c== :: Status -> Status -> Bool
    == :: Status -> Status -> Bool
    $c/= :: Status -> Status -> Bool
    /= :: Status -> Status -> Bool
    Eq)

    instance P.Enum Status where
        fromEnum :: Status -> Int
    fromEnum Status
    StatusNormal = Int
    0
        fromEnum Status
    StatusNotice = Int
    1
        fromEnum (AnotherStatus Int
    k) = Int
    k

        toEnum :: Int -> Status
    toEnum Int
    0 = Status
    StatusNormal
        toEnum Int
    1 = Status
    StatusNotice
        toEnum Int
    k = Int -> Status
    AnotherStatus Int
    k

    instance P.Ord Status where
        compare :: Status -> Status -> Ordering
    compare Status
    a Status
    b = Int -> Int -> Ordering
    forall a. Ord a => a -> a -> Ordering
    P.compare (Status -> Int
    forall a. Enum a => a -> Int
    P.fromEnum Status
    a) (Status -> Int
    forall a. Enum a => a -> Int
    P.fromEnum Status
    b)