#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gdk.Enums
(
AxisUse(..) ,
CrossingMode(..) ,
DevicePadFeature(..) ,
DeviceToolType(..) ,
DmabufError(..) ,
catchDmabufError ,
handleDmabufError ,
DragCancelReason(..) ,
EventType(..) ,
FullscreenMode(..) ,
GLError(..) ,
catchGLError ,
handleGLError ,
Gravity(..) ,
InputSource(..) ,
KeyMatch(..) ,
MemoryFormat(..) ,
NotifyType(..) ,
ScrollDirection(..) ,
ScrollUnit(..) ,
SubpixelLayout(..) ,
SurfaceEdge(..) ,
TextureError(..) ,
catchTextureError ,
handleTextureError ,
TitlebarGesture(..) ,
TouchpadGesturePhase(..) ,
VulkanError(..) ,
catchVulkanError ,
handleVulkanError ,
) 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
#if MIN_VERSION_base(4,18,0)
#else
#endif
data VulkanError =
VulkanErrorUnsupported
| VulkanErrorNotAvailable
| AnotherVulkanError Int
deriving (Int -> VulkanError -> ShowS
[VulkanError] -> ShowS
VulkanError -> String
(Int -> VulkanError -> ShowS)
-> (VulkanError -> String)
-> ([VulkanError] -> ShowS)
-> Show VulkanError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VulkanError -> ShowS
showsPrec :: Int -> VulkanError -> ShowS
$cshow :: VulkanError -> String
show :: VulkanError -> String
$cshowList :: [VulkanError] -> ShowS
showList :: [VulkanError] -> ShowS
Show, VulkanError -> VulkanError -> Bool
(VulkanError -> VulkanError -> Bool)
-> (VulkanError -> VulkanError -> Bool) -> Eq VulkanError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VulkanError -> VulkanError -> Bool
== :: VulkanError -> VulkanError -> Bool
$c/= :: VulkanError -> VulkanError -> Bool
/= :: VulkanError -> VulkanError -> Bool
Eq)
instance P.Enum VulkanError where
fromEnum :: VulkanError -> Int
fromEnum VulkanError
VulkanErrorUnsupported = Int
0
fromEnum VulkanError
VulkanErrorNotAvailable = Int
1
fromEnum (AnotherVulkanError Int
k) = Int
k
toEnum :: Int -> VulkanError
toEnum Int
0 = VulkanError
VulkanErrorUnsupported
toEnum Int
1 = VulkanError
VulkanErrorNotAvailable
toEnum Int
k = Int -> VulkanError
AnotherVulkanError Int
k
instance P.Ord VulkanError where
compare :: VulkanError -> VulkanError -> Ordering
compare VulkanError
a VulkanError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (VulkanError -> Int
forall a. Enum a => a -> Int
P.fromEnum VulkanError
a) (VulkanError -> Int
forall a. Enum a => a -> Int
P.fromEnum VulkanError
b)
instance GErrorClass VulkanError where
gerrorClassDomain :: VulkanError -> Text
gerrorClassDomain VulkanError
_ = Text
"gdk-vulkan-error-quark"
catchVulkanError ::
IO a ->
(VulkanError -> GErrorMessage -> IO a) ->
IO a
catchVulkanError :: forall a. IO a -> (VulkanError -> Text -> IO a) -> IO a
catchVulkanError = IO a -> (VulkanError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleVulkanError ::
(VulkanError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleVulkanError :: forall a. (VulkanError -> Text -> IO a) -> IO a -> IO a
handleVulkanError = (VulkanError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
type instance O.ParentTypes VulkanError = '[]
instance O.HasParentTypes VulkanError
foreign import ccall "gdk_vulkan_error_get_type" c_gdk_vulkan_error_get_type ::
IO GType
instance B.Types.TypedObject VulkanError where
glibType :: IO GType
glibType = IO GType
c_gdk_vulkan_error_get_type
instance B.Types.BoxedEnum VulkanError
data TouchpadGesturePhase =
TouchpadGesturePhaseBegin
| TouchpadGesturePhaseUpdate
| TouchpadGesturePhaseEnd
| TouchpadGesturePhaseCancel
| AnotherTouchpadGesturePhase Int
deriving (Int -> TouchpadGesturePhase -> ShowS
[TouchpadGesturePhase] -> ShowS
TouchpadGesturePhase -> String
(Int -> TouchpadGesturePhase -> ShowS)
-> (TouchpadGesturePhase -> String)
-> ([TouchpadGesturePhase] -> ShowS)
-> Show TouchpadGesturePhase
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TouchpadGesturePhase -> ShowS
showsPrec :: Int -> TouchpadGesturePhase -> ShowS
$cshow :: TouchpadGesturePhase -> String
show :: TouchpadGesturePhase -> String
$cshowList :: [TouchpadGesturePhase] -> ShowS
showList :: [TouchpadGesturePhase] -> ShowS
Show, TouchpadGesturePhase -> TouchpadGesturePhase -> Bool
(TouchpadGesturePhase -> TouchpadGesturePhase -> Bool)
-> (TouchpadGesturePhase -> TouchpadGesturePhase -> Bool)
-> Eq TouchpadGesturePhase
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool
== :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool
$c/= :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool
/= :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool
Eq)
instance P.Enum TouchpadGesturePhase where
fromEnum :: TouchpadGesturePhase -> Int
fromEnum TouchpadGesturePhase
TouchpadGesturePhaseBegin = Int
0
fromEnum TouchpadGesturePhase
TouchpadGesturePhaseUpdate = Int
1
fromEnum TouchpadGesturePhase
TouchpadGesturePhaseEnd = Int
2
fromEnum TouchpadGesturePhase
TouchpadGesturePhaseCancel = Int
3
fromEnum (AnotherTouchpadGesturePhase Int
k) = Int
k
toEnum :: Int -> TouchpadGesturePhase
toEnum Int
0 = TouchpadGesturePhase
TouchpadGesturePhaseBegin
toEnum Int
1 = TouchpadGesturePhase
TouchpadGesturePhaseUpdate
toEnum Int
2 = TouchpadGesturePhase
TouchpadGesturePhaseEnd
toEnum Int
3 = TouchpadGesturePhase
TouchpadGesturePhaseCancel
toEnum Int
k = Int -> TouchpadGesturePhase
AnotherTouchpadGesturePhase Int
k
instance P.Ord TouchpadGesturePhase where
compare :: TouchpadGesturePhase -> TouchpadGesturePhase -> Ordering
compare TouchpadGesturePhase
a TouchpadGesturePhase
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TouchpadGesturePhase -> Int
forall a. Enum a => a -> Int
P.fromEnum TouchpadGesturePhase
a) (TouchpadGesturePhase -> Int
forall a. Enum a => a -> Int
P.fromEnum TouchpadGesturePhase
b)
type instance O.ParentTypes TouchpadGesturePhase = '[]
instance O.HasParentTypes TouchpadGesturePhase
foreign import ccall "gdk_touchpad_gesture_phase_get_type" c_gdk_touchpad_gesture_phase_get_type ::
IO GType
instance B.Types.TypedObject TouchpadGesturePhase where
glibType :: IO GType
glibType = IO GType
c_gdk_touchpad_gesture_phase_get_type
instance B.Types.BoxedEnum TouchpadGesturePhase
data TitlebarGesture =
TitlebarGestureDoubleClick
| TitlebarGestureRightClick
| TitlebarGestureMiddleClick
| AnotherTitlebarGesture Int
deriving (Int -> TitlebarGesture -> ShowS
[TitlebarGesture] -> ShowS
TitlebarGesture -> String
(Int -> TitlebarGesture -> ShowS)
-> (TitlebarGesture -> String)
-> ([TitlebarGesture] -> ShowS)
-> Show TitlebarGesture
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TitlebarGesture -> ShowS
showsPrec :: Int -> TitlebarGesture -> ShowS
$cshow :: TitlebarGesture -> String
show :: TitlebarGesture -> String
$cshowList :: [TitlebarGesture] -> ShowS
showList :: [TitlebarGesture] -> ShowS
Show, TitlebarGesture -> TitlebarGesture -> Bool
(TitlebarGesture -> TitlebarGesture -> Bool)
-> (TitlebarGesture -> TitlebarGesture -> Bool)
-> Eq TitlebarGesture
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TitlebarGesture -> TitlebarGesture -> Bool
== :: TitlebarGesture -> TitlebarGesture -> Bool
$c/= :: TitlebarGesture -> TitlebarGesture -> Bool
/= :: TitlebarGesture -> TitlebarGesture -> Bool
Eq)
instance P.Enum TitlebarGesture where
fromEnum :: TitlebarGesture -> Int
fromEnum TitlebarGesture
TitlebarGestureDoubleClick = Int
1
fromEnum TitlebarGesture
TitlebarGestureRightClick = Int
2
fromEnum TitlebarGesture
TitlebarGestureMiddleClick = Int
3
fromEnum (AnotherTitlebarGesture Int
k) = Int
k
toEnum :: Int -> TitlebarGesture
toEnum Int
1 = TitlebarGesture
TitlebarGestureDoubleClick
toEnum Int
2 = TitlebarGesture
TitlebarGestureRightClick
toEnum Int
3 = TitlebarGesture
TitlebarGestureMiddleClick
toEnum Int
k = Int -> TitlebarGesture
AnotherTitlebarGesture Int
k
instance P.Ord TitlebarGesture where
compare :: TitlebarGesture -> TitlebarGesture -> Ordering
compare TitlebarGesture
a TitlebarGesture
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TitlebarGesture -> Int
forall a. Enum a => a -> Int
P.fromEnum TitlebarGesture
a) (TitlebarGesture -> Int
forall a. Enum a => a -> Int
P.fromEnum TitlebarGesture
b)
type instance O.ParentTypes TitlebarGesture = '[]
instance O.HasParentTypes TitlebarGesture
foreign import ccall "gdk_titlebar_gesture_get_type" c_gdk_titlebar_gesture_get_type ::
IO GType
instance B.Types.TypedObject TitlebarGesture where
glibType :: IO GType
glibType = IO GType
c_gdk_titlebar_gesture_get_type
instance B.Types.BoxedEnum TitlebarGesture
data TextureError =
TextureErrorTooLarge
| TextureErrorCorruptImage
| TextureErrorUnsupportedContent
| TextureErrorUnsupportedFormat
| AnotherTextureError Int
deriving (Int -> TextureError -> ShowS
[TextureError] -> ShowS
TextureError -> String
(Int -> TextureError -> ShowS)
-> (TextureError -> String)
-> ([TextureError] -> ShowS)
-> Show TextureError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TextureError -> ShowS
showsPrec :: Int -> TextureError -> ShowS
$cshow :: TextureError -> String
show :: TextureError -> String
$cshowList :: [TextureError] -> ShowS
showList :: [TextureError] -> ShowS
Show, TextureError -> TextureError -> Bool
(TextureError -> TextureError -> Bool)
-> (TextureError -> TextureError -> Bool) -> Eq TextureError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TextureError -> TextureError -> Bool
== :: TextureError -> TextureError -> Bool
$c/= :: TextureError -> TextureError -> Bool
/= :: TextureError -> TextureError -> Bool
Eq)
instance P.Enum TextureError where
fromEnum :: TextureError -> Int
fromEnum TextureError
TextureErrorTooLarge = Int
0
fromEnum TextureError
TextureErrorCorruptImage = Int
1
fromEnum TextureError
TextureErrorUnsupportedContent = Int
2
fromEnum TextureError
TextureErrorUnsupportedFormat = Int
3
fromEnum (AnotherTextureError Int
k) = Int
k
toEnum :: Int -> TextureError
toEnum Int
0 = TextureError
TextureErrorTooLarge
toEnum Int
1 = TextureError
TextureErrorCorruptImage
toEnum Int
2 = TextureError
TextureErrorUnsupportedContent
toEnum Int
3 = TextureError
TextureErrorUnsupportedFormat
toEnum Int
k = Int -> TextureError
AnotherTextureError Int
k
instance P.Ord TextureError where
compare :: TextureError -> TextureError -> Ordering
compare TextureError
a TextureError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TextureError -> Int
forall a. Enum a => a -> Int
P.fromEnum TextureError
a) (TextureError -> Int
forall a. Enum a => a -> Int
P.fromEnum TextureError
b)
instance GErrorClass TextureError where
gerrorClassDomain :: TextureError -> Text
gerrorClassDomain TextureError
_ = Text
"gdk-texture-error-quark"
catchTextureError ::
IO a ->
(TextureError -> GErrorMessage -> IO a) ->
IO a
catchTextureError :: forall a. IO a -> (TextureError -> Text -> IO a) -> IO a
catchTextureError = IO a -> (TextureError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleTextureError ::
(TextureError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleTextureError :: forall a. (TextureError -> Text -> IO a) -> IO a -> IO a
handleTextureError = (TextureError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
type instance O.ParentTypes TextureError = '[]
instance O.HasParentTypes TextureError
foreign import ccall "gdk_texture_error_get_type" c_gdk_texture_error_get_type ::
IO GType
instance B.Types.TypedObject TextureError where
glibType :: IO GType
glibType = IO GType
c_gdk_texture_error_get_type
instance B.Types.BoxedEnum TextureError
data SurfaceEdge =
SurfaceEdgeNorthWest
| SurfaceEdgeNorth
| SurfaceEdgeNorthEast
| SurfaceEdgeWest
| SurfaceEdgeEast
| SurfaceEdgeSouthWest
| SurfaceEdgeSouth
| SurfaceEdgeSouthEast
| AnotherSurfaceEdge Int
deriving (Int -> SurfaceEdge -> ShowS
[SurfaceEdge] -> ShowS
SurfaceEdge -> String
(Int -> SurfaceEdge -> ShowS)
-> (SurfaceEdge -> String)
-> ([SurfaceEdge] -> ShowS)
-> Show SurfaceEdge
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SurfaceEdge -> ShowS
showsPrec :: Int -> SurfaceEdge -> ShowS
$cshow :: SurfaceEdge -> String
show :: SurfaceEdge -> String
$cshowList :: [SurfaceEdge] -> ShowS
showList :: [SurfaceEdge] -> ShowS
Show, SurfaceEdge -> SurfaceEdge -> Bool
(SurfaceEdge -> SurfaceEdge -> Bool)
-> (SurfaceEdge -> SurfaceEdge -> Bool) -> Eq SurfaceEdge
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SurfaceEdge -> SurfaceEdge -> Bool
== :: SurfaceEdge -> SurfaceEdge -> Bool
$c/= :: SurfaceEdge -> SurfaceEdge -> Bool
/= :: SurfaceEdge -> SurfaceEdge -> Bool
Eq)
instance P.Enum SurfaceEdge where
fromEnum :: SurfaceEdge -> Int
fromEnum SurfaceEdge
SurfaceEdgeNorthWest = Int
0
fromEnum SurfaceEdge
SurfaceEdgeNorth = Int
1
fromEnum SurfaceEdge
SurfaceEdgeNorthEast = Int
2
fromEnum SurfaceEdge
SurfaceEdgeWest = Int
3
fromEnum SurfaceEdge
SurfaceEdgeEast = Int
4
fromEnum SurfaceEdge
SurfaceEdgeSouthWest = Int
5
fromEnum SurfaceEdge
SurfaceEdgeSouth = Int
6
fromEnum SurfaceEdge
SurfaceEdgeSouthEast = Int
7
fromEnum (AnotherSurfaceEdge Int
k) = Int
k
toEnum :: Int -> SurfaceEdge
toEnum Int
0 = SurfaceEdge
SurfaceEdgeNorthWest
toEnum Int
1 = SurfaceEdge
SurfaceEdgeNorth
toEnum Int
2 = SurfaceEdge
SurfaceEdgeNorthEast
toEnum Int
3 = SurfaceEdge
SurfaceEdgeWest
toEnum Int
4 = SurfaceEdge
SurfaceEdgeEast
toEnum Int
5 = SurfaceEdge
SurfaceEdgeSouthWest
toEnum Int
6 = SurfaceEdge
SurfaceEdgeSouth
toEnum Int
7 = SurfaceEdge
SurfaceEdgeSouthEast
toEnum Int
k = Int -> SurfaceEdge
AnotherSurfaceEdge Int
k
instance P.Ord SurfaceEdge where
compare :: SurfaceEdge -> SurfaceEdge -> Ordering
compare SurfaceEdge
a SurfaceEdge
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (SurfaceEdge -> Int
forall a. Enum a => a -> Int
P.fromEnum SurfaceEdge
a) (SurfaceEdge -> Int
forall a. Enum a => a -> Int
P.fromEnum SurfaceEdge
b)
type instance O.ParentTypes SurfaceEdge = '[]
instance O.HasParentTypes SurfaceEdge
foreign import ccall "gdk_surface_edge_get_type" c_gdk_surface_edge_get_type ::
IO GType
instance B.Types.TypedObject SurfaceEdge where
glibType :: IO GType
glibType = IO GType
c_gdk_surface_edge_get_type
instance B.Types.BoxedEnum SurfaceEdge
data SubpixelLayout =
SubpixelLayoutUnknown
| SubpixelLayoutNone
| SubpixelLayoutHorizontalRgb
| SubpixelLayoutHorizontalBgr
| SubpixelLayoutVerticalRgb
| SubpixelLayoutVerticalBgr
| AnotherSubpixelLayout Int
deriving (Int -> SubpixelLayout -> ShowS
[SubpixelLayout] -> ShowS
SubpixelLayout -> String
(Int -> SubpixelLayout -> ShowS)
-> (SubpixelLayout -> String)
-> ([SubpixelLayout] -> ShowS)
-> Show SubpixelLayout
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubpixelLayout -> ShowS
showsPrec :: Int -> SubpixelLayout -> ShowS
$cshow :: SubpixelLayout -> String
show :: SubpixelLayout -> String
$cshowList :: [SubpixelLayout] -> ShowS
showList :: [SubpixelLayout] -> ShowS
Show, SubpixelLayout -> SubpixelLayout -> Bool
(SubpixelLayout -> SubpixelLayout -> Bool)
-> (SubpixelLayout -> SubpixelLayout -> Bool) -> Eq SubpixelLayout
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubpixelLayout -> SubpixelLayout -> Bool
== :: SubpixelLayout -> SubpixelLayout -> Bool
$c/= :: SubpixelLayout -> SubpixelLayout -> Bool
/= :: SubpixelLayout -> SubpixelLayout -> Bool
Eq)
instance P.Enum SubpixelLayout where
fromEnum :: SubpixelLayout -> Int
fromEnum SubpixelLayout
SubpixelLayoutUnknown = Int
0
fromEnum SubpixelLayout
SubpixelLayoutNone = Int
1
fromEnum SubpixelLayout
SubpixelLayoutHorizontalRgb = Int
2
fromEnum SubpixelLayout
SubpixelLayoutHorizontalBgr = Int
3
fromEnum SubpixelLayout
SubpixelLayoutVerticalRgb = Int
4
fromEnum SubpixelLayout
SubpixelLayoutVerticalBgr = Int
5
fromEnum (AnotherSubpixelLayout Int
k) = Int
k
toEnum :: Int -> SubpixelLayout
toEnum Int
0 = SubpixelLayout
SubpixelLayoutUnknown
toEnum Int
1 = SubpixelLayout
SubpixelLayoutNone
toEnum Int
2 = SubpixelLayout
SubpixelLayoutHorizontalRgb
toEnum Int
3 = SubpixelLayout
SubpixelLayoutHorizontalBgr
toEnum Int
4 = SubpixelLayout
SubpixelLayoutVerticalRgb
toEnum Int
5 = SubpixelLayout
SubpixelLayoutVerticalBgr
toEnum Int
k = Int -> SubpixelLayout
AnotherSubpixelLayout Int
k
instance P.Ord SubpixelLayout where
compare :: SubpixelLayout -> SubpixelLayout -> Ordering
compare SubpixelLayout
a SubpixelLayout
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (SubpixelLayout -> Int
forall a. Enum a => a -> Int
P.fromEnum SubpixelLayout
a) (SubpixelLayout -> Int
forall a. Enum a => a -> Int
P.fromEnum SubpixelLayout
b)
type instance O.ParentTypes SubpixelLayout = '[]
instance O.HasParentTypes SubpixelLayout
foreign import ccall "gdk_subpixel_layout_get_type" c_gdk_subpixel_layout_get_type ::
IO GType
instance B.Types.TypedObject SubpixelLayout where
glibType :: IO GType
glibType = IO GType
c_gdk_subpixel_layout_get_type
instance B.Types.BoxedEnum SubpixelLayout
data ScrollUnit =
ScrollUnitWheel
| ScrollUnitSurface
| AnotherScrollUnit Int
deriving (Int -> ScrollUnit -> ShowS
[ScrollUnit] -> ShowS
ScrollUnit -> String
(Int -> ScrollUnit -> ShowS)
-> (ScrollUnit -> String)
-> ([ScrollUnit] -> ShowS)
-> Show ScrollUnit
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScrollUnit -> ShowS
showsPrec :: Int -> ScrollUnit -> ShowS
$cshow :: ScrollUnit -> String
show :: ScrollUnit -> String
$cshowList :: [ScrollUnit] -> ShowS
showList :: [ScrollUnit] -> ShowS
Show, ScrollUnit -> ScrollUnit -> Bool
(ScrollUnit -> ScrollUnit -> Bool)
-> (ScrollUnit -> ScrollUnit -> Bool) -> Eq ScrollUnit
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScrollUnit -> ScrollUnit -> Bool
== :: ScrollUnit -> ScrollUnit -> Bool
$c/= :: ScrollUnit -> ScrollUnit -> Bool
/= :: ScrollUnit -> ScrollUnit -> Bool
Eq)
instance P.Enum ScrollUnit where
fromEnum :: ScrollUnit -> Int
fromEnum ScrollUnit
ScrollUnitWheel = Int
0
fromEnum ScrollUnit
ScrollUnitSurface = Int
1
fromEnum (AnotherScrollUnit Int
k) = Int
k
toEnum :: Int -> ScrollUnit
toEnum Int
0 = ScrollUnit
ScrollUnitWheel
toEnum Int
1 = ScrollUnit
ScrollUnitSurface
toEnum Int
k = Int -> ScrollUnit
AnotherScrollUnit Int
k
instance P.Ord ScrollUnit where
compare :: ScrollUnit -> ScrollUnit -> Ordering
compare ScrollUnit
a ScrollUnit
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ScrollUnit -> Int
forall a. Enum a => a -> Int
P.fromEnum ScrollUnit
a) (ScrollUnit -> Int
forall a. Enum a => a -> Int
P.fromEnum ScrollUnit
b)
type instance O.ParentTypes ScrollUnit = '[]
instance O.HasParentTypes ScrollUnit
foreign import ccall "gdk_scroll_unit_get_type" c_gdk_scroll_unit_get_type ::
IO GType
instance B.Types.TypedObject ScrollUnit where
glibType :: IO GType
glibType = IO GType
c_gdk_scroll_unit_get_type
instance B.Types.BoxedEnum ScrollUnit
data ScrollDirection =
ScrollDirectionUp
| ScrollDirectionDown
| ScrollDirectionLeft
| ScrollDirectionRight
| ScrollDirectionSmooth
| AnotherScrollDirection Int
deriving (Int -> ScrollDirection -> ShowS
[ScrollDirection] -> ShowS
ScrollDirection -> String
(Int -> ScrollDirection -> ShowS)
-> (ScrollDirection -> String)
-> ([ScrollDirection] -> ShowS)
-> Show ScrollDirection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ScrollDirection -> ShowS
showsPrec :: Int -> ScrollDirection -> ShowS
$cshow :: ScrollDirection -> String
show :: ScrollDirection -> String
$cshowList :: [ScrollDirection] -> ShowS
showList :: [ScrollDirection] -> ShowS
Show, ScrollDirection -> ScrollDirection -> Bool
(ScrollDirection -> ScrollDirection -> Bool)
-> (ScrollDirection -> ScrollDirection -> Bool)
-> Eq ScrollDirection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ScrollDirection -> ScrollDirection -> Bool
== :: ScrollDirection -> ScrollDirection -> Bool
$c/= :: ScrollDirection -> ScrollDirection -> Bool
/= :: ScrollDirection -> ScrollDirection -> Bool
Eq)
instance P.Enum ScrollDirection where
fromEnum :: ScrollDirection -> Int
fromEnum ScrollDirection
ScrollDirectionUp = Int
0
fromEnum ScrollDirection
ScrollDirectionDown = Int
1
fromEnum ScrollDirection
ScrollDirectionLeft = Int
2
fromEnum ScrollDirection
ScrollDirectionRight = Int
3
fromEnum ScrollDirection
ScrollDirectionSmooth = Int
4
fromEnum (AnotherScrollDirection Int
k) = Int
k
toEnum :: Int -> ScrollDirection
toEnum Int
0 = ScrollDirection
ScrollDirectionUp
toEnum Int
1 = ScrollDirection
ScrollDirectionDown
toEnum Int
2 = ScrollDirection
ScrollDirectionLeft
toEnum Int
3 = ScrollDirection
ScrollDirectionRight
toEnum Int
4 = ScrollDirection
ScrollDirectionSmooth
toEnum Int
k = Int -> ScrollDirection
AnotherScrollDirection Int
k
instance P.Ord ScrollDirection where
compare :: ScrollDirection -> ScrollDirection -> Ordering
compare ScrollDirection
a ScrollDirection
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ScrollDirection -> Int
forall a. Enum a => a -> Int
P.fromEnum ScrollDirection
a) (ScrollDirection -> Int
forall a. Enum a => a -> Int
P.fromEnum ScrollDirection
b)
type instance O.ParentTypes ScrollDirection = '[]
instance O.HasParentTypes ScrollDirection
foreign import ccall "gdk_scroll_direction_get_type" c_gdk_scroll_direction_get_type ::
IO GType
instance B.Types.TypedObject ScrollDirection where
glibType :: IO GType
glibType = IO GType
c_gdk_scroll_direction_get_type
instance B.Types.BoxedEnum ScrollDirection
data NotifyType =
NotifyTypeAncestor
| NotifyTypeVirtual
| NotifyTypeInferior
| NotifyTypeNonlinear
| NotifyTypeNonlinearVirtual
| NotifyTypeUnknown
| AnotherNotifyType Int
deriving (Int -> NotifyType -> ShowS
[NotifyType] -> ShowS
NotifyType -> String
(Int -> NotifyType -> ShowS)
-> (NotifyType -> String)
-> ([NotifyType] -> ShowS)
-> Show NotifyType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NotifyType -> ShowS
showsPrec :: Int -> NotifyType -> ShowS
$cshow :: NotifyType -> String
show :: NotifyType -> String
$cshowList :: [NotifyType] -> ShowS
showList :: [NotifyType] -> ShowS
Show, NotifyType -> NotifyType -> Bool
(NotifyType -> NotifyType -> Bool)
-> (NotifyType -> NotifyType -> Bool) -> Eq NotifyType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NotifyType -> NotifyType -> Bool
== :: NotifyType -> NotifyType -> Bool
$c/= :: NotifyType -> NotifyType -> Bool
/= :: NotifyType -> NotifyType -> Bool
Eq)
instance P.Enum NotifyType where
fromEnum :: NotifyType -> Int
fromEnum NotifyType
NotifyTypeAncestor = Int
0
fromEnum NotifyType
NotifyTypeVirtual = Int
1
fromEnum NotifyType
NotifyTypeInferior = Int
2
fromEnum NotifyType
NotifyTypeNonlinear = Int
3
fromEnum NotifyType
NotifyTypeNonlinearVirtual = Int
4
fromEnum NotifyType
NotifyTypeUnknown = Int
5
fromEnum (AnotherNotifyType Int
k) = Int
k
toEnum :: Int -> NotifyType
toEnum Int
0 = NotifyType
NotifyTypeAncestor
toEnum Int
1 = NotifyType
NotifyTypeVirtual
toEnum Int
2 = NotifyType
NotifyTypeInferior
toEnum Int
3 = NotifyType
NotifyTypeNonlinear
toEnum Int
4 = NotifyType
NotifyTypeNonlinearVirtual
toEnum Int
5 = NotifyType
NotifyTypeUnknown
toEnum Int
k = Int -> NotifyType
AnotherNotifyType Int
k
instance P.Ord NotifyType where
compare :: NotifyType -> NotifyType -> Ordering
compare NotifyType
a NotifyType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (NotifyType -> Int
forall a. Enum a => a -> Int
P.fromEnum NotifyType
a) (NotifyType -> Int
forall a. Enum a => a -> Int
P.fromEnum NotifyType
b)
type instance O.ParentTypes NotifyType = '[]
instance O.HasParentTypes NotifyType
foreign import ccall "gdk_notify_type_get_type" c_gdk_notify_type_get_type ::
IO GType
instance B.Types.TypedObject NotifyType where
glibType :: IO GType
glibType = IO GType
c_gdk_notify_type_get_type
instance B.Types.BoxedEnum NotifyType
data MemoryFormat =
MemoryFormatB8g8r8a8Premultiplied
| MemoryFormatA8r8g8b8Premultiplied
| MemoryFormatR8g8b8a8Premultiplied
| MemoryFormatB8g8r8a8
| MemoryFormatA8r8g8b8
| MemoryFormatR8g8b8a8
| MemoryFormatA8b8g8r8
| MemoryFormatR8g8b8
| MemoryFormatB8g8r8
| MemoryFormatR16g16b16
| MemoryFormatR16g16b16a16Premultiplied
| MemoryFormatR16g16b16a16
| MemoryFormatR16g16b16Float
| MemoryFormatR16g16b16a16FloatPremultiplied
| MemoryFormatR16g16b16a16Float
| MemoryFormatR32g32b32Float
| MemoryFormatR32g32b32a32FloatPremultiplied
| MemoryFormatR32g32b32a32Float
| MemoryFormatG8a8Premultiplied
| MemoryFormatG8a8
| MemoryFormatG8
| MemoryFormatG16a16Premultiplied
| MemoryFormatG16a16
| MemoryFormatG16
| MemoryFormatA8
| MemoryFormatA16
| MemoryFormatA16Float
| MemoryFormatA32Float
| MemoryFormatA8b8g8r8Premultiplied
| MemoryFormatB8g8r8x8
| MemoryFormatX8r8g8b8
| MemoryFormatR8g8b8x8
| MemoryFormatX8b8g8r8
| MemoryFormatNFormats
| AnotherMemoryFormat Int
deriving (Int -> MemoryFormat -> ShowS
[MemoryFormat] -> ShowS
MemoryFormat -> String
(Int -> MemoryFormat -> ShowS)
-> (MemoryFormat -> String)
-> ([MemoryFormat] -> ShowS)
-> Show MemoryFormat
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MemoryFormat -> ShowS
showsPrec :: Int -> MemoryFormat -> ShowS
$cshow :: MemoryFormat -> String
show :: MemoryFormat -> String
$cshowList :: [MemoryFormat] -> ShowS
showList :: [MemoryFormat] -> ShowS
Show, MemoryFormat -> MemoryFormat -> Bool
(MemoryFormat -> MemoryFormat -> Bool)
-> (MemoryFormat -> MemoryFormat -> Bool) -> Eq MemoryFormat
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MemoryFormat -> MemoryFormat -> Bool
== :: MemoryFormat -> MemoryFormat -> Bool
$c/= :: MemoryFormat -> MemoryFormat -> Bool
/= :: MemoryFormat -> MemoryFormat -> Bool
Eq)
instance P.Enum MemoryFormat where
fromEnum :: MemoryFormat -> Int
fromEnum MemoryFormat
MemoryFormatB8g8r8a8Premultiplied = Int
0
fromEnum MemoryFormat
MemoryFormatA8r8g8b8Premultiplied = Int
1
fromEnum MemoryFormat
MemoryFormatR8g8b8a8Premultiplied = Int
2
fromEnum MemoryFormat
MemoryFormatB8g8r8a8 = Int
3
fromEnum MemoryFormat
MemoryFormatA8r8g8b8 = Int
4
fromEnum MemoryFormat
MemoryFormatR8g8b8a8 = Int
5
fromEnum MemoryFormat
MemoryFormatA8b8g8r8 = Int
6
fromEnum MemoryFormat
MemoryFormatR8g8b8 = Int
7
fromEnum MemoryFormat
MemoryFormatB8g8r8 = Int
8
fromEnum MemoryFormat
MemoryFormatR16g16b16 = Int
9
fromEnum MemoryFormat
MemoryFormatR16g16b16a16Premultiplied = Int
10
fromEnum MemoryFormat
MemoryFormatR16g16b16a16 = Int
11
fromEnum MemoryFormat
MemoryFormatR16g16b16Float = Int
12
fromEnum MemoryFormat
MemoryFormatR16g16b16a16FloatPremultiplied = Int
13
fromEnum MemoryFormat
MemoryFormatR16g16b16a16Float = Int
14
fromEnum MemoryFormat
MemoryFormatR32g32b32Float = Int
15
fromEnum MemoryFormat
MemoryFormatR32g32b32a32FloatPremultiplied = Int
16
fromEnum MemoryFormat
MemoryFormatR32g32b32a32Float = Int
17
fromEnum MemoryFormat
MemoryFormatG8a8Premultiplied = Int
18
fromEnum MemoryFormat
MemoryFormatG8a8 = Int
19
fromEnum MemoryFormat
MemoryFormatG8 = Int
20
fromEnum MemoryFormat
MemoryFormatG16a16Premultiplied = Int
21
fromEnum MemoryFormat
MemoryFormatG16a16 = Int
22
fromEnum MemoryFormat
MemoryFormatG16 = Int
23
fromEnum MemoryFormat
MemoryFormatA8 = Int
24
fromEnum MemoryFormat
MemoryFormatA16 = Int
25
fromEnum MemoryFormat
MemoryFormatA16Float = Int
26
fromEnum MemoryFormat
MemoryFormatA32Float = Int
27
fromEnum MemoryFormat
MemoryFormatA8b8g8r8Premultiplied = Int
28
fromEnum MemoryFormat
MemoryFormatB8g8r8x8 = Int
29
fromEnum MemoryFormat
MemoryFormatX8r8g8b8 = Int
30
fromEnum MemoryFormat
MemoryFormatR8g8b8x8 = Int
31
fromEnum MemoryFormat
MemoryFormatX8b8g8r8 = Int
32
fromEnum MemoryFormat
MemoryFormatNFormats = Int
33
fromEnum (AnotherMemoryFormat Int
k) = Int
k
toEnum :: Int -> MemoryFormat
toEnum Int
0 = MemoryFormat
MemoryFormatB8g8r8a8Premultiplied
toEnum Int
1 = MemoryFormat
MemoryFormatA8r8g8b8Premultiplied
toEnum Int
2 = MemoryFormat
MemoryFormatR8g8b8a8Premultiplied
toEnum Int
3 = MemoryFormat
MemoryFormatB8g8r8a8
toEnum Int
4 = MemoryFormat
MemoryFormatA8r8g8b8
toEnum Int
5 = MemoryFormat
MemoryFormatR8g8b8a8
toEnum Int
6 = MemoryFormat
MemoryFormatA8b8g8r8
toEnum Int
7 = MemoryFormat
MemoryFormatR8g8b8
toEnum Int
8 = MemoryFormat
MemoryFormatB8g8r8
toEnum Int
9 = MemoryFormat
MemoryFormatR16g16b16
toEnum Int
10 = MemoryFormat
MemoryFormatR16g16b16a16Premultiplied
toEnum Int
11 = MemoryFormat
MemoryFormatR16g16b16a16
toEnum Int
12 = MemoryFormat
MemoryFormatR16g16b16Float
toEnum Int
13 = MemoryFormat
MemoryFormatR16g16b16a16FloatPremultiplied
toEnum Int
14 = MemoryFormat
MemoryFormatR16g16b16a16Float
toEnum Int
15 = MemoryFormat
MemoryFormatR32g32b32Float
toEnum Int
16 = MemoryFormat
MemoryFormatR32g32b32a32FloatPremultiplied
toEnum Int
17 = MemoryFormat
MemoryFormatR32g32b32a32Float
toEnum Int
18 = MemoryFormat
MemoryFormatG8a8Premultiplied
toEnum Int
19 = MemoryFormat
MemoryFormatG8a8
toEnum Int
20 = MemoryFormat
MemoryFormatG8
toEnum Int
21 = MemoryFormat
MemoryFormatG16a16Premultiplied
toEnum Int
22 = MemoryFormat
MemoryFormatG16a16
toEnum Int
23 = MemoryFormat
MemoryFormatG16
toEnum Int
24 = MemoryFormat
MemoryFormatA8
toEnum Int
25 = MemoryFormat
MemoryFormatA16
toEnum Int
26 = MemoryFormat
MemoryFormatA16Float
toEnum Int
27 = MemoryFormat
MemoryFormatA32Float
toEnum Int
28 = MemoryFormat
MemoryFormatA8b8g8r8Premultiplied
toEnum Int
29 = MemoryFormat
MemoryFormatB8g8r8x8
toEnum Int
30 = MemoryFormat
MemoryFormatX8r8g8b8
toEnum Int
31 = MemoryFormat
MemoryFormatR8g8b8x8
toEnum Int
32 = MemoryFormat
MemoryFormatX8b8g8r8
toEnum Int
33 = MemoryFormat
MemoryFormatNFormats
toEnum Int
k = Int -> MemoryFormat
AnotherMemoryFormat Int
k
instance P.Ord MemoryFormat where
compare :: MemoryFormat -> MemoryFormat -> Ordering
compare MemoryFormat
a MemoryFormat
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (MemoryFormat -> Int
forall a. Enum a => a -> Int
P.fromEnum MemoryFormat
a) (MemoryFormat -> Int
forall a. Enum a => a -> Int
P.fromEnum MemoryFormat
b)
type instance O.ParentTypes MemoryFormat = '[]
instance O.HasParentTypes MemoryFormat
foreign import ccall "gdk_memory_format_get_type" c_gdk_memory_format_get_type ::
IO GType
instance B.Types.TypedObject MemoryFormat where
glibType :: IO GType
glibType = IO GType
c_gdk_memory_format_get_type
instance B.Types.BoxedEnum MemoryFormat
data KeyMatch =
KeyMatchNone
| KeyMatchPartial
| KeyMatchExact
| AnotherKeyMatch Int
deriving (Int -> KeyMatch -> ShowS
[KeyMatch] -> ShowS
KeyMatch -> String
(Int -> KeyMatch -> ShowS)
-> (KeyMatch -> String) -> ([KeyMatch] -> ShowS) -> Show KeyMatch
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> KeyMatch -> ShowS
showsPrec :: Int -> KeyMatch -> ShowS
$cshow :: KeyMatch -> String
show :: KeyMatch -> String
$cshowList :: [KeyMatch] -> ShowS
showList :: [KeyMatch] -> ShowS
Show, KeyMatch -> KeyMatch -> Bool
(KeyMatch -> KeyMatch -> Bool)
-> (KeyMatch -> KeyMatch -> Bool) -> Eq KeyMatch
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: KeyMatch -> KeyMatch -> Bool
== :: KeyMatch -> KeyMatch -> Bool
$c/= :: KeyMatch -> KeyMatch -> Bool
/= :: KeyMatch -> KeyMatch -> Bool
Eq)
instance P.Enum KeyMatch where
fromEnum :: KeyMatch -> Int
fromEnum KeyMatch
KeyMatchNone = Int
0
fromEnum KeyMatch
KeyMatchPartial = Int
1
fromEnum KeyMatch
KeyMatchExact = Int
2
fromEnum (AnotherKeyMatch Int
k) = Int
k
toEnum :: Int -> KeyMatch
toEnum Int
0 = KeyMatch
KeyMatchNone
toEnum Int
1 = KeyMatch
KeyMatchPartial
toEnum Int
2 = KeyMatch
KeyMatchExact
toEnum Int
k = Int -> KeyMatch
AnotherKeyMatch Int
k
instance P.Ord KeyMatch where
compare :: KeyMatch -> KeyMatch -> Ordering
compare KeyMatch
a KeyMatch
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (KeyMatch -> Int
forall a. Enum a => a -> Int
P.fromEnum KeyMatch
a) (KeyMatch -> Int
forall a. Enum a => a -> Int
P.fromEnum KeyMatch
b)
type instance O.ParentTypes KeyMatch = '[]
instance O.HasParentTypes KeyMatch
foreign import ccall "gdk_key_match_get_type" c_gdk_key_match_get_type ::
IO GType
instance B.Types.TypedObject KeyMatch where
glibType :: IO GType
glibType = IO GType
c_gdk_key_match_get_type
instance B.Types.BoxedEnum KeyMatch
data InputSource =
InputSourceMouse
| InputSourcePen
| InputSourceKeyboard
| InputSourceTouchscreen
| InputSourceTouchpad
| InputSourceTrackpoint
| InputSourceTabletPad
| AnotherInputSource Int
deriving (Int -> InputSource -> ShowS
[InputSource] -> ShowS
InputSource -> String
(Int -> InputSource -> ShowS)
-> (InputSource -> String)
-> ([InputSource] -> ShowS)
-> Show InputSource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputSource -> ShowS
showsPrec :: Int -> InputSource -> ShowS
$cshow :: InputSource -> String
show :: InputSource -> String
$cshowList :: [InputSource] -> ShowS
showList :: [InputSource] -> ShowS
Show, InputSource -> InputSource -> Bool
(InputSource -> InputSource -> Bool)
-> (InputSource -> InputSource -> Bool) -> Eq InputSource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputSource -> InputSource -> Bool
== :: InputSource -> InputSource -> Bool
$c/= :: InputSource -> InputSource -> Bool
/= :: InputSource -> InputSource -> Bool
Eq)
instance P.Enum InputSource where
fromEnum :: InputSource -> Int
fromEnum InputSource
InputSourceMouse = Int
0
fromEnum InputSource
InputSourcePen = Int
1
fromEnum InputSource
InputSourceKeyboard = Int
2
fromEnum InputSource
InputSourceTouchscreen = Int
3
fromEnum InputSource
InputSourceTouchpad = Int
4
fromEnum InputSource
InputSourceTrackpoint = Int
5
fromEnum InputSource
InputSourceTabletPad = Int
6
fromEnum (AnotherInputSource Int
k) = Int
k
toEnum :: Int -> InputSource
toEnum Int
0 = InputSource
InputSourceMouse
toEnum Int
1 = InputSource
InputSourcePen
toEnum Int
2 = InputSource
InputSourceKeyboard
toEnum Int
3 = InputSource
InputSourceTouchscreen
toEnum Int
4 = InputSource
InputSourceTouchpad
toEnum Int
5 = InputSource
InputSourceTrackpoint
toEnum Int
6 = InputSource
InputSourceTabletPad
toEnum Int
k = Int -> InputSource
AnotherInputSource Int
k
instance P.Ord InputSource where
compare :: InputSource -> InputSource -> Ordering
compare InputSource
a InputSource
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (InputSource -> Int
forall a. Enum a => a -> Int
P.fromEnum InputSource
a) (InputSource -> Int
forall a. Enum a => a -> Int
P.fromEnum InputSource
b)
type instance O.ParentTypes InputSource = '[]
instance O.HasParentTypes InputSource
foreign import ccall "gdk_input_source_get_type" c_gdk_input_source_get_type ::
IO GType
instance B.Types.TypedObject InputSource where
glibType :: IO GType
glibType = IO GType
c_gdk_input_source_get_type
instance B.Types.BoxedEnum InputSource
data Gravity =
GravityNorthWest
| GravityNorth
| GravityNorthEast
| GravityWest
| GravityCenter
| GravityEast
| GravitySouthWest
| GravitySouth
| GravitySouthEast
| GravityStatic
| AnotherGravity Int
deriving (Int -> Gravity -> ShowS
[Gravity] -> ShowS
Gravity -> String
(Int -> Gravity -> ShowS)
-> (Gravity -> String) -> ([Gravity] -> ShowS) -> Show Gravity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Gravity -> ShowS
showsPrec :: Int -> Gravity -> ShowS
$cshow :: Gravity -> String
show :: Gravity -> String
$cshowList :: [Gravity] -> ShowS
showList :: [Gravity] -> ShowS
Show, Gravity -> Gravity -> Bool
(Gravity -> Gravity -> Bool)
-> (Gravity -> Gravity -> Bool) -> Eq Gravity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Gravity -> Gravity -> Bool
== :: Gravity -> Gravity -> Bool
$c/= :: Gravity -> Gravity -> Bool
/= :: Gravity -> Gravity -> Bool
Eq)
instance P.Enum Gravity where
fromEnum :: Gravity -> Int
fromEnum Gravity
GravityNorthWest = Int
1
fromEnum Gravity
GravityNorth = Int
2
fromEnum Gravity
GravityNorthEast = Int
3
fromEnum Gravity
GravityWest = Int
4
fromEnum Gravity
GravityCenter = Int
5
fromEnum Gravity
GravityEast = Int
6
fromEnum Gravity
GravitySouthWest = Int
7
fromEnum Gravity
GravitySouth = Int
8
fromEnum Gravity
GravitySouthEast = Int
9
fromEnum Gravity
GravityStatic = Int
10
fromEnum (AnotherGravity Int
k) = Int
k
toEnum :: Int -> Gravity
toEnum Int
1 = Gravity
GravityNorthWest
toEnum Int
2 = Gravity
GravityNorth
toEnum Int
3 = Gravity
GravityNorthEast
toEnum Int
4 = Gravity
GravityWest
toEnum Int
5 = Gravity
GravityCenter
toEnum Int
6 = Gravity
GravityEast
toEnum Int
7 = Gravity
GravitySouthWest
toEnum Int
8 = Gravity
GravitySouth
toEnum Int
9 = Gravity
GravitySouthEast
toEnum Int
10 = Gravity
GravityStatic
toEnum Int
k = Int -> Gravity
AnotherGravity Int
k
instance P.Ord Gravity where
compare :: Gravity -> Gravity -> Ordering
compare Gravity
a Gravity
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (Gravity -> Int
forall a. Enum a => a -> Int
P.fromEnum Gravity
a) (Gravity -> Int
forall a. Enum a => a -> Int
P.fromEnum Gravity
b)
type instance O.ParentTypes Gravity = '[]
instance O.HasParentTypes Gravity
foreign import ccall "gdk_gravity_get_type" c_gdk_gravity_get_type ::
IO GType
instance B.Types.TypedObject Gravity where
glibType :: IO GType
glibType = IO GType
c_gdk_gravity_get_type
instance B.Types.BoxedEnum Gravity
data GLError =
GLErrorNotAvailable
| GLErrorUnsupportedFormat
| GLErrorUnsupportedProfile
| GLErrorCompilationFailed
| GLErrorLinkFailed
| AnotherGLError Int
deriving (Int -> GLError -> ShowS
[GLError] -> ShowS
GLError -> String
(Int -> GLError -> ShowS)
-> (GLError -> String) -> ([GLError] -> ShowS) -> Show GLError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GLError -> ShowS
showsPrec :: Int -> GLError -> ShowS
$cshow :: GLError -> String
show :: GLError -> String
$cshowList :: [GLError] -> ShowS
showList :: [GLError] -> ShowS
Show, GLError -> GLError -> Bool
(GLError -> GLError -> Bool)
-> (GLError -> GLError -> Bool) -> Eq GLError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GLError -> GLError -> Bool
== :: GLError -> GLError -> Bool
$c/= :: GLError -> GLError -> Bool
/= :: GLError -> GLError -> Bool
Eq)
instance P.Enum GLError where
fromEnum :: GLError -> Int
fromEnum GLError
GLErrorNotAvailable = Int
0
fromEnum GLError
GLErrorUnsupportedFormat = Int
1
fromEnum GLError
GLErrorUnsupportedProfile = Int
2
fromEnum GLError
GLErrorCompilationFailed = Int
3
fromEnum GLError
GLErrorLinkFailed = Int
4
fromEnum (AnotherGLError Int
k) = Int
k
toEnum :: Int -> GLError
toEnum Int
0 = GLError
GLErrorNotAvailable
toEnum Int
1 = GLError
GLErrorUnsupportedFormat
toEnum Int
2 = GLError
GLErrorUnsupportedProfile
toEnum Int
3 = GLError
GLErrorCompilationFailed
toEnum Int
4 = GLError
GLErrorLinkFailed
toEnum Int
k = Int -> GLError
AnotherGLError Int
k
instance P.Ord GLError where
compare :: GLError -> GLError -> Ordering
compare GLError
a GLError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (GLError -> Int
forall a. Enum a => a -> Int
P.fromEnum GLError
a) (GLError -> Int
forall a. Enum a => a -> Int
P.fromEnum GLError
b)
instance GErrorClass GLError where
gerrorClassDomain :: GLError -> Text
gerrorClassDomain GLError
_ = Text
"gdk-gl-error-quark"
catchGLError ::
IO a ->
(GLError -> GErrorMessage -> IO a) ->
IO a
catchGLError :: forall a. IO a -> (GLError -> Text -> IO a) -> IO a
catchGLError = IO a -> (GLError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleGLError ::
(GLError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleGLError :: forall a. (GLError -> Text -> IO a) -> IO a -> IO a
handleGLError = (GLError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
type instance O.ParentTypes GLError = '[]
instance O.HasParentTypes GLError
foreign import ccall "gdk_gl_error_get_type" c_gdk_gl_error_get_type ::
IO GType
instance B.Types.TypedObject GLError where
glibType :: IO GType
glibType = IO GType
c_gdk_gl_error_get_type
instance B.Types.BoxedEnum GLError
data FullscreenMode =
FullscreenModeCurrentMonitor
| FullscreenModeAllMonitors
| AnotherFullscreenMode Int
deriving (Int -> FullscreenMode -> ShowS
[FullscreenMode] -> ShowS
FullscreenMode -> String
(Int -> FullscreenMode -> ShowS)
-> (FullscreenMode -> String)
-> ([FullscreenMode] -> ShowS)
-> Show FullscreenMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FullscreenMode -> ShowS
showsPrec :: Int -> FullscreenMode -> ShowS
$cshow :: FullscreenMode -> String
show :: FullscreenMode -> String
$cshowList :: [FullscreenMode] -> ShowS
showList :: [FullscreenMode] -> ShowS
Show, FullscreenMode -> FullscreenMode -> Bool
(FullscreenMode -> FullscreenMode -> Bool)
-> (FullscreenMode -> FullscreenMode -> Bool) -> Eq FullscreenMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FullscreenMode -> FullscreenMode -> Bool
== :: FullscreenMode -> FullscreenMode -> Bool
$c/= :: FullscreenMode -> FullscreenMode -> Bool
/= :: FullscreenMode -> FullscreenMode -> Bool
Eq)
instance P.Enum FullscreenMode where
fromEnum :: FullscreenMode -> Int
fromEnum FullscreenMode
FullscreenModeCurrentMonitor = Int
0
fromEnum FullscreenMode
FullscreenModeAllMonitors = Int
1
fromEnum (AnotherFullscreenMode Int
k) = Int
k
toEnum :: Int -> FullscreenMode
toEnum Int
0 = FullscreenMode
FullscreenModeCurrentMonitor
toEnum Int
1 = FullscreenMode
FullscreenModeAllMonitors
toEnum Int
k = Int -> FullscreenMode
AnotherFullscreenMode Int
k
instance P.Ord FullscreenMode where
compare :: FullscreenMode -> FullscreenMode -> Ordering
compare FullscreenMode
a FullscreenMode
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (FullscreenMode -> Int
forall a. Enum a => a -> Int
P.fromEnum FullscreenMode
a) (FullscreenMode -> Int
forall a. Enum a => a -> Int
P.fromEnum FullscreenMode
b)
type instance O.ParentTypes FullscreenMode = '[]
instance O.HasParentTypes FullscreenMode
foreign import ccall "gdk_fullscreen_mode_get_type" c_gdk_fullscreen_mode_get_type ::
IO GType
instance B.Types.TypedObject FullscreenMode where
glibType :: IO GType
glibType = IO GType
c_gdk_fullscreen_mode_get_type
instance B.Types.BoxedEnum FullscreenMode
data EventType =
EventTypeDelete
| EventTypeMotionNotify
| EventTypeButtonPress
| EventTypeButtonRelease
| EventTypeKeyPress
| EventTypeKeyRelease
| EventTypeEnterNotify
| EventTypeLeaveNotify
| EventTypeFocusChange
| EventTypeProximityIn
| EventTypeProximityOut
| EventTypeDragEnter
| EventTypeDragLeave
| EventTypeDragMotion
| EventTypeDropStart
| EventTypeScroll
| EventTypeGrabBroken
| EventTypeTouchBegin
| EventTypeTouchUpdate
| EventTypeTouchEnd
| EventTypeTouchCancel
| EventTypeTouchpadSwipe
| EventTypeTouchpadPinch
| EventTypePadButtonPress
| EventTypePadButtonRelease
| EventTypePadRing
| EventTypePadStrip
| EventTypePadGroupMode
| EventTypeTouchpadHold
| EventTypeEventLast
| AnotherEventType Int
deriving (Int -> EventType -> ShowS
[EventType] -> ShowS
EventType -> String
(Int -> EventType -> ShowS)
-> (EventType -> String)
-> ([EventType] -> ShowS)
-> Show EventType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> EventType -> ShowS
showsPrec :: Int -> EventType -> ShowS
$cshow :: EventType -> String
show :: EventType -> String
$cshowList :: [EventType] -> ShowS
showList :: [EventType] -> ShowS
Show, EventType -> EventType -> Bool
(EventType -> EventType -> Bool)
-> (EventType -> EventType -> Bool) -> Eq EventType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: EventType -> EventType -> Bool
== :: EventType -> EventType -> Bool
$c/= :: EventType -> EventType -> Bool
/= :: EventType -> EventType -> Bool
Eq)
instance P.Enum EventType where
fromEnum :: EventType -> Int
fromEnum EventType
EventTypeDelete = Int
0
fromEnum EventType
EventTypeMotionNotify = Int
1
fromEnum EventType
EventTypeButtonPress = Int
2
fromEnum EventType
EventTypeButtonRelease = Int
3
fromEnum EventType
EventTypeKeyPress = Int
4
fromEnum EventType
EventTypeKeyRelease = Int
5
fromEnum EventType
EventTypeEnterNotify = Int
6
fromEnum EventType
EventTypeLeaveNotify = Int
7
fromEnum EventType
EventTypeFocusChange = Int
8
fromEnum EventType
EventTypeProximityIn = Int
9
fromEnum EventType
EventTypeProximityOut = Int
10
fromEnum EventType
EventTypeDragEnter = Int
11
fromEnum EventType
EventTypeDragLeave = Int
12
fromEnum EventType
EventTypeDragMotion = Int
13
fromEnum EventType
EventTypeDropStart = Int
14
fromEnum EventType
EventTypeScroll = Int
15
fromEnum EventType
EventTypeGrabBroken = Int
16
fromEnum EventType
EventTypeTouchBegin = Int
17
fromEnum EventType
EventTypeTouchUpdate = Int
18
fromEnum EventType
EventTypeTouchEnd = Int
19
fromEnum EventType
EventTypeTouchCancel = Int
20
fromEnum EventType
EventTypeTouchpadSwipe = Int
21
fromEnum EventType
EventTypeTouchpadPinch = Int
22
fromEnum EventType
EventTypePadButtonPress = Int
23
fromEnum EventType
EventTypePadButtonRelease = Int
24
fromEnum EventType
EventTypePadRing = Int
25
fromEnum EventType
EventTypePadStrip = Int
26
fromEnum EventType
EventTypePadGroupMode = Int
27
fromEnum EventType
EventTypeTouchpadHold = Int
28
fromEnum EventType
EventTypeEventLast = Int
29
fromEnum (AnotherEventType Int
k) = Int
k
toEnum :: Int -> EventType
toEnum Int
0 = EventType
EventTypeDelete
toEnum Int
1 = EventType
EventTypeMotionNotify
toEnum Int
2 = EventType
EventTypeButtonPress
toEnum Int
3 = EventType
EventTypeButtonRelease
toEnum Int
4 = EventType
EventTypeKeyPress
toEnum Int
5 = EventType
EventTypeKeyRelease
toEnum Int
6 = EventType
EventTypeEnterNotify
toEnum Int
7 = EventType
EventTypeLeaveNotify
toEnum Int
8 = EventType
EventTypeFocusChange
toEnum Int
9 = EventType
EventTypeProximityIn
toEnum Int
10 = EventType
EventTypeProximityOut
toEnum Int
11 = EventType
EventTypeDragEnter
toEnum Int
12 = EventType
EventTypeDragLeave
toEnum Int
13 = EventType
EventTypeDragMotion
toEnum Int
14 = EventType
EventTypeDropStart
toEnum Int
15 = EventType
EventTypeScroll
toEnum Int
16 = EventType
EventTypeGrabBroken
toEnum Int
17 = EventType
EventTypeTouchBegin
toEnum Int
18 = EventType
EventTypeTouchUpdate
toEnum Int
19 = EventType
EventTypeTouchEnd
toEnum Int
20 = EventType
EventTypeTouchCancel
toEnum Int
21 = EventType
EventTypeTouchpadSwipe
toEnum Int
22 = EventType
EventTypeTouchpadPinch
toEnum Int
23 = EventType
EventTypePadButtonPress
toEnum Int
24 = EventType
EventTypePadButtonRelease
toEnum Int
25 = EventType
EventTypePadRing
toEnum Int
26 = EventType
EventTypePadStrip
toEnum Int
27 = EventType
EventTypePadGroupMode
toEnum Int
28 = EventType
EventTypeTouchpadHold
toEnum Int
29 = EventType
EventTypeEventLast
toEnum Int
k = Int -> EventType
AnotherEventType Int
k
instance P.Ord EventType where
compare :: EventType -> EventType -> Ordering
compare EventType
a EventType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (EventType -> Int
forall a. Enum a => a -> Int
P.fromEnum EventType
a) (EventType -> Int
forall a. Enum a => a -> Int
P.fromEnum EventType
b)
type instance O.ParentTypes EventType = '[]
instance O.HasParentTypes EventType
foreign import ccall "gdk_event_type_get_type" c_gdk_event_type_get_type ::
IO GType
instance B.Types.TypedObject EventType where
glibType :: IO GType
glibType = IO GType
c_gdk_event_type_get_type
instance B.Types.BoxedEnum EventType
data DragCancelReason =
DragCancelReasonNoTarget
| DragCancelReasonUserCancelled
| DragCancelReasonError
| AnotherDragCancelReason Int
deriving (Int -> DragCancelReason -> ShowS
[DragCancelReason] -> ShowS
DragCancelReason -> String
(Int -> DragCancelReason -> ShowS)
-> (DragCancelReason -> String)
-> ([DragCancelReason] -> ShowS)
-> Show DragCancelReason
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DragCancelReason -> ShowS
showsPrec :: Int -> DragCancelReason -> ShowS
$cshow :: DragCancelReason -> String
show :: DragCancelReason -> String
$cshowList :: [DragCancelReason] -> ShowS
showList :: [DragCancelReason] -> ShowS
Show, DragCancelReason -> DragCancelReason -> Bool
(DragCancelReason -> DragCancelReason -> Bool)
-> (DragCancelReason -> DragCancelReason -> Bool)
-> Eq DragCancelReason
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DragCancelReason -> DragCancelReason -> Bool
== :: DragCancelReason -> DragCancelReason -> Bool
$c/= :: DragCancelReason -> DragCancelReason -> Bool
/= :: DragCancelReason -> DragCancelReason -> Bool
Eq)
instance P.Enum DragCancelReason where
fromEnum :: DragCancelReason -> Int
fromEnum DragCancelReason
DragCancelReasonNoTarget = Int
0
fromEnum DragCancelReason
DragCancelReasonUserCancelled = Int
1
fromEnum DragCancelReason
DragCancelReasonError = Int
2
fromEnum (AnotherDragCancelReason Int
k) = Int
k
toEnum :: Int -> DragCancelReason
toEnum Int
0 = DragCancelReason
DragCancelReasonNoTarget
toEnum Int
1 = DragCancelReason
DragCancelReasonUserCancelled
toEnum Int
2 = DragCancelReason
DragCancelReasonError
toEnum Int
k = Int -> DragCancelReason
AnotherDragCancelReason Int
k
instance P.Ord DragCancelReason where
compare :: DragCancelReason -> DragCancelReason -> Ordering
compare DragCancelReason
a DragCancelReason
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (DragCancelReason -> Int
forall a. Enum a => a -> Int
P.fromEnum DragCancelReason
a) (DragCancelReason -> Int
forall a. Enum a => a -> Int
P.fromEnum DragCancelReason
b)
type instance O.ParentTypes DragCancelReason = '[]
instance O.HasParentTypes DragCancelReason
foreign import ccall "gdk_drag_cancel_reason_get_type" c_gdk_drag_cancel_reason_get_type ::
IO GType
instance B.Types.TypedObject DragCancelReason where
glibType :: IO GType
glibType = IO GType
c_gdk_drag_cancel_reason_get_type
instance B.Types.BoxedEnum DragCancelReason
data DmabufError =
DmabufErrorNotAvailable
| DmabufErrorUnsupportedFormat
| DmabufErrorCreationFailed
| AnotherDmabufError Int
deriving (Int -> DmabufError -> ShowS
[DmabufError] -> ShowS
DmabufError -> String
(Int -> DmabufError -> ShowS)
-> (DmabufError -> String)
-> ([DmabufError] -> ShowS)
-> Show DmabufError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DmabufError -> ShowS
showsPrec :: Int -> DmabufError -> ShowS
$cshow :: DmabufError -> String
show :: DmabufError -> String
$cshowList :: [DmabufError] -> ShowS
showList :: [DmabufError] -> ShowS
Show, DmabufError -> DmabufError -> Bool
(DmabufError -> DmabufError -> Bool)
-> (DmabufError -> DmabufError -> Bool) -> Eq DmabufError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DmabufError -> DmabufError -> Bool
== :: DmabufError -> DmabufError -> Bool
$c/= :: DmabufError -> DmabufError -> Bool
/= :: DmabufError -> DmabufError -> Bool
Eq)
instance P.Enum DmabufError where
fromEnum :: DmabufError -> Int
fromEnum DmabufError
DmabufErrorNotAvailable = Int
0
fromEnum DmabufError
DmabufErrorUnsupportedFormat = Int
1
fromEnum DmabufError
DmabufErrorCreationFailed = Int
2
fromEnum (AnotherDmabufError Int
k) = Int
k
toEnum :: Int -> DmabufError
toEnum Int
0 = DmabufError
DmabufErrorNotAvailable
toEnum Int
1 = DmabufError
DmabufErrorUnsupportedFormat
toEnum Int
2 = DmabufError
DmabufErrorCreationFailed
toEnum Int
k = Int -> DmabufError
AnotherDmabufError Int
k
instance P.Ord DmabufError where
compare :: DmabufError -> DmabufError -> Ordering
compare DmabufError
a DmabufError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (DmabufError -> Int
forall a. Enum a => a -> Int
P.fromEnum DmabufError
a) (DmabufError -> Int
forall a. Enum a => a -> Int
P.fromEnum DmabufError
b)
instance GErrorClass DmabufError where
gerrorClassDomain :: DmabufError -> Text
gerrorClassDomain DmabufError
_ = Text
"gdk-dmabuf-error-quark"
catchDmabufError ::
IO a ->
(DmabufError -> GErrorMessage -> IO a) ->
IO a
catchDmabufError :: forall a. IO a -> (DmabufError -> Text -> IO a) -> IO a
catchDmabufError = IO a -> (DmabufError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleDmabufError ::
(DmabufError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleDmabufError :: forall a. (DmabufError -> Text -> IO a) -> IO a -> IO a
handleDmabufError = (DmabufError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
type instance O.ParentTypes DmabufError = '[]
instance O.HasParentTypes DmabufError
foreign import ccall "gdk_dmabuf_error_get_type" c_gdk_dmabuf_error_get_type ::
IO GType
instance B.Types.TypedObject DmabufError where
glibType :: IO GType
glibType = IO GType
c_gdk_dmabuf_error_get_type
instance B.Types.BoxedEnum DmabufError
data DeviceToolType =
DeviceToolTypeUnknown
| DeviceToolTypePen
| DeviceToolTypeEraser
| DeviceToolTypeBrush
| DeviceToolTypePencil
| DeviceToolTypeAirbrush
| DeviceToolTypeMouse
| DeviceToolTypeLens
| AnotherDeviceToolType Int
deriving (Int -> DeviceToolType -> ShowS
[DeviceToolType] -> ShowS
DeviceToolType -> String
(Int -> DeviceToolType -> ShowS)
-> (DeviceToolType -> String)
-> ([DeviceToolType] -> ShowS)
-> Show DeviceToolType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DeviceToolType -> ShowS
showsPrec :: Int -> DeviceToolType -> ShowS
$cshow :: DeviceToolType -> String
show :: DeviceToolType -> String
$cshowList :: [DeviceToolType] -> ShowS
showList :: [DeviceToolType] -> ShowS
Show, DeviceToolType -> DeviceToolType -> Bool
(DeviceToolType -> DeviceToolType -> Bool)
-> (DeviceToolType -> DeviceToolType -> Bool) -> Eq DeviceToolType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DeviceToolType -> DeviceToolType -> Bool
== :: DeviceToolType -> DeviceToolType -> Bool
$c/= :: DeviceToolType -> DeviceToolType -> Bool
/= :: DeviceToolType -> DeviceToolType -> Bool
Eq)
instance P.Enum DeviceToolType where
fromEnum :: DeviceToolType -> Int
fromEnum DeviceToolType
DeviceToolTypeUnknown = Int
0
fromEnum DeviceToolType
DeviceToolTypePen = Int
1
fromEnum DeviceToolType
DeviceToolTypeEraser = Int
2
fromEnum DeviceToolType
DeviceToolTypeBrush = Int
3
fromEnum DeviceToolType
DeviceToolTypePencil = Int
4
fromEnum DeviceToolType
DeviceToolTypeAirbrush = Int
5
fromEnum DeviceToolType
DeviceToolTypeMouse = Int
6
fromEnum DeviceToolType
DeviceToolTypeLens = Int
7
fromEnum (AnotherDeviceToolType Int
k) = Int
k
toEnum :: Int -> DeviceToolType
toEnum Int
0 = DeviceToolType
DeviceToolTypeUnknown
toEnum Int
1 = DeviceToolType
DeviceToolTypePen
toEnum Int
2 = DeviceToolType
DeviceToolTypeEraser
toEnum Int
3 = DeviceToolType
DeviceToolTypeBrush
toEnum Int
4 = DeviceToolType
DeviceToolTypePencil
toEnum Int
5 = DeviceToolType
DeviceToolTypeAirbrush
toEnum Int
6 = DeviceToolType
DeviceToolTypeMouse
toEnum Int
7 = DeviceToolType
DeviceToolTypeLens
toEnum Int
k = Int -> DeviceToolType
AnotherDeviceToolType Int
k
instance P.Ord DeviceToolType where
compare :: DeviceToolType -> DeviceToolType -> Ordering
compare DeviceToolType
a DeviceToolType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (DeviceToolType -> Int
forall a. Enum a => a -> Int
P.fromEnum DeviceToolType
a) (DeviceToolType -> Int
forall a. Enum a => a -> Int
P.fromEnum DeviceToolType
b)
type instance O.ParentTypes DeviceToolType = '[]
instance O.HasParentTypes DeviceToolType
foreign import ccall "gdk_device_tool_type_get_type" c_gdk_device_tool_type_get_type ::
IO GType
instance B.Types.TypedObject DeviceToolType where
glibType :: IO GType
glibType = IO GType
c_gdk_device_tool_type_get_type
instance B.Types.BoxedEnum DeviceToolType
data DevicePadFeature =
DevicePadFeatureButton
| DevicePadFeatureRing
| DevicePadFeatureStrip
| AnotherDevicePadFeature Int
deriving (Int -> DevicePadFeature -> ShowS
[DevicePadFeature] -> ShowS
DevicePadFeature -> String
(Int -> DevicePadFeature -> ShowS)
-> (DevicePadFeature -> String)
-> ([DevicePadFeature] -> ShowS)
-> Show DevicePadFeature
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DevicePadFeature -> ShowS
showsPrec :: Int -> DevicePadFeature -> ShowS
$cshow :: DevicePadFeature -> String
show :: DevicePadFeature -> String
$cshowList :: [DevicePadFeature] -> ShowS
showList :: [DevicePadFeature] -> ShowS
Show, DevicePadFeature -> DevicePadFeature -> Bool
(DevicePadFeature -> DevicePadFeature -> Bool)
-> (DevicePadFeature -> DevicePadFeature -> Bool)
-> Eq DevicePadFeature
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DevicePadFeature -> DevicePadFeature -> Bool
== :: DevicePadFeature -> DevicePadFeature -> Bool
$c/= :: DevicePadFeature -> DevicePadFeature -> Bool
/= :: DevicePadFeature -> DevicePadFeature -> Bool
Eq)
instance P.Enum DevicePadFeature where
fromEnum :: DevicePadFeature -> Int
fromEnum DevicePadFeature
DevicePadFeatureButton = Int
0
fromEnum DevicePadFeature
DevicePadFeatureRing = Int
1
fromEnum DevicePadFeature
DevicePadFeatureStrip = Int
2
fromEnum (AnotherDevicePadFeature Int
k) = Int
k
toEnum :: Int -> DevicePadFeature
toEnum Int
0 = DevicePadFeature
DevicePadFeatureButton
toEnum Int
1 = DevicePadFeature
DevicePadFeatureRing
toEnum Int
2 = DevicePadFeature
DevicePadFeatureStrip
toEnum Int
k = Int -> DevicePadFeature
AnotherDevicePadFeature Int
k
instance P.Ord DevicePadFeature where
compare :: DevicePadFeature -> DevicePadFeature -> Ordering
compare DevicePadFeature
a DevicePadFeature
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (DevicePadFeature -> Int
forall a. Enum a => a -> Int
P.fromEnum DevicePadFeature
a) (DevicePadFeature -> Int
forall a. Enum a => a -> Int
P.fromEnum DevicePadFeature
b)
type instance O.ParentTypes DevicePadFeature = '[]
instance O.HasParentTypes DevicePadFeature
foreign import ccall "gdk_device_pad_feature_get_type" c_gdk_device_pad_feature_get_type ::
IO GType
instance B.Types.TypedObject DevicePadFeature where
glibType :: IO GType
glibType = IO GType
c_gdk_device_pad_feature_get_type
instance B.Types.BoxedEnum DevicePadFeature
data CrossingMode =
CrossingModeNormal
| CrossingModeGrab
| CrossingModeUngrab
| CrossingModeGtkGrab
| CrossingModeGtkUngrab
| CrossingModeStateChanged
| CrossingModeTouchBegin
| CrossingModeTouchEnd
| CrossingModeDeviceSwitch
| AnotherCrossingMode Int
deriving (Int -> CrossingMode -> ShowS
[CrossingMode] -> ShowS
CrossingMode -> String
(Int -> CrossingMode -> ShowS)
-> (CrossingMode -> String)
-> ([CrossingMode] -> ShowS)
-> Show CrossingMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CrossingMode -> ShowS
showsPrec :: Int -> CrossingMode -> ShowS
$cshow :: CrossingMode -> String
show :: CrossingMode -> String
$cshowList :: [CrossingMode] -> ShowS
showList :: [CrossingMode] -> ShowS
Show, CrossingMode -> CrossingMode -> Bool
(CrossingMode -> CrossingMode -> Bool)
-> (CrossingMode -> CrossingMode -> Bool) -> Eq CrossingMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CrossingMode -> CrossingMode -> Bool
== :: CrossingMode -> CrossingMode -> Bool
$c/= :: CrossingMode -> CrossingMode -> Bool
/= :: CrossingMode -> CrossingMode -> Bool
Eq)
instance P.Enum CrossingMode where
fromEnum :: CrossingMode -> Int
fromEnum CrossingMode
CrossingModeNormal = Int
0
fromEnum CrossingMode
CrossingModeGrab = Int
1
fromEnum CrossingMode
CrossingModeUngrab = Int
2
fromEnum CrossingMode
CrossingModeGtkGrab = Int
3
fromEnum CrossingMode
CrossingModeGtkUngrab = Int
4
fromEnum CrossingMode
CrossingModeStateChanged = Int
5
fromEnum CrossingMode
CrossingModeTouchBegin = Int
6
fromEnum CrossingMode
CrossingModeTouchEnd = Int
7
fromEnum CrossingMode
CrossingModeDeviceSwitch = Int
8
fromEnum (AnotherCrossingMode Int
k) = Int
k
toEnum :: Int -> CrossingMode
toEnum Int
0 = CrossingMode
CrossingModeNormal
toEnum Int
1 = CrossingMode
CrossingModeGrab
toEnum Int
2 = CrossingMode
CrossingModeUngrab
toEnum Int
3 = CrossingMode
CrossingModeGtkGrab
toEnum Int
4 = CrossingMode
CrossingModeGtkUngrab
toEnum Int
5 = CrossingMode
CrossingModeStateChanged
toEnum Int
6 = CrossingMode
CrossingModeTouchBegin
toEnum Int
7 = CrossingMode
CrossingModeTouchEnd
toEnum Int
8 = CrossingMode
CrossingModeDeviceSwitch
toEnum Int
k = Int -> CrossingMode
AnotherCrossingMode Int
k
instance P.Ord CrossingMode where
compare :: CrossingMode -> CrossingMode -> Ordering
compare CrossingMode
a CrossingMode
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (CrossingMode -> Int
forall a. Enum a => a -> Int
P.fromEnum CrossingMode
a) (CrossingMode -> Int
forall a. Enum a => a -> Int
P.fromEnum CrossingMode
b)
type instance O.ParentTypes CrossingMode = '[]
instance O.HasParentTypes CrossingMode
foreign import ccall "gdk_crossing_mode_get_type" c_gdk_crossing_mode_get_type ::
IO GType
instance B.Types.TypedObject CrossingMode where
glibType :: IO GType
glibType = IO GType
c_gdk_crossing_mode_get_type
instance B.Types.BoxedEnum CrossingMode
data AxisUse =
AxisUseIgnore
| AxisUseX
| AxisUseY
| AxisUseDeltaX
| AxisUseDeltaY
| AxisUsePressure
| AxisUseXtilt
| AxisUseYtilt
| AxisUseWheel
| AxisUseDistance
| AxisUseRotation
| AxisUseSlider
| AxisUseLast
| AnotherAxisUse Int
deriving (Int -> AxisUse -> ShowS
[AxisUse] -> ShowS
AxisUse -> String
(Int -> AxisUse -> ShowS)
-> (AxisUse -> String) -> ([AxisUse] -> ShowS) -> Show AxisUse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AxisUse -> ShowS
showsPrec :: Int -> AxisUse -> ShowS
$cshow :: AxisUse -> String
show :: AxisUse -> String
$cshowList :: [AxisUse] -> ShowS
showList :: [AxisUse] -> ShowS
Show, AxisUse -> AxisUse -> Bool
(AxisUse -> AxisUse -> Bool)
-> (AxisUse -> AxisUse -> Bool) -> Eq AxisUse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AxisUse -> AxisUse -> Bool
== :: AxisUse -> AxisUse -> Bool
$c/= :: AxisUse -> AxisUse -> Bool
/= :: AxisUse -> AxisUse -> Bool
Eq)
instance P.Enum AxisUse where
fromEnum :: AxisUse -> Int
fromEnum AxisUse
AxisUseIgnore = Int
0
fromEnum AxisUse
AxisUseX = Int
1
fromEnum AxisUse
AxisUseY = Int
2
fromEnum AxisUse
AxisUseDeltaX = Int
3
fromEnum AxisUse
AxisUseDeltaY = Int
4
fromEnum AxisUse
AxisUsePressure = Int
5
fromEnum AxisUse
AxisUseXtilt = Int
6
fromEnum AxisUse
AxisUseYtilt = Int
7
fromEnum AxisUse
AxisUseWheel = Int
8
fromEnum AxisUse
AxisUseDistance = Int
9
fromEnum AxisUse
AxisUseRotation = Int
10
fromEnum AxisUse
AxisUseSlider = Int
11
fromEnum AxisUse
AxisUseLast = Int
12
fromEnum (AnotherAxisUse Int
k) = Int
k
toEnum :: Int -> AxisUse
toEnum Int
0 = AxisUse
AxisUseIgnore
toEnum Int
1 = AxisUse
AxisUseX
toEnum Int
2 = AxisUse
AxisUseY
toEnum Int
3 = AxisUse
AxisUseDeltaX
toEnum Int
4 = AxisUse
AxisUseDeltaY
toEnum Int
5 = AxisUse
AxisUsePressure
toEnum Int
6 = AxisUse
AxisUseXtilt
toEnum Int
7 = AxisUse
AxisUseYtilt
toEnum Int
8 = AxisUse
AxisUseWheel
toEnum Int
9 = AxisUse
AxisUseDistance
toEnum Int
10 = AxisUse
AxisUseRotation
toEnum Int
11 = AxisUse
AxisUseSlider
toEnum Int
12 = AxisUse
AxisUseLast
toEnum Int
k = Int -> AxisUse
AnotherAxisUse Int
k
instance P.Ord AxisUse where
compare :: AxisUse -> AxisUse -> Ordering
compare AxisUse
a AxisUse
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (AxisUse -> Int
forall a. Enum a => a -> Int
P.fromEnum AxisUse
a) (AxisUse -> Int
forall a. Enum a => a -> Int
P.fromEnum AxisUse
b)
type instance O.ParentTypes AxisUse = '[]
instance O.HasParentTypes AxisUse
foreign import ccall "gdk_axis_use_get_type" c_gdk_axis_use_get_type ::
IO GType
instance B.Types.TypedObject AxisUse where
glibType :: IO GType
glibType = IO GType
c_gdk_axis_use_get_type
instance B.Types.BoxedEnum AxisUse