-- | Copyright  : Will Thompson and Iñaki García Etxebarria
-- 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.GtkLayerShell.Enums
    ( 

 -- * Enumerations


-- ** Edge #enum:Edge#

    Edge(..)                                ,


-- ** KeyboardMode #enum:KeyboardMode#

    KeyboardMode(..)                        ,


-- ** Layer #enum:Layer#

    Layer(..)                               ,




    ) 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


-- Enum Layer
-- | /No description available in the introspection data./
data Layer = 
      LayerBackground
    -- ^ The background layer.
    | LayerBottom
    -- ^ The bottom layer.
    | LayerTop
    -- ^ The top layer.
    | LayerOverlay
    -- ^ The overlay layer.
    | LayerEntryNumber
    -- ^ Should not be used except to get the number of entries. (NOTE: may change in
    -- future releases as more entries are added)
    | AnotherLayer Int
    -- ^ Catch-all for unknown values
    deriving (Int -> Layer -> ShowS
[Layer] -> ShowS
Layer -> String
(Int -> Layer -> ShowS)
-> (Layer -> String) -> ([Layer] -> ShowS) -> Show Layer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Layer -> ShowS
showsPrec :: Int -> Layer -> ShowS
$cshow :: Layer -> String
show :: Layer -> String
$cshowList :: [Layer] -> ShowS
showList :: [Layer] -> ShowS
Show, Layer -> Layer -> Bool
(Layer -> Layer -> Bool) -> (Layer -> Layer -> Bool) -> Eq Layer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Layer -> Layer -> Bool
== :: Layer -> Layer -> Bool
$c/= :: Layer -> Layer -> Bool
/= :: Layer -> Layer -> Bool
Eq)

instance P.Enum Layer where
    fromEnum :: Layer -> Int
fromEnum Layer
LayerBackground = Int
0
    fromEnum Layer
LayerBottom = Int
1
    fromEnum Layer
LayerTop = Int
2
    fromEnum Layer
LayerOverlay = Int
3
    fromEnum Layer
LayerEntryNumber = Int
4
    fromEnum (AnotherLayer Int
k) = Int
k

    toEnum :: Int -> Layer
toEnum Int
0 = Layer
LayerBackground
    toEnum Int
1 = Layer
LayerBottom
    toEnum Int
2 = Layer
LayerTop
    toEnum Int
3 = Layer
LayerOverlay
    toEnum Int
4 = Layer
LayerEntryNumber
    toEnum Int
k = Int -> Layer
AnotherLayer Int
k

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

-- Enum KeyboardMode
-- | GTK_LAYER_SHELL_KEYBOARD_MODE_NONE: This window should not receive keyboard events.
-- GTK_LAYER_SHELL_KEYBOARD_MODE_EXCLUSIVE: This window should have exclusive focus if it is on the top or overlay layer.
-- GTK_LAYER_SHELL_KEYBOARD_MODE_ON_DEMAND: The user should be able to focus and unfocues this window in an implementation
-- defined way. Not supported for protocol version \< 4.
-- GTK_LAYER_SHELL_KEYBOARD_MODE_ENTRY_NUMBER: Should not be used except to get the number of entries. (NOTE: may change in
-- future releases as more entries are added)
data KeyboardMode = 
      KeyboardModeNone
    -- ^ /No description available in the introspection data./
    | KeyboardModeExclusive
    -- ^ /No description available in the introspection data./
    | KeyboardModeOnDemand
    -- ^ /No description available in the introspection data./
    | KeyboardModeEntryNumber
    -- ^ /No description available in the introspection data./
    | AnotherKeyboardMode Int
    -- ^ Catch-all for unknown values
    deriving (Int -> KeyboardMode -> ShowS
[KeyboardMode] -> ShowS
KeyboardMode -> String
(Int -> KeyboardMode -> ShowS)
-> (KeyboardMode -> String)
-> ([KeyboardMode] -> ShowS)
-> Show KeyboardMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KeyboardMode -> ShowS
showsPrec :: Int -> KeyboardMode -> ShowS
$cshow :: KeyboardMode -> String
show :: KeyboardMode -> String
$cshowList :: [KeyboardMode] -> ShowS
showList :: [KeyboardMode] -> ShowS
Show, KeyboardMode -> KeyboardMode -> Bool
(KeyboardMode -> KeyboardMode -> Bool)
-> (KeyboardMode -> KeyboardMode -> Bool) -> Eq KeyboardMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KeyboardMode -> KeyboardMode -> Bool
== :: KeyboardMode -> KeyboardMode -> Bool
$c/= :: KeyboardMode -> KeyboardMode -> Bool
/= :: KeyboardMode -> KeyboardMode -> Bool
Eq)

instance P.Enum KeyboardMode where
    fromEnum :: KeyboardMode -> Int
fromEnum KeyboardMode
KeyboardModeNone = Int
0
    fromEnum KeyboardMode
KeyboardModeExclusive = Int
1
    fromEnum KeyboardMode
KeyboardModeOnDemand = Int
2
    fromEnum KeyboardMode
KeyboardModeEntryNumber = Int
3
    fromEnum (AnotherKeyboardMode Int
k) = Int
k

    toEnum :: Int -> KeyboardMode
toEnum Int
0 = KeyboardMode
KeyboardModeNone
    toEnum Int
1 = KeyboardMode
KeyboardModeExclusive
    toEnum Int
2 = KeyboardMode
KeyboardModeOnDemand
    toEnum Int
3 = KeyboardMode
KeyboardModeEntryNumber
    toEnum Int
k = Int -> KeyboardMode
AnotherKeyboardMode Int
k

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

-- Enum Edge
-- | /No description available in the introspection data./
data Edge = 
      EdgeLeft
    -- ^ The left edge of the screen.
    | EdgeRight
    -- ^ The right edge of the screen.
    | EdgeTop
    -- ^ The top edge of the screen.
    | EdgeBottom
    -- ^ The bottom edge of the screen.
    | EdgeEntryNumber
    -- ^ Should not be used except to get the number of entries. (NOTE: may change in
    -- future releases as more entries are added)
    | AnotherEdge Int
    -- ^ Catch-all for unknown values
    deriving (Int -> Edge -> ShowS
[Edge] -> ShowS
Edge -> String
(Int -> Edge -> ShowS)
-> (Edge -> String) -> ([Edge] -> ShowS) -> Show Edge
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Edge -> ShowS
showsPrec :: Int -> Edge -> ShowS
$cshow :: Edge -> String
show :: Edge -> String
$cshowList :: [Edge] -> ShowS
showList :: [Edge] -> ShowS
Show, Edge -> Edge -> Bool
(Edge -> Edge -> Bool) -> (Edge -> Edge -> Bool) -> Eq Edge
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Edge -> Edge -> Bool
== :: Edge -> Edge -> Bool
$c/= :: Edge -> Edge -> Bool
/= :: Edge -> Edge -> Bool
Eq)

instance P.Enum Edge where
    fromEnum :: Edge -> Int
fromEnum Edge
EdgeLeft = Int
0
    fromEnum Edge
EdgeRight = Int
1
    fromEnum Edge
EdgeTop = Int
2
    fromEnum Edge
EdgeBottom = Int
3
    fromEnum Edge
EdgeEntryNumber = Int
4
    fromEnum (AnotherEdge Int
k) = Int
k

    toEnum :: Int -> Edge
toEnum Int
0 = Edge
EdgeLeft
    toEnum Int
1 = Edge
EdgeRight
    toEnum Int
2 = Edge
EdgeTop
    toEnum Int
3 = Edge
EdgeBottom
    toEnum Int
4 = Edge
EdgeEntryNumber
    toEnum Int
k = Int -> Edge
AnotherEdge Int
k

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