gi-gdk4-4.0.10: Gdk bindings

Copyright | Will Thompson and Iñaki García Etxebarria
License | LGPL-2.1
Maintainer | Iñaki García Etxebarria
Safe Haskell | None
Language | Haskell2010

GI.Gdk.Enums

Contents

- Enumerations
  - AxisUse
  - CicpRange
  - ColorChannel
  - CrossingMode
  - DevicePadFeature
  - DeviceToolType
  - DmabufError
  - DragCancelReason
  - EventType
  - FrameResult
  - FullscreenMode
  - GLError
  - Gravity
  - InputSource
  - KeyMatch
  - MemoryFormat
  - NotifyType
  - ScrollDirection
  - ScrollRelativeDirection
  - ScrollUnit
  - SubpixelLayout
  - SurfaceEdge
  - TextureError
  - TitlebarGesture
  - TouchpadGesturePhase
  - VulkanError

Description

Synopsis

- data AxisUse
  - = AxisUseIgnore
  - | AxisUseX
  - | AxisUseY
  - | AxisUseDeltaX
  - | AxisUseDeltaY
  - | AxisUsePressure
  - | AxisUseXtilt
  - | AxisUseYtilt
  - | AxisUseWheel
  - | AxisUseDistance
  - | AxisUseRotation
  - | AxisUseSlider
  - | AxisUseLast
  - | AnotherAxisUse Int
- data CicpRange
  - = CicpRangeNarrow
  - | CicpRangeFull
  - | AnotherCicpRange Int
- data ColorChannel
  - = ColorChannelRed
  - | ColorChannelGreen
  - | ColorChannelBlue
  - | ColorChannelAlpha
  - | AnotherColorChannel Int
- data CrossingMode
  - = CrossingModeNormal
  - | CrossingModeGrab
  - | CrossingModeUngrab
  - | CrossingModeGtkGrab
  - | CrossingModeGtkUngrab
  - | CrossingModeStateChanged
  - | CrossingModeTouchBegin
  - | CrossingModeTouchEnd
  - | CrossingModeDeviceSwitch
  - | AnotherCrossingMode Int
- data DevicePadFeature
  - = DevicePadFeatureButton
  - | DevicePadFeatureRing
  - | DevicePadFeatureStrip
  - | AnotherDevicePadFeature Int
- data DeviceToolType
  - = DeviceToolTypeUnknown
  - | DeviceToolTypePen
  - | DeviceToolTypeEraser
  - | DeviceToolTypeBrush
  - | DeviceToolTypePencil
  - | DeviceToolTypeAirbrush
  - | DeviceToolTypeMouse
  - | DeviceToolTypeLens
  - | AnotherDeviceToolType Int
- data DmabufError
  - = DmabufErrorNotAvailable
  - | DmabufErrorUnsupportedFormat
  - | DmabufErrorCreationFailed
  - | AnotherDmabufError Int
- catchDmabufError :: IO a -> (DmabufError -> GErrorMessage -> IO a) -> IO a
- handleDmabufError :: (DmabufError -> GErrorMessage -> IO a) -> IO a -> IO a
- data DragCancelReason
  - = DragCancelReasonNoTarget
  - | DragCancelReasonUserCancelled
  - | DragCancelReasonError
  - | AnotherDragCancelReason Int
- 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
  - | EventTypePadDial
  - | EventTypeEventLast
  - | AnotherEventType Int
- data FrameResult
  - = FrameResultPreparing
  - | FrameResultSkipped
  - | FrameResultEmpty
  - | FrameResultSubmitted
  - | FrameResultOutstanding
  - | FrameResultDiscarded
  - | FrameResultPresented
  - | AnotherFrameResult Int
- data FullscreenMode
  - = FullscreenModeCurrentMonitor
  - | FullscreenModeAllMonitors
  - | AnotherFullscreenMode Int
- data GLError
  - = GLErrorNotAvailable
  - | GLErrorUnsupportedFormat
  - | GLErrorUnsupportedProfile
  - | GLErrorCompilationFailed
  - | GLErrorLinkFailed
  - | AnotherGLError Int
- catchGLError :: IO a -> (GLError -> GErrorMessage -> IO a) -> IO a
- handleGLError :: (GLError -> GErrorMessage -> IO a) -> IO a -> IO a
- data Gravity
  - = GravityNorthWest
  - | GravityNorth
  - | GravityNorthEast
  - | GravityWest
  - | GravityCenter
  - | GravityEast
  - | GravitySouthWest
  - | GravitySouth
  - | GravitySouthEast
  - | GravityStatic
  - | AnotherGravity Int
- data InputSource
  - = InputSourceMouse
  - | InputSourcePen
  - | InputSourceKeyboard
  - | InputSourceTouchscreen
  - | InputSourceTouchpad
  - | InputSourceTrackpoint
  - | InputSourceTabletPad
  - | AnotherInputSource Int
- data KeyMatch
  - = KeyMatchNone
  - | KeyMatchPartial
  - | KeyMatchExact
  - | AnotherKeyMatch Int
- 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
  - | MemoryFormatG8B8r8420
  - | MemoryFormatG8R8b8420
  - | MemoryFormatG8B8r8422
  - | MemoryFormatG8R8b8422
  - | MemoryFormatG8B8r8444
  - | MemoryFormatG8R8b8444
  - | MemoryFormatG10x6B10x6r10x6420
  - | MemoryFormatG12x4B12x4r12x4420
  - | MemoryFormatG16B16r16420
  - | MemoryFormatG8B8R8410
  - | MemoryFormatG8R8B8410
  - | MemoryFormatG8B8R8411
  - | MemoryFormatG8R8B8411
  - | MemoryFormatG8B8R8420
  - | MemoryFormatG8R8B8420
  - | MemoryFormatG8B8R8422
  - | MemoryFormatG8R8B8422
  - | MemoryFormatG8B8R8444
  - | MemoryFormatG8R8B8444
  - | MemoryFormatG8b8g8r8422
  - | MemoryFormatG8r8g8b8422
  - | MemoryFormatR8g8b8g8422
  - | MemoryFormatB8g8r8g8422
  - | MemoryFormatX6g10X6b10X6r10420
  - | MemoryFormatX6g10X6b10X6r10422
  - | MemoryFormatX6g10X6b10X6r10444
  - | MemoryFormatX4g12X4b12X4r12420
  - | MemoryFormatX4g12X4b12X4r12422
  - | MemoryFormatX4g12X4b12X4r12444
  - | MemoryFormatG16B16R16420
  - | MemoryFormatG16B16R16422
  - | MemoryFormatG16B16R16444
  - | MemoryFormatArgb2101010Premultiplied
  - | MemoryFormatArgb2101010
  - | MemoryFormatXrgb2101010
  - | MemoryFormatAbgr2101010Premultiplied
  - | MemoryFormatAbgr2101010
  - | MemoryFormatXbgr2101010
  - | MemoryFormatNFormats
  - | AnotherMemoryFormat Int
- data NotifyType
  - = NotifyTypeAncestor
  - | NotifyTypeVirtual
  - | NotifyTypeInferior
  - | NotifyTypeNonlinear
  - | NotifyTypeNonlinearVirtual
  - | NotifyTypeUnknown
  - | AnotherNotifyType Int
- data ScrollDirection
  - = ScrollDirectionUp
  - | ScrollDirectionDown
  - | ScrollDirectionLeft
  - | ScrollDirectionRight
  - | ScrollDirectionSmooth
  - | AnotherScrollDirection Int
- data ScrollRelativeDirection
  - = ScrollRelativeDirectionIdentical
  - | ScrollRelativeDirectionInverted
  - | ScrollRelativeDirectionUnknown
  - | AnotherScrollRelativeDirection Int
- data ScrollUnit
  - = ScrollUnitWheel
  - | ScrollUnitSurface
  - | AnotherScrollUnit Int
- data SubpixelLayout
  - = SubpixelLayoutUnknown
  - | SubpixelLayoutNone
  - | SubpixelLayoutHorizontalRgb
  - | SubpixelLayoutHorizontalBgr
  - | SubpixelLayoutVerticalRgb
  - | SubpixelLayoutVerticalBgr
  - | AnotherSubpixelLayout Int
- data SurfaceEdge
  - = SurfaceEdgeNorthWest
  - | SurfaceEdgeNorth
  - | SurfaceEdgeNorthEast
  - | SurfaceEdgeWest
  - | SurfaceEdgeEast
  - | SurfaceEdgeSouthWest
  - | SurfaceEdgeSouth
  - | SurfaceEdgeSouthEast
  - | AnotherSurfaceEdge Int
- data TextureError
  - = TextureErrorTooLarge
  - | TextureErrorCorruptImage
  - | TextureErrorUnsupportedContent
  - | TextureErrorUnsupportedFormat
  - | AnotherTextureError Int
- catchTextureError :: IO a -> (TextureError -> GErrorMessage -> IO a) -> IO a
- handleTextureError :: (TextureError -> GErrorMessage -> IO a) -> IO a -> IO a
- data TitlebarGesture
  - = TitlebarGestureDoubleClick
  - | TitlebarGestureRightClick
  - | TitlebarGestureMiddleClick
  - | AnotherTitlebarGesture Int
- data TouchpadGesturePhase
  - = TouchpadGesturePhaseBegin
  - | TouchpadGesturePhaseUpdate
  - | TouchpadGesturePhaseEnd
  - | TouchpadGesturePhaseCancel
  - | AnotherTouchpadGesturePhase Int
- data VulkanError
  - = VulkanErrorUnsupported
  - | VulkanErrorNotAvailable
  - | AnotherVulkanError Int
- catchVulkanError :: IO a -> (VulkanError -> GErrorMessage -> IO a) -> IO a
- handleVulkanError :: (VulkanError -> GErrorMessage -> IO a) -> IO a -> IO a

# Enumerations

## AxisUse

data AxisUse Source #

Defines how device axes are interpreted by GTK.

Note that the X and Y axes are not really needed; pointer devices report their location via the x/y members of events regardless. Whether X and Y are present as axes depends on the GDK backend.

Constructors

AxisUseIgnore | the axis is ignored.
AxisUseX | the axis is used as the x axis.
AxisUseY | the axis is used as the y axis.
AxisUseDeltaX | the axis is used as the scroll x delta
AxisUseDeltaY | the axis is used as the scroll y delta
AxisUsePressure | the axis is used for pressure information.
AxisUseXtilt | the axis is used for x tilt information.
AxisUseYtilt | the axis is used for y tilt information.
AxisUseWheel | the axis is used for wheel information.
AxisUseDistance | the axis is used for pen/tablet distance information
AxisUseRotation | the axis is used for pen rotation information
AxisUseSlider | the axis is used for pen slider information
AxisUseLast | a constant equal to the numerically highest axis value.
AnotherAxisUse Int | Catch-all for unknown values

#### Instances

Instances details

Enum AxisUse Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: AxisUse -> AxisUse Source #

pred :: AxisUse -> AxisUse Source #

toEnum :: Int -> AxisUse Source #

fromEnum :: AxisUse -> Int Source #

enumFrom :: AxisUse -> [AxisUse] Source #

enumFromThen :: AxisUse -> AxisUse -> [AxisUse] Source #

enumFromTo :: AxisUse -> AxisUse -> [AxisUse] Source #

enumFromThenTo :: AxisUse -> AxisUse -> AxisUse -> [AxisUse] Source #

Show AxisUse Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> AxisUse -> ShowS Source # show :: AxisUse -> String Source # showList :: [AxisUse] -> ShowS Source #
Eq AxisUse Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: AxisUse -> AxisUse -> Bool Source # (/=) :: AxisUse -> AxisUse -> Bool Source #
Ord AxisUse Source # |
Instance details Defined in GI.Gdk.Enums Methods compare :: AxisUse -> AxisUse -> Ordering Source # (<) :: AxisUse -> AxisUse -> Bool Source # (<=) :: AxisUse -> AxisUse -> Bool Source # (>) :: AxisUse -> AxisUse -> Bool Source # (>=) :: AxisUse -> AxisUse -> Bool Source # max :: AxisUse -> AxisUse -> AxisUse Source # min :: AxisUse -> AxisUse -> AxisUse Source #
BoxedEnum AxisUse Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject AxisUse Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes AxisUse Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes AxisUse Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes AxisUse = '[] :: [Type]

## CicpRange

data CicpRange Source #

The values of this enumeration describe whether image data uses the full range of 8-bit values.

In digital broadcasting, it is common to reserve the lowest and highest values. Typically the allowed values for the narrow range are 16-235 for Y and 16-240 for u,v (when dealing with YUV data).

Since: 4.16

Constructors

CicpRangeNarrow | The values use the range of 16-235 (for Y) and 16-240 for u and v.
CicpRangeFull | The values use the full range.
AnotherCicpRange Int | Catch-all for unknown values

#### Instances

Instances details

Enum CicpRange Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: CicpRange -> CicpRange Source #

pred :: CicpRange -> CicpRange Source #

toEnum :: Int -> CicpRange Source #

fromEnum :: CicpRange -> Int Source #

enumFrom :: CicpRange -> [CicpRange] Source #

enumFromThen :: CicpRange -> CicpRange -> [CicpRange] Source #

enumFromTo :: CicpRange -> CicpRange -> [CicpRange] Source #

enumFromThenTo :: CicpRange -> CicpRange -> CicpRange -> [CicpRange] Source #

Show CicpRange Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> CicpRange -> ShowS Source # show :: CicpRange -> String Source # showList :: [CicpRange] -> ShowS Source #
Eq CicpRange Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: CicpRange -> CicpRange -> Bool Source # (/=) :: CicpRange -> CicpRange -> Bool Source #
Ord CicpRange Source # |
Instance details Defined in GI.Gdk.Enums Methods compare :: CicpRange -> CicpRange -> Ordering Source # (<) :: CicpRange -> CicpRange -> Bool Source # (<=) :: CicpRange -> CicpRange -> Bool Source # (>) :: CicpRange -> CicpRange -> Bool Source # (>=) :: CicpRange -> CicpRange -> Bool Source # max :: CicpRange -> CicpRange -> CicpRange Source # min :: CicpRange -> CicpRange -> CicpRange Source #
BoxedEnum CicpRange Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject CicpRange Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes CicpRange Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes CicpRange Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes CicpRange = '[] :: [Type]

## ColorChannel

data ColorChannel Source #

Enumerates the color channels of RGBA values as used in `GdkColor` and OpenGL/Vulkan shaders.

Note that this is not the order of pixel values in Cairo and `GdkMemoryFormat` can have many different orders.

Since: 4.22

Constructors

ColorChannelRed | The red color channel, aka 0
ColorChannelGreen | The green color channel, aka 1
ColorChannelBlue | The blue color channel, aka 2
ColorChannelAlpha | The alpha color channel, aka 3
AnotherColorChannel Int | Catch-all for unknown values

#### Instances

Instances details

Enum ColorChannel Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: ColorChannel -> ColorChannel Source #

pred :: ColorChannel -> ColorChannel Source #

toEnum :: Int -> ColorChannel Source #

fromEnum :: ColorChannel -> Int Source #

enumFrom :: ColorChannel -> [ColorChannel] Source #

enumFromThen :: ColorChannel -> ColorChannel -> [ColorChannel] Source #

enumFromTo :: ColorChannel -> ColorChannel -> [ColorChannel] Source #

enumFromThenTo :: ColorChannel -> ColorChannel -> ColorChannel -> [ColorChannel] Source #

Show ColorChannel Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> ColorChannel -> ShowS Source # show :: ColorChannel -> String Source # showList :: [ColorChannel] -> ShowS Source #
Eq ColorChannel Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: ColorChannel -> ColorChannel -> Bool Source # (/=) :: ColorChannel -> ColorChannel -> Bool Source #
Ord ColorChannel Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: ColorChannel -> ColorChannel -> Ordering Source #

(<) :: ColorChannel -> ColorChannel -> Bool Source #

(<=) :: ColorChannel -> ColorChannel -> Bool Source #

(>) :: ColorChannel -> ColorChannel -> Bool Source #

(>=) :: ColorChannel -> ColorChannel -> Bool Source #

max :: ColorChannel -> ColorChannel -> ColorChannel Source #

min :: ColorChannel -> ColorChannel -> ColorChannel Source #

BoxedEnum ColorChannel Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject ColorChannel Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes ColorChannel Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes ColorChannel Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes ColorChannel = '[] :: [Type]

## CrossingMode

data CrossingMode Source #

Specifies the crossing mode for enter and leave events.

Constructors

CrossingModeNormal | crossing because of pointer motion.
CrossingModeGrab | crossing because a grab is activated.
CrossingModeUngrab | crossing because a grab is deactivated.
CrossingModeGtkGrab | crossing because a GTK grab is activated.
CrossingModeGtkUngrab | crossing because a GTK grab is deactivated.
CrossingModeStateChanged | crossing because a GTK widget changed state (e.g. sensitivity).
CrossingModeTouchBegin | crossing because a touch sequence has begun, this event is synthetic as the pointer might have not left the surface.
CrossingModeTouchEnd | crossing because a touch sequence has ended, this event is synthetic as the pointer might have not left the surface.
CrossingModeDeviceSwitch | crossing because of a device switch (i.e. a mouse taking control of the pointer after a touch device), this event is synthetic as the pointer didn’t leave the surface.
AnotherCrossingMode Int | Catch-all for unknown values

#### Instances

Instances details

Enum CrossingMode Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: CrossingMode -> CrossingMode Source #

pred :: CrossingMode -> CrossingMode Source #

toEnum :: Int -> CrossingMode Source #

fromEnum :: CrossingMode -> Int Source #

enumFrom :: CrossingMode -> [CrossingMode] Source #

enumFromThen :: CrossingMode -> CrossingMode -> [CrossingMode] Source #

enumFromTo :: CrossingMode -> CrossingMode -> [CrossingMode] Source #

enumFromThenTo :: CrossingMode -> CrossingMode -> CrossingMode -> [CrossingMode] Source #

Show CrossingMode Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> CrossingMode -> ShowS Source # show :: CrossingMode -> String Source # showList :: [CrossingMode] -> ShowS Source #
Eq CrossingMode Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: CrossingMode -> CrossingMode -> Bool Source # (/=) :: CrossingMode -> CrossingMode -> Bool Source #
Ord CrossingMode Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: CrossingMode -> CrossingMode -> Ordering Source #

(<) :: CrossingMode -> CrossingMode -> Bool Source #

(<=) :: CrossingMode -> CrossingMode -> Bool Source #

(>) :: CrossingMode -> CrossingMode -> Bool Source #

(>=) :: CrossingMode -> CrossingMode -> Bool Source #

max :: CrossingMode -> CrossingMode -> CrossingMode Source #

min :: CrossingMode -> CrossingMode -> CrossingMode Source #

BoxedEnum CrossingMode Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject CrossingMode Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes CrossingMode Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes CrossingMode Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes CrossingMode = '[] :: [Type]

## DevicePadFeature

data DevicePadFeature Source #

A pad feature.

Constructors

DevicePadFeatureButton | a button
DevicePadFeatureRing | a ring-shaped interactive area
DevicePadFeatureStrip | a straight interactive area
AnotherDevicePadFeature Int | Catch-all for unknown values

#### Instances

Instances details

Enum DevicePadFeature Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: DevicePadFeature -> DevicePadFeature Source #

pred :: DevicePadFeature -> DevicePadFeature Source #

toEnum :: Int -> DevicePadFeature Source #

fromEnum :: DevicePadFeature -> Int Source #

enumFrom :: DevicePadFeature -> [DevicePadFeature] Source #

enumFromThen :: DevicePadFeature -> DevicePadFeature -> [DevicePadFeature] Source #

enumFromTo :: DevicePadFeature -> DevicePadFeature -> [DevicePadFeature] Source #

enumFromThenTo :: DevicePadFeature -> DevicePadFeature -> DevicePadFeature -> [DevicePadFeature] Source #

Show DevicePadFeature Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> DevicePadFeature -> ShowS Source # show :: DevicePadFeature -> String Source # showList :: [DevicePadFeature] -> ShowS Source #
Eq DevicePadFeature Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: DevicePadFeature -> DevicePadFeature -> Bool Source # (/=) :: DevicePadFeature -> DevicePadFeature -> Bool Source #
Ord DevicePadFeature Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: DevicePadFeature -> DevicePadFeature -> Ordering Source #

(<) :: DevicePadFeature -> DevicePadFeature -> Bool Source #

(<=) :: DevicePadFeature -> DevicePadFeature -> Bool Source #

(>) :: DevicePadFeature -> DevicePadFeature -> Bool Source #

(>=) :: DevicePadFeature -> DevicePadFeature -> Bool Source #

max :: DevicePadFeature -> DevicePadFeature -> DevicePadFeature Source #

min :: DevicePadFeature -> DevicePadFeature -> DevicePadFeature Source #

BoxedEnum DevicePadFeature Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject DevicePadFeature Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes DevicePadFeature Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes DevicePadFeature Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes DevicePadFeature = '[] :: [Type]

## DeviceToolType

data DeviceToolType Source #

Indicates the specific type of tool being used being a tablet. Such as an airbrush, pencil, etc.

Constructors

DeviceToolTypeUnknown | Tool is of an unknown type.
DeviceToolTypePen | Tool is a standard tablet stylus.
DeviceToolTypeEraser | Tool is standard tablet eraser.
DeviceToolTypeBrush | Tool is a brush stylus.
DeviceToolTypePencil | Tool is a pencil stylus.
DeviceToolTypeAirbrush | Tool is an airbrush stylus.
DeviceToolTypeMouse | Tool is a mouse.
DeviceToolTypeLens | Tool is a lens cursor.
AnotherDeviceToolType Int | Catch-all for unknown values

#### Instances

Instances details

Enum DeviceToolType Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: DeviceToolType -> DeviceToolType Source #

pred :: DeviceToolType -> DeviceToolType Source #

toEnum :: Int -> DeviceToolType Source #

fromEnum :: DeviceToolType -> Int Source #

enumFrom :: DeviceToolType -> [DeviceToolType] Source #

enumFromThen :: DeviceToolType -> DeviceToolType -> [DeviceToolType] Source #

enumFromTo :: DeviceToolType -> DeviceToolType -> [DeviceToolType] Source #

enumFromThenTo :: DeviceToolType -> DeviceToolType -> DeviceToolType -> [DeviceToolType] Source #

Show DeviceToolType Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> DeviceToolType -> ShowS Source # show :: DeviceToolType -> String Source # showList :: [DeviceToolType] -> ShowS Source #
Eq DeviceToolType Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: DeviceToolType -> DeviceToolType -> Bool Source # (/=) :: DeviceToolType -> DeviceToolType -> Bool Source #
Ord DeviceToolType Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: DeviceToolType -> DeviceToolType -> Ordering Source #

(<) :: DeviceToolType -> DeviceToolType -> Bool Source #

(<=) :: DeviceToolType -> DeviceToolType -> Bool Source #

(>) :: DeviceToolType -> DeviceToolType -> Bool Source #

(>=) :: DeviceToolType -> DeviceToolType -> Bool Source #

max :: DeviceToolType -> DeviceToolType -> DeviceToolType Source #

min :: DeviceToolType -> DeviceToolType -> DeviceToolType Source #

BoxedEnum DeviceToolType Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject DeviceToolType Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes DeviceToolType Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes DeviceToolType Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes DeviceToolType = '[] :: [Type]

## DmabufError

data DmabufError Source #

Error enumeration for `GdkDmabufTexture`.

Since: 4.14

Constructors

DmabufErrorNotAvailable | Dmabuf support is not available, because the OS is not Linux, or it was explicitly disabled at compile- or runtime
DmabufErrorUnsupportedFormat | The requested format is not supported
DmabufErrorCreationFailed | GTK failed to create the resource for other reasons
AnotherDmabufError Int | Catch-all for unknown values

#### Instances

Instances details

Enum DmabufError Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: DmabufError -> DmabufError Source #

pred :: DmabufError -> DmabufError Source #

toEnum :: Int -> DmabufError Source #

fromEnum :: DmabufError -> Int Source #

enumFrom :: DmabufError -> [DmabufError] Source #

enumFromThen :: DmabufError -> DmabufError -> [DmabufError] Source #

enumFromTo :: DmabufError -> DmabufError -> [DmabufError] Source #

enumFromThenTo :: DmabufError -> DmabufError -> DmabufError -> [DmabufError] Source #

Show DmabufError Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> DmabufError -> ShowS Source # show :: DmabufError -> String Source # showList :: [DmabufError] -> ShowS Source #
Eq DmabufError Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: DmabufError -> DmabufError -> Bool Source # (/=) :: DmabufError -> DmabufError -> Bool Source #
Ord DmabufError Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: DmabufError -> DmabufError -> Ordering Source #

(<) :: DmabufError -> DmabufError -> Bool Source #

(<=) :: DmabufError -> DmabufError -> Bool Source #

(>) :: DmabufError -> DmabufError -> Bool Source #

(>=) :: DmabufError -> DmabufError -> Bool Source #

max :: DmabufError -> DmabufError -> DmabufError Source #

min :: DmabufError -> DmabufError -> DmabufError Source #

BoxedEnum DmabufError Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject DmabufError Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
GErrorClass DmabufError Source # |
Instance details Defined in GI.Gdk.Enums Methods gerrorClassDomain :: DmabufError -> Text Source #
HasParentTypes DmabufError Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes DmabufError Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes DmabufError = '[] :: [Type]

catchDmabufError :: IO a -> (DmabufError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type `DmabufError`. This is a specialized version of `catchGErrorJustDomain`.

handleDmabufError :: (DmabufError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type `DmabufError`. This is a specialized version of `handleGErrorJustDomain`.

## DragCancelReason

data DragCancelReason Source #

Used in `GdkDrag` to the reason of a cancelled DND operation.

Constructors

DragCancelReasonNoTarget | There is no suitable drop target.
DragCancelReasonUserCancelled | Drag cancelled by the user
DragCancelReasonError | Unspecified error.
AnotherDragCancelReason Int | Catch-all for unknown values

#### Instances

Instances details

Enum DragCancelReason Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: DragCancelReason -> DragCancelReason Source #

pred :: DragCancelReason -> DragCancelReason Source #

toEnum :: Int -> DragCancelReason Source #

fromEnum :: DragCancelReason -> Int Source #

enumFrom :: DragCancelReason -> [DragCancelReason] Source #

enumFromThen :: DragCancelReason -> DragCancelReason -> [DragCancelReason] Source #

enumFromTo :: DragCancelReason -> DragCancelReason -> [DragCancelReason] Source #

enumFromThenTo :: DragCancelReason -> DragCancelReason -> DragCancelReason -> [DragCancelReason] Source #

Show DragCancelReason Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> DragCancelReason -> ShowS Source # show :: DragCancelReason -> String Source # showList :: [DragCancelReason] -> ShowS Source #
Eq DragCancelReason Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: DragCancelReason -> DragCancelReason -> Bool Source # (/=) :: DragCancelReason -> DragCancelReason -> Bool Source #
Ord DragCancelReason Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: DragCancelReason -> DragCancelReason -> Ordering Source #

(<) :: DragCancelReason -> DragCancelReason -> Bool Source #

(<=) :: DragCancelReason -> DragCancelReason -> Bool Source #

(>) :: DragCancelReason -> DragCancelReason -> Bool Source #

(>=) :: DragCancelReason -> DragCancelReason -> Bool Source #

max :: DragCancelReason -> DragCancelReason -> DragCancelReason Source #

min :: DragCancelReason -> DragCancelReason -> DragCancelReason Source #

BoxedEnum DragCancelReason Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject DragCancelReason Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes DragCancelReason Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes DragCancelReason Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes DragCancelReason = '[] :: [Type]

## EventType

data EventType Source #

Specifies the type of the event.

Constructors

EventTypeDelete | the window manager has requested that the toplevel surface be hidden or destroyed, usually when the user clicks on a special icon in the title bar.
EventTypeMotionNotify | the pointer (usually a mouse) has moved.
EventTypeButtonPress | a mouse button has been pressed.
EventTypeButtonRelease | a mouse button has been released.
EventTypeKeyPress | a key has been pressed.
EventTypeKeyRelease | a key has been released.
EventTypeEnterNotify | the pointer has entered the surface.
EventTypeLeaveNotify | the pointer has left the surface.
EventTypeFocusChange | the keyboard focus has entered or left the surface.
EventTypeProximityIn | an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).
EventTypeProximityOut | an input device has moved out of contact with a sensing surface.
EventTypeDragEnter | the mouse has entered the surface while a drag is in progress.
EventTypeDragLeave | the mouse has left the surface while a drag is in progress.
EventTypeDragMotion | the mouse has moved in the surface while a drag is in progress.
EventTypeDropStart | a drop operation onto the surface has started.
EventTypeScroll | the scroll wheel was turned
EventTypeGrabBroken | a pointer or keyboard grab was broken.
EventTypeTouchBegin | A new touch event sequence has just started.
EventTypeTouchUpdate | A touch event sequence has been updated.
EventTypeTouchEnd | A touch event sequence has finished.
EventTypeTouchCancel | A touch event sequence has been canceled.
EventTypeTouchpadSwipe | A touchpad swipe gesture event, the current state is determined by its phase field.
EventTypeTouchpadPinch | A touchpad pinch gesture event, the current state is determined by its phase field.
EventTypePadButtonPress | A tablet pad button press event.
EventTypePadButtonRelease | A tablet pad button release event.
EventTypePadRing | A tablet pad axis event from a "ring".
EventTypePadStrip | A tablet pad axis event from a "strip".
EventTypePadGroupMode | A tablet pad group mode change.
EventTypeTouchpadHold | A touchpad hold gesture event, the current state is determined by its phase field. Since: 4.6
EventTypePadDial | A tablet pad axis event from a "dial".
EventTypeEventLast | marks the end of the GdkEventType enumeration.
AnotherEventType Int | Catch-all for unknown values

#### Instances

Instances details

Enum EventType Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: EventType -> EventType Source #

pred :: EventType -> EventType Source #

toEnum :: Int -> EventType Source #

fromEnum :: EventType -> Int Source #

enumFrom :: EventType -> [EventType] Source #

enumFromThen :: EventType -> EventType -> [EventType] Source #

enumFromTo :: EventType -> EventType -> [EventType] Source #

enumFromThenTo :: EventType -> EventType -> EventType -> [EventType] Source #

Show EventType Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> EventType -> ShowS Source # show :: EventType -> String Source # showList :: [EventType] -> ShowS Source #
Eq EventType Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: EventType -> EventType -> Bool Source # (/=) :: EventType -> EventType -> Bool Source #
Ord EventType Source # |
Instance details Defined in GI.Gdk.Enums Methods compare :: EventType -> EventType -> Ordering Source # (<) :: EventType -> EventType -> Bool Source # (<=) :: EventType -> EventType -> Bool Source # (>) :: EventType -> EventType -> Bool Source # (>=) :: EventType -> EventType -> Bool Source # max :: EventType -> EventType -> EventType Source # min :: EventType -> EventType -> EventType Source #
BoxedEnum EventType Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject EventType Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes EventType Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes EventType Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes EventType = '[] :: [Type]

## FrameResult

data FrameResult Source #

An enumeration describing the process of rendering a frame. Rendering a frame starts with the frame clock cycle and then follows the rendered frame (if there was one) through the display server until it appears on screen.

It is relevant in particular for `FrameTimings` which may still be waiting for values to be filled in.

Since: 4.24

Constructors

FrameResultPreparing | The frame is currently being prepared and rendered by GTK. This is the initial state. Since: 4.24
FrameResultSkipped | GTK has determined that nothing needs to be rendered because there are no visual changes. No rendering will be submitted to the display server and because of that no information will be forthcoming from the display server. The frame is complete. Since: 4.24
FrameResultEmpty | GTK has determined that nothing needs to be rendered because there are no visual changes. This information has been submitted to the display server. The presentation time has been updated to reflect when this frame would have been displayed. The frame is complete. Since: 4.24
FrameResultSubmitted | A frame has been drawn and submitted to the display server, but the display server will not provide any further feedback about when or how the frame is going to be displayed. The frame is complete. Since: 4.24
FrameResultOutstanding | The frame has been drawn and submitted to the display server, but the display server has not yet replied what is going to happen with the rendered image. Since: 4.24
FrameResultDiscarded | The frame has been drawn and submitted to the display server, but the display server has not displayed it. No presentation time will be available. The frame is complete. Since: 4.24
FrameResultPresented | The frame has been drawn and submitted to the display server, and the display server has rendered it and displayed the result. The presentation time is accurately reflecting when that happened. The frame is complete. Since: 4.24
AnotherFrameResult Int | Catch-all for unknown values

#### Instances

Instances details

Enum FrameResult Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: FrameResult -> FrameResult Source #

pred :: FrameResult -> FrameResult Source #

toEnum :: Int -> FrameResult Source #

fromEnum :: FrameResult -> Int Source #

enumFrom :: FrameResult -> [FrameResult] Source #

enumFromThen :: FrameResult -> FrameResult -> [FrameResult] Source #

enumFromTo :: FrameResult -> FrameResult -> [FrameResult] Source #

enumFromThenTo :: FrameResult -> FrameResult -> FrameResult -> [FrameResult] Source #

Show FrameResult Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> FrameResult -> ShowS Source # show :: FrameResult -> String Source # showList :: [FrameResult] -> ShowS Source #
Eq FrameResult Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: FrameResult -> FrameResult -> Bool Source # (/=) :: FrameResult -> FrameResult -> Bool Source #
Ord FrameResult Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: FrameResult -> FrameResult -> Ordering Source #

(<) :: FrameResult -> FrameResult -> Bool Source #

(<=) :: FrameResult -> FrameResult -> Bool Source #

(>) :: FrameResult -> FrameResult -> Bool Source #

(>=) :: FrameResult -> FrameResult -> Bool Source #

max :: FrameResult -> FrameResult -> FrameResult Source #

min :: FrameResult -> FrameResult -> FrameResult Source #

BoxedEnum FrameResult Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject FrameResult Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes FrameResult Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes FrameResult Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes FrameResult = '[] :: [Type]

## FullscreenMode

data FullscreenMode Source #

Indicates which monitor a surface should span over when in fullscreen mode.

Constructors

FullscreenModeCurrentMonitor | Fullscreen on current monitor only.
FullscreenModeAllMonitors | Span across all monitors when fullscreen.
AnotherFullscreenMode Int | Catch-all for unknown values

#### Instances

Instances details

Enum FullscreenMode Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: FullscreenMode -> FullscreenMode Source #

pred :: FullscreenMode -> FullscreenMode Source #

toEnum :: Int -> FullscreenMode Source #

fromEnum :: FullscreenMode -> Int Source #

enumFrom :: FullscreenMode -> [FullscreenMode] Source #

enumFromThen :: FullscreenMode -> FullscreenMode -> [FullscreenMode] Source #

enumFromTo :: FullscreenMode -> FullscreenMode -> [FullscreenMode] Source #

enumFromThenTo :: FullscreenMode -> FullscreenMode -> FullscreenMode -> [FullscreenMode] Source #

Show FullscreenMode Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> FullscreenMode -> ShowS Source # show :: FullscreenMode -> String Source # showList :: [FullscreenMode] -> ShowS Source #
Eq FullscreenMode Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: FullscreenMode -> FullscreenMode -> Bool Source # (/=) :: FullscreenMode -> FullscreenMode -> Bool Source #
Ord FullscreenMode Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: FullscreenMode -> FullscreenMode -> Ordering Source #

(<) :: FullscreenMode -> FullscreenMode -> Bool Source #

(<=) :: FullscreenMode -> FullscreenMode -> Bool Source #

(>) :: FullscreenMode -> FullscreenMode -> Bool Source #

(>=) :: FullscreenMode -> FullscreenMode -> Bool Source #

max :: FullscreenMode -> FullscreenMode -> FullscreenMode Source #

min :: FullscreenMode -> FullscreenMode -> FullscreenMode Source #

BoxedEnum FullscreenMode Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject FullscreenMode Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes FullscreenMode Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes FullscreenMode Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes FullscreenMode = '[] :: [Type]

## GLError

data GLError Source #

Error enumeration for `GdkGLContext`.

Constructors

GLErrorNotAvailable | OpenGL support is not available
GLErrorUnsupportedFormat | The requested visual format is not supported
GLErrorUnsupportedProfile | The requested profile is not supported
GLErrorCompilationFailed | The shader compilation failed
GLErrorLinkFailed | The shader linking failed
AnotherGLError Int | Catch-all for unknown values

#### Instances

Instances details

Enum GLError Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: GLError -> GLError Source #

pred :: GLError -> GLError Source #

toEnum :: Int -> GLError Source #

fromEnum :: GLError -> Int Source #

enumFrom :: GLError -> [GLError] Source #

enumFromThen :: GLError -> GLError -> [GLError] Source #

enumFromTo :: GLError -> GLError -> [GLError] Source #

enumFromThenTo :: GLError -> GLError -> GLError -> [GLError] Source #

Show GLError Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> GLError -> ShowS Source # show :: GLError -> String Source # showList :: [GLError] -> ShowS Source #
Eq GLError Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: GLError -> GLError -> Bool Source # (/=) :: GLError -> GLError -> Bool Source #
Ord GLError Source # |
Instance details Defined in GI.Gdk.Enums Methods compare :: GLError -> GLError -> Ordering Source # (<) :: GLError -> GLError -> Bool Source # (<=) :: GLError -> GLError -> Bool Source # (>) :: GLError -> GLError -> Bool Source # (>=) :: GLError -> GLError -> Bool Source # max :: GLError -> GLError -> GLError Source # min :: GLError -> GLError -> GLError Source #
BoxedEnum GLError Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject GLError Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
GErrorClass GLError Source # |
Instance details Defined in GI.Gdk.Enums Methods gerrorClassDomain :: GLError -> Text Source #
HasParentTypes GLError Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes GLError Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes GLError = '[] :: [Type]

catchGLError :: IO a -> (GLError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type `GLError`. This is a specialized version of `catchGErrorJustDomain`.

handleGLError :: (GLError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type `GLError`. This is a specialized version of `handleGErrorJustDomain`.

## Gravity

data Gravity Source #

Defines the reference point of a surface and is used in `GdkPopupLayout`.

Constructors

GravityNorthWest | the reference point is at the top left corner.
GravityNorth | the reference point is in the middle of the top edge.
GravityNorthEast | the reference point is at the top right corner.
GravityWest | the reference point is at the middle of the left edge.
GravityCenter | the reference point is at the center of the surface.
GravityEast | the reference point is at the middle of the right edge.
GravitySouthWest | the reference point is at the lower left corner.
GravitySouth | the reference point is at the middle of the lower edge.
GravitySouthEast | the reference point is at the lower right corner.
GravityStatic | the reference point is at the top left corner of the surface itself, ignoring window manager decorations.
AnotherGravity Int | Catch-all for unknown values

#### Instances

Instances details

Enum Gravity Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: Gravity -> Gravity Source #

pred :: Gravity -> Gravity Source #

toEnum :: Int -> Gravity Source #

fromEnum :: Gravity -> Int Source #

enumFrom :: Gravity -> [Gravity] Source #

enumFromThen :: Gravity -> Gravity -> [Gravity] Source #

enumFromTo :: Gravity -> Gravity -> [Gravity] Source #

enumFromThenTo :: Gravity -> Gravity -> Gravity -> [Gravity] Source #

Show Gravity Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> Gravity -> ShowS Source # show :: Gravity -> String Source # showList :: [Gravity] -> ShowS Source #
Eq Gravity Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: Gravity -> Gravity -> Bool Source # (/=) :: Gravity -> Gravity -> Bool Source #
Ord Gravity Source # |
Instance details Defined in GI.Gdk.Enums Methods compare :: Gravity -> Gravity -> Ordering Source # (<) :: Gravity -> Gravity -> Bool Source # (<=) :: Gravity -> Gravity -> Bool Source # (>) :: Gravity -> Gravity -> Bool Source # (>=) :: Gravity -> Gravity -> Bool Source # max :: Gravity -> Gravity -> Gravity Source # min :: Gravity -> Gravity -> Gravity Source #
BoxedEnum Gravity Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject Gravity Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes Gravity Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes Gravity Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes Gravity = '[] :: [Type]

## InputSource

data InputSource Source #

An enumeration describing the type of an input device in general terms.

Constructors

InputSourceMouse | the device is a mouse. (This will be reported for the core pointer, even if it is something else, such as a trackball.)
InputSourcePen | the device is a stylus of a graphics tablet or similar device.
InputSourceKeyboard | the device is a keyboard.
InputSourceTouchscreen | the device is a direct-input touch device, such as a touchscreen or tablet
InputSourceTouchpad | the device is an indirect touch device, such as a touchpad
InputSourceTrackpoint | the device is a trackpoint
InputSourceTabletPad | the device is a "pad", a collection of buttons, rings and strips found in drawing tablets
AnotherInputSource Int | Catch-all for unknown values

#### Instances

Instances details

Enum InputSource Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: InputSource -> InputSource Source #

pred :: InputSource -> InputSource Source #

toEnum :: Int -> InputSource Source #

fromEnum :: InputSource -> Int Source #

enumFrom :: InputSource -> [InputSource] Source #

enumFromThen :: InputSource -> InputSource -> [InputSource] Source #

enumFromTo :: InputSource -> InputSource -> [InputSource] Source #

enumFromThenTo :: InputSource -> InputSource -> InputSource -> [InputSource] Source #

Show InputSource Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> InputSource -> ShowS Source # show :: InputSource -> String Source # showList :: [InputSource] -> ShowS Source #
Eq InputSource Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: InputSource -> InputSource -> Bool Source # (/=) :: InputSource -> InputSource -> Bool Source #
Ord InputSource Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: InputSource -> InputSource -> Ordering Source #

(<) :: InputSource -> InputSource -> Bool Source #

(<=) :: InputSource -> InputSource -> Bool Source #

(>) :: InputSource -> InputSource -> Bool Source #

(>=) :: InputSource -> InputSource -> Bool Source #

max :: InputSource -> InputSource -> InputSource Source #

min :: InputSource -> InputSource -> InputSource Source #

BoxedEnum InputSource Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject InputSource Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes InputSource Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes InputSource Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes InputSource = '[] :: [Type]

## KeyMatch

data KeyMatch Source #

Describes how well an event matches a given keyval and modifiers.

`GdkKeyMatch` values are returned by `keyEventMatches`.

Constructors

KeyMatchNone | The key event does not match
KeyMatchPartial | The key event matches if keyboard state (specifically, the currently active group) is ignored
KeyMatchExact | The key event matches
AnotherKeyMatch Int | Catch-all for unknown values

#### Instances

Instances details

Enum KeyMatch Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: KeyMatch -> KeyMatch Source #

pred :: KeyMatch -> KeyMatch Source #

toEnum :: Int -> KeyMatch Source #

fromEnum :: KeyMatch -> Int Source #

enumFrom :: KeyMatch -> [KeyMatch] Source #

enumFromThen :: KeyMatch -> KeyMatch -> [KeyMatch] Source #

enumFromTo :: KeyMatch -> KeyMatch -> [KeyMatch] Source #

enumFromThenTo :: KeyMatch -> KeyMatch -> KeyMatch -> [KeyMatch] Source #

Show KeyMatch Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> KeyMatch -> ShowS Source # show :: KeyMatch -> String Source # showList :: [KeyMatch] -> ShowS Source #
Eq KeyMatch Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: KeyMatch -> KeyMatch -> Bool Source # (/=) :: KeyMatch -> KeyMatch -> Bool Source #
Ord KeyMatch Source # |
Instance details Defined in GI.Gdk.Enums Methods compare :: KeyMatch -> KeyMatch -> Ordering Source # (<) :: KeyMatch -> KeyMatch -> Bool Source # (<=) :: KeyMatch -> KeyMatch -> Bool Source # (>) :: KeyMatch -> KeyMatch -> Bool Source # (>=) :: KeyMatch -> KeyMatch -> Bool Source # max :: KeyMatch -> KeyMatch -> KeyMatch Source # min :: KeyMatch -> KeyMatch -> KeyMatch Source #
BoxedEnum KeyMatch Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject KeyMatch Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes KeyMatch Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes KeyMatch Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes KeyMatch = '[] :: [Type]

## MemoryFormat

data MemoryFormat Source #

Describes formats that image data can have in memory.

It describes formats by listing the contents of the memory passed to it. So `GDK_MEMORY_A8R8G8B8` will be 1 byte (8 bits) of alpha, followed by a byte each of red, green and blue. It is not endian-dependent, so `CAIRO_FORMAT_ARGB32` is represented by different `GdkMemoryFormats` on architectures with different endiannesses.

# A note on naming

The format names are roughly modelled after VkFormat. A name follows `GDK_MEMORY_<CHANNELS>_<DATA_TYPE>_<SUBSAMPLING> <PREMULTIPLIED>` where CHANNELS describe how the RGBA channels are layed out in memory, with an X denoting padding. DATA_TYPE is unsigned normalized integer if not present, or otherwise FLOAT. The optional SUBSAMPLING defines the subsampling method used. The optional ENDIAN term describes the endianness if it is not host-endian. Finally, an optional PREMULTIPLIED term indicates that the color channels are premultiplied with the alpha value, if it is omitted, the data is not premultiplied or there is no alpha channel.

The CHANNELS are given as a list of planes seperated by underscores where each plane is split into multiple elements describing one or more bytes of memory. Each element is given as the list of channels folowed by the amount of bits taken up.

So the fictional format `RGB565_A8_PREMULTIPLIED` would describe a format with 2 planes where the first plane is an unsigned 16 bit integer containing the RGB channels with 5, 6, and 5 bits respectively while the 2nd plane contains the alpha channel as an unisnged 8bit integer.

Constructors

MemoryFormatB8g8r8a8Premultiplied | 4 bytes; for blue, green, red, alpha. The color values are premultiplied with the alpha value.
MemoryFormatA8r8g8b8Premultiplied | 4 bytes; for alpha, red, green, blue. The color values are premultiplied with the alpha value.
MemoryFormatR8g8b8a8Premultiplied | 4 bytes; for red, green, blue, alpha The color values are premultiplied with the alpha value.
MemoryFormatB8g8r8a8 | 4 bytes; for blue, green, red, alpha.
MemoryFormatA8r8g8b8 | 4 bytes; for alpha, red, green, blue.
MemoryFormatR8g8b8a8 | 4 bytes; for red, green, blue, alpha.
MemoryFormatA8b8g8r8 | 4 bytes; for alpha, blue, green, red.
MemoryFormatR8g8b8 | 3 bytes; for red, green, blue. The data is opaque.
MemoryFormatB8g8r8 | 3 bytes; for blue, green, red. The data is opaque.
MemoryFormatR16g16b16 | 3 guint16 values; for red, green, blue. Since: 4.6
MemoryFormatR16g16b16a16Premultiplied | 4 guint16 values; for red, green, blue, alpha. The color values are premultiplied with the alpha value. Since: 4.6
MemoryFormatR16g16b16a16 | 4 guint16 values; for red, green, blue, alpha. Since: 4.6
MemoryFormatR16g16b16Float | 3 half-float values; for red, green, blue. The data is opaque. Since: 4.6
MemoryFormatR16g16b16a16FloatPremultiplied | 4 half-float values; for red, green, blue and alpha. The color values are premultiplied with the alpha value. Since: 4.6
MemoryFormatR16g16b16a16Float | 4 half-float values; for red, green, blue and alpha. Since: 4.6
MemoryFormatR32g32b32Float | 3 float values; for red, green, blue.
MemoryFormatR32g32b32a32FloatPremultiplied | 4 float values; for red, green, blue and alpha. The color values are premultiplied with the alpha value. Since: 4.6
MemoryFormatR32g32b32a32Float | 4 float values; for red, green, blue and alpha. Since: 4.6
MemoryFormatG8a8Premultiplied | 2 bytes; for grayscale, alpha. The color values are premultiplied with the alpha value. Since: 4.12
MemoryFormatG8a8 | 2 bytes; for grayscale, alpha. Since: 4.12
MemoryFormatG8 | One byte; for grayscale. The data is opaque. Since: 4.12
MemoryFormatG16a16Premultiplied | 2 guint16 values; for grayscale, alpha. The color values are premultiplied with the alpha value. Since: 4.12
MemoryFormatG16a16 | 2 guint16 values; for grayscale, alpha. Since: 4.12
MemoryFormatG16 | One guint16 value; for grayscale. The data is opaque. Since: 4.12
MemoryFormatA8 | One byte; for alpha. Since: 4.12
MemoryFormatA16 | One guint16 value; for alpha. Since: 4.12
MemoryFormatA16Float | One half-float value; for alpha. Since: 4.12
MemoryFormatA32Float | One float value; for alpha. Since: 4.12
MemoryFormatA8b8g8r8Premultiplied | 4 bytes; for alpha, blue, green, red, The color values are premultiplied with the alpha value. Since: 4.14
MemoryFormatB8g8r8x8 | 4 bytes; for blue, green, red, unused. Since: 4.14
MemoryFormatX8r8g8b8 | 4 bytes; for unused, red, green, blue. Since: 4.14
MemoryFormatR8g8b8x8 | 4 bytes; for red, green, blue, unused. Since: 4.14
MemoryFormatX8b8g8r8 | 4 bytes; for unused, blue, green, red. Since: 4.14
MemoryFormatG8B8r8420 | Multiplane format with 2 planes. The first plane contains the first channel, usually containing luma values. The second plane with interleaved chroma values, Cb followed by Cr. Subsampled in both the X and Y direction. Commonly known by the fourcc "NV12". Since: 4.20
MemoryFormatG8R8b8420 | Multiplane format with 2 planes. The first plane contains the first channel, usually containing luma values. The second plane with interleaved chroma values, Cr followed by Cb. Subsampled in both the X and Y direction. Commonly known by the fourcc "NV21". Since: 4.20
MemoryFormatG8B8r8422 | Multiplane format with 2 planes. The first plane contains the first channel, usually containing luma values. The second plane with interleaved chroma values, Cb followed by Cr. Subsampled in the X direction. Commonly known by the fourcc "NV16". Since: 4.20
MemoryFormatG8R8b8422 | Multiplane format with 2 planes. The first plane contains the first channel, usually containing luma values. The second plane with interleaved chroma values, Cr followed by Cb. Subsampled in the X direction. Commonly known by the fourcc "NV61". Since: 4.20
MemoryFormatG8B8r8444 | Multiplane format with 2 planes. The first plane contains the first channel, usually containing luma values. The second plane with interleaved chroma values, Cb followed by Cr. This format is not subsampled. Commonly known by the fourcc "NV24". Since: 4.20
MemoryFormatG8R8b8444 | Multiplane format with 2 planes. The first plane contains the first channel, usually containing luma values. The second plane with interleaved chroma values, Cr followed by Cb. This format is not subsampled. Commonly known by the fourcc "NV42". Since: 4.20
MemoryFormatG10x6B10x6r10x6420 | Multiplane format with 2 planes. Each channel is a 16 bit integer, but only the highest 10 bits are used. The first plane contains the first channel, usually containing luma values. The second plane with interleaved chroma values, Cr followed by Cb. This format is not subsampled. Commonly known by the fourcc "P010". Since: 4.20
MemoryFormatG12x4B12x4r12x4420 | Multiplane format with 2 planes. Each channel is a 16 bit integer, but only the highest 10 bits are used. The first plane contains the first channel, usually containing luma values. The second plane with interleaved chroma values, Cr followed by Cb. This format is not subsampled. Commonly known by the fourcc "P012". Since: 4.20
MemoryFormatG16B16r16420 | Multiplane format with 2 planes. Each channel is a 16 bit integer. The first plane contains the first channel, usually containing luma values. The second plane with interleaved chroma values, Cr followed by Cb. This format is not subsampled. Commonly known by the fourcc "P016". Since: 4.20

MemoryFormatG8B8R8410

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in both the X and Y direction with 4:1 ratio. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in both the X and Y direction with 4:1 ratio. It is mapped into the 1st channel.

Commonly known by the fourcc "YUV410".

Since: 4.20

MemoryFormatG8R8B8410

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the second chroma chanel. Subsampled in both the X and Y direction with 4:1 ratio. It is mapped into the 1st channel.

The third plane usually contains the first chroma channel. Subsampled in both the X and Y direction with 4:1 ratio. It is mapped into the 3rd channel.

Commonly known by the fourcc "YVU410".

Since: 4.20

MemoryFormatG8B8R8411

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in the X direction with 4:1 ratio. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in the X direction with 4:1 ratio. It is mapped into the 1st channel.

Commonly known by the fourcc "YUV411".

Since: 4.20

MemoryFormatG8R8B8411

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the second chroma chanel. Subsampled in the X direction with 4:1 ratio. It is mapped into the 1st channel.

The third plane usually contains the first chroma channel. Subsampled in the X direction with 4:1 ratio. It is mapped into the 3rd channel.

Commonly known by the fourcc "YVU411".

Since: 4.20

MemoryFormatG8B8R8420

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in both the X and Y direction. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in both the X and Y direction. It is mapped into the 1st channel.

Commonly known by the fourcc "YUV420".

Since: 4.20

MemoryFormatG8R8B8420

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the second chroma chanel. Subsampled in both the X and Y direction. It is mapped into the 1st channel.

The third plane usually contains the first chroma channel. Subsampled in both the X and Y direction. It is mapped into the 3rd channel.

Commonly known by the fourcc "YVU420".

Since: 4.20

MemoryFormatG8B8R8422

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in the X direction. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in the X direction. It is mapped into the 1st channel.

Commonly known by the fourcc "YUV422".

Since: 4.20

MemoryFormatG8R8B8422

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the second chroma chanel. Subsampled in the X direction. It is mapped into the 1st channel.

The third plane usually contains the first chroma channel. Subsampled in the X direction. It is mapped into the 3rd channel.

Commonly known by the fourcc "YVU422".

Since: 4.20

MemoryFormatG8B8R8444

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. It is mapped into the 1st channel.

Commonly known by the fourcc "YUV444".

Since: 4.20

MemoryFormatG8R8B8444

Multiplane format with 3 planes.

Each channel is a 8 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the second chroma chanel. Subsampled in the X direction. It is mapped into the 1st channel.

The third plane usually contains the first chroma channel. Subsampled in the X direction. It is mapped into the 3rd channel.

Commonly known by the fourcc "YVU444".

Since: 4.20

MemoryFormatG8b8g8r8422 | Packed format with subsampled channels. Each channel is a 8 bit integer. The red and blue/chroma channels are subsampled and interleaved with the green/luma channel. Each block contains 2 pixels, so the width must be a multiple of 2. Commonly known by the fourcc "YUYV". Since: 4.20
MemoryFormatG8r8g8b8422 | Packed format with subsampled channels. Each channel is a 8 bit integer. The red and blue/chroma channels are subsampled and interleaved with the green/luma channel. Each block contains 2 pixels, so the width must be a multiple of 2. Commonly known by the fourcc "YVYU". Since: 4.20
MemoryFormatR8g8b8g8422 | Packed format with subsampled channels. Each channel is a 8 bit integer. The red and blue/chroma channels are subsampled and interleaved with the green/luma channel. Each block contains 2 pixels, so the width must be a multiple of 2. Commonly known by the fourcc "VYUY". Since: 4.20
MemoryFormatB8g8r8g8422 | Packed format with subsampled channels. Each channel is a 8 bit integer. The red and blue/chroma channels are subsampled and interleaved with the green/luma channel. Each block contains 2 pixels, so the width must be a multiple of 2. Commonly known by the fourcc "UYVY". Since: 4.20

MemoryFormatX6g10X6b10X6r10420

Multiplane format with 3 planes.

Each channel is a 16 bit integer.

Only the 10 lower bits are used. The remaining ones must be set to 0 by the producer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in both the X and Y direction. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in both the X and Y direction. It is mapped into the 1st channel.

Commonly known by the fourcc "S010".

Since: 4.20

MemoryFormatX6g10X6b10X6r10422

Multiplane format with 3 planes.

Each channel is a 16 bit integer.

Only the 10 lower bits are used. The remaining ones must be set to 0 by the producer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in the X direction. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in the X direction. It is mapped into the 1st channel.

Commonly known by the fourcc "S210".

Since: 4.20

MemoryFormatX6g10X6b10X6r10444

Multiplane format with 3 planes.

Each channel is a 16 bit integer.

Only the 10 lower bits are used. The remaining ones must be set to 0 by the producer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. It is mapped into the 1st channel.

Commonly known by the fourcc "S410".

Since: 4.20

MemoryFormatX4g12X4b12X4r12420

Multiplane format with 3 planes.

Each channel is a 16 bit integer.

Only the 12 lower bits are used. The remaining ones must be set to 0 by the producer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in both the X and Y direction. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in both the X and Y direction. It is mapped into the 1st channel.

Commonly known by the fourcc "S012".

Since: 4.20

MemoryFormatX4g12X4b12X4r12422

Multiplane format with 3 planes.

Each channel is a 16 bit integer.

Only the 12 lower bits are used. The remaining ones must be set to 0 by the producer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in the X direction. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in the X direction. It is mapped into the 1st channel.

Commonly known by the fourcc "S212".

Since: 4.20

MemoryFormatX4g12X4b12X4r12444

Multiplane format with 3 planes.

Each channel is a 16 bit integer.

Only the 12 lower bits are used. The remaining ones must be set to 0 by the producer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. It is mapped into the 1st channel.

Commonly known by the fourcc "S412".

Since: 4.20

MemoryFormatG16B16R16420

Multiplane format with 3 planes.

Each channel is a 16 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in both the X and Y direction. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in both the X and Y direction. It is mapped into the 1st channel.

Commonly known by the fourcc "S016".

Since: 4.20

MemoryFormatG16B16R16422

Multiplane format with 3 planes.

Each channel is a 16 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. Subsampled in the X direction. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. Subsampled in the X direction. It is mapped into the 1st channel.

Commonly known by the fourcc "S216".

Since: 4.20

MemoryFormatG16B16R16444

Multiplane format with 3 planes.

Each channel is a 16 bit integer.

The first plane usually contains the luma channel. It is mapped into the 2nd channel.

The second plane usually contains the first chroma chanel. It is mapped into the 3rd channel.

The third plane usually contains the second chroma channel. It is mapped into the 1st channel.

Commonly known by the fourcc "S416".

Since: 4.20

MemoryFormatArgb2101010Premultiplied | 4 bytes per pixel Bits 31..30 contain the alpha channel, 29..20 red, 19..10 green and 9..0 blue. The color values are premultiplied with the alpha value. Since: 4.24
MemoryFormatArgb2101010 | 4 bytes per pixel Bits 31..30 contain the alpha channel, 29..20 red, 19..10 green and 9..0 blue. Since: 4.24
MemoryFormatXrgb2101010 | 4 bytes per pixel Bits 31..30 are padding, bits 29..20 contain red, 19..10 green and 9..0 blue. The format is opaque. Since: 4.24
MemoryFormatAbgr2101010Premultiplied | 4 bytes per pixel Bits 31..30 contain the alpha channel, 29..20 blue, 19..10 green and 9..0 red. The color values are premultiplied with the alpha value. Since: 4.24
MemoryFormatAbgr2101010 | 4 bytes per pixel Bits 31..30 contain the alpha channel, 29..20 blue, 19..10 green and 9..0 red. Since: 4.24
MemoryFormatXbgr2101010 | 4 bytes per pixel Bits 31..30 are padding, bits 29..20 contain blue, 19..10 green and 9..0 red. The format is opaque. Since: 4.24
MemoryFormatNFormats | The number of formats. This value will change as more formats get added, so do not rely on its concrete integer.
AnotherMemoryFormat Int | Catch-all for unknown values

#### Instances

Instances details

Enum MemoryFormat Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: MemoryFormat -> MemoryFormat Source #

pred :: MemoryFormat -> MemoryFormat Source #

toEnum :: Int -> MemoryFormat Source #

fromEnum :: MemoryFormat -> Int Source #

enumFrom :: MemoryFormat -> [MemoryFormat] Source #

enumFromThen :: MemoryFormat -> MemoryFormat -> [MemoryFormat] Source #

enumFromTo :: MemoryFormat -> MemoryFormat -> [MemoryFormat] Source #

enumFromThenTo :: MemoryFormat -> MemoryFormat -> MemoryFormat -> [MemoryFormat] Source #

Show MemoryFormat Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> MemoryFormat -> ShowS Source # show :: MemoryFormat -> String Source # showList :: [MemoryFormat] -> ShowS Source #
Eq MemoryFormat Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: MemoryFormat -> MemoryFormat -> Bool Source # (/=) :: MemoryFormat -> MemoryFormat -> Bool Source #
Ord MemoryFormat Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: MemoryFormat -> MemoryFormat -> Ordering Source #

(<) :: MemoryFormat -> MemoryFormat -> Bool Source #

(<=) :: MemoryFormat -> MemoryFormat -> Bool Source #

(>) :: MemoryFormat -> MemoryFormat -> Bool Source #

(>=) :: MemoryFormat -> MemoryFormat -> Bool Source #

max :: MemoryFormat -> MemoryFormat -> MemoryFormat Source #

min :: MemoryFormat -> MemoryFormat -> MemoryFormat Source #

BoxedEnum MemoryFormat Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject MemoryFormat Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes MemoryFormat Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes MemoryFormat Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes MemoryFormat = '[] :: [Type]

## NotifyType

data NotifyType Source #

Specifies the kind of crossing for enter and leave events.

See the X11 protocol specification of LeaveNotify for full details of crossing event generation.

Constructors

NotifyTypeAncestor | the surface is entered from an ancestor or left towards an ancestor.
NotifyTypeVirtual | the pointer moves between an ancestor and an inferior of the surface.
NotifyTypeInferior | the surface is entered from an inferior or left towards an inferior.
NotifyTypeNonlinear | the surface is entered from or left towards a surface which is neither an ancestor nor an inferior.
NotifyTypeNonlinearVirtual | the pointer moves between two surfaces which are not ancestors of each other and the surface is part of the ancestor chain between one of these surfaces and their least common ancestor.
NotifyTypeUnknown | an unknown type of enter/leave event occurred.
AnotherNotifyType Int | Catch-all for unknown values

#### Instances

Instances details

Enum NotifyType Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: NotifyType -> NotifyType Source #

pred :: NotifyType -> NotifyType Source #

toEnum :: Int -> NotifyType Source #

fromEnum :: NotifyType -> Int Source #

enumFrom :: NotifyType -> [NotifyType] Source #

enumFromThen :: NotifyType -> NotifyType -> [NotifyType] Source #

enumFromTo :: NotifyType -> NotifyType -> [NotifyType] Source #

enumFromThenTo :: NotifyType -> NotifyType -> NotifyType -> [NotifyType] Source #

Show NotifyType Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> NotifyType -> ShowS Source # show :: NotifyType -> String Source # showList :: [NotifyType] -> ShowS Source #
Eq NotifyType Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: NotifyType -> NotifyType -> Bool Source # (/=) :: NotifyType -> NotifyType -> Bool Source #
Ord NotifyType Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: NotifyType -> NotifyType -> Ordering Source #

(<) :: NotifyType -> NotifyType -> Bool Source #

(<=) :: NotifyType -> NotifyType -> Bool Source #

(>) :: NotifyType -> NotifyType -> Bool Source #

(>=) :: NotifyType -> NotifyType -> Bool Source #

max :: NotifyType -> NotifyType -> NotifyType Source #

min :: NotifyType -> NotifyType -> NotifyType Source #

BoxedEnum NotifyType Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject NotifyType Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes NotifyType Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes NotifyType Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes NotifyType = '[] :: [Type]

## ScrollDirection

data ScrollDirection Source #

Specifies the direction for scroll events.

Constructors

ScrollDirectionUp | the surface is scrolled up.
ScrollDirectionDown | the surface is scrolled down.
ScrollDirectionLeft | the surface is scrolled to the left.
ScrollDirectionRight | the surface is scrolled to the right.
ScrollDirectionSmooth | the scrolling is determined by the delta values in scroll events. See `scrollEventGetDeltas`
AnotherScrollDirection Int | Catch-all for unknown values

#### Instances

Instances details

Enum ScrollDirection Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: ScrollDirection -> ScrollDirection Source #

pred :: ScrollDirection -> ScrollDirection Source #

toEnum :: Int -> ScrollDirection Source #

fromEnum :: ScrollDirection -> Int Source #

enumFrom :: ScrollDirection -> [ScrollDirection] Source #

enumFromThen :: ScrollDirection -> ScrollDirection -> [ScrollDirection] Source #

enumFromTo :: ScrollDirection -> ScrollDirection -> [ScrollDirection] Source #

enumFromThenTo :: ScrollDirection -> ScrollDirection -> ScrollDirection -> [ScrollDirection] Source #

Show ScrollDirection Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> ScrollDirection -> ShowS Source # show :: ScrollDirection -> String Source # showList :: [ScrollDirection] -> ShowS Source #
Eq ScrollDirection Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: ScrollDirection -> ScrollDirection -> Bool Source # (/=) :: ScrollDirection -> ScrollDirection -> Bool Source #
Ord ScrollDirection Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: ScrollDirection -> ScrollDirection -> Ordering Source #

(<) :: ScrollDirection -> ScrollDirection -> Bool Source #

(<=) :: ScrollDirection -> ScrollDirection -> Bool Source #

(>) :: ScrollDirection -> ScrollDirection -> Bool Source #

(>=) :: ScrollDirection -> ScrollDirection -> Bool Source #

max :: ScrollDirection -> ScrollDirection -> ScrollDirection Source #

min :: ScrollDirection -> ScrollDirection -> ScrollDirection Source #

BoxedEnum ScrollDirection Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject ScrollDirection Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes ScrollDirection Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes ScrollDirection Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes ScrollDirection = '[] :: [Type]

## ScrollRelativeDirection

data ScrollRelativeDirection Source #

Used in scroll events, to announce the direction relative to physical motion.

Since: 4.20

Constructors

ScrollRelativeDirectionIdentical | Physical motion and event motion are the same
ScrollRelativeDirectionInverted | Physical motion is inverted relative to event motion
ScrollRelativeDirectionUnknown | Relative motion is unknown on this device or backend
AnotherScrollRelativeDirection Int | Catch-all for unknown values

#### Instances

Instances details

Enum ScrollRelativeDirection Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: ScrollRelativeDirection -> ScrollRelativeDirection Source #

pred :: ScrollRelativeDirection -> ScrollRelativeDirection Source #

toEnum :: Int -> ScrollRelativeDirection Source #

fromEnum :: ScrollRelativeDirection -> Int Source #

enumFrom :: ScrollRelativeDirection -> [ScrollRelativeDirection] Source #

enumFromThen :: ScrollRelativeDirection -> ScrollRelativeDirection -> [ScrollRelativeDirection] Source #

enumFromTo :: ScrollRelativeDirection -> ScrollRelativeDirection -> [ScrollRelativeDirection] Source #

enumFromThenTo :: ScrollRelativeDirection -> ScrollRelativeDirection -> ScrollRelativeDirection -> [ScrollRelativeDirection] Source #

Show ScrollRelativeDirection Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> ScrollRelativeDirection -> ShowS Source # show :: ScrollRelativeDirection -> String Source # showList :: [ScrollRelativeDirection] -> ShowS Source #
Eq ScrollRelativeDirection Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: ScrollRelativeDirection -> ScrollRelativeDirection -> Bool Source # (/=) :: ScrollRelativeDirection -> ScrollRelativeDirection -> Bool Source #
Ord ScrollRelativeDirection Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: ScrollRelativeDirection -> ScrollRelativeDirection -> Ordering Source #

(<) :: ScrollRelativeDirection -> ScrollRelativeDirection -> Bool Source #

(<=) :: ScrollRelativeDirection -> ScrollRelativeDirection -> Bool Source #

(>) :: ScrollRelativeDirection -> ScrollRelativeDirection -> Bool Source #

(>=) :: ScrollRelativeDirection -> ScrollRelativeDirection -> Bool Source #

max :: ScrollRelativeDirection -> ScrollRelativeDirection -> ScrollRelativeDirection Source #

min :: ScrollRelativeDirection -> ScrollRelativeDirection -> ScrollRelativeDirection Source #

BoxedEnum ScrollRelativeDirection Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject ScrollRelativeDirection Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes ScrollRelativeDirection Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes ScrollRelativeDirection Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes ScrollRelativeDirection = '[] :: [Type]

## ScrollUnit

data ScrollUnit Source #

Specifies the unit of scroll deltas.

When you get `ScrollUnitWheel`, a delta of 1.0 means 1 wheel detent click in the south direction, 2.0 means 2 wheel detent clicks in the south direction... This is the same logic for negative values but in the north direction.

If you get `ScrollUnitSurface`, are managing a scrollable view and get a value of 123, you have to scroll 123 surface logical pixels right if it's `deltaX` or down if it's `deltaY`. This is the same logic for negative values but you have to scroll left instead of right if it's `deltaX` and up instead of down if it's `deltaY`.

1 surface logical pixel is equal to 1 real screen pixel multiplied by the final scale factor of your graphical interface (the product of the desktop scale factor and eventually a custom scale factor in your app).

Since: 4.8

Constructors

ScrollUnitWheel | The delta is in number of wheel clicks.
ScrollUnitSurface | The delta is in surface pixels to scroll directly on screen.
AnotherScrollUnit Int | Catch-all for unknown values

#### Instances

Instances details

Enum ScrollUnit Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: ScrollUnit -> ScrollUnit Source #

pred :: ScrollUnit -> ScrollUnit Source #

toEnum :: Int -> ScrollUnit Source #

fromEnum :: ScrollUnit -> Int Source #

enumFrom :: ScrollUnit -> [ScrollUnit] Source #

enumFromThen :: ScrollUnit -> ScrollUnit -> [ScrollUnit] Source #

enumFromTo :: ScrollUnit -> ScrollUnit -> [ScrollUnit] Source #

enumFromThenTo :: ScrollUnit -> ScrollUnit -> ScrollUnit -> [ScrollUnit] Source #

Show ScrollUnit Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> ScrollUnit -> ShowS Source # show :: ScrollUnit -> String Source # showList :: [ScrollUnit] -> ShowS Source #
Eq ScrollUnit Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: ScrollUnit -> ScrollUnit -> Bool Source # (/=) :: ScrollUnit -> ScrollUnit -> Bool Source #
Ord ScrollUnit Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: ScrollUnit -> ScrollUnit -> Ordering Source #

(<) :: ScrollUnit -> ScrollUnit -> Bool Source #

(<=) :: ScrollUnit -> ScrollUnit -> Bool Source #

(>) :: ScrollUnit -> ScrollUnit -> Bool Source #

(>=) :: ScrollUnit -> ScrollUnit -> Bool Source #

max :: ScrollUnit -> ScrollUnit -> ScrollUnit Source #

min :: ScrollUnit -> ScrollUnit -> ScrollUnit Source #

BoxedEnum ScrollUnit Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject ScrollUnit Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes ScrollUnit Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes ScrollUnit Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes ScrollUnit = '[] :: [Type]

## SubpixelLayout

data SubpixelLayout Source #

This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out.

Constructors

SubpixelLayoutUnknown | The layout is not known
SubpixelLayoutNone | Not organized in this way
SubpixelLayoutHorizontalRgb | The layout is horizontal, the order is RGB
SubpixelLayoutHorizontalBgr | The layout is horizontal, the order is BGR
SubpixelLayoutVerticalRgb | The layout is vertical, the order is RGB
SubpixelLayoutVerticalBgr | The layout is vertical, the order is BGR
AnotherSubpixelLayout Int | Catch-all for unknown values

#### Instances

Instances details

Enum SubpixelLayout Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: SubpixelLayout -> SubpixelLayout Source #

pred :: SubpixelLayout -> SubpixelLayout Source #

toEnum :: Int -> SubpixelLayout Source #

fromEnum :: SubpixelLayout -> Int Source #

enumFrom :: SubpixelLayout -> [SubpixelLayout] Source #

enumFromThen :: SubpixelLayout -> SubpixelLayout -> [SubpixelLayout] Source #

enumFromTo :: SubpixelLayout -> SubpixelLayout -> [SubpixelLayout] Source #

enumFromThenTo :: SubpixelLayout -> SubpixelLayout -> SubpixelLayout -> [SubpixelLayout] Source #

Show SubpixelLayout Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> SubpixelLayout -> ShowS Source # show :: SubpixelLayout -> String Source # showList :: [SubpixelLayout] -> ShowS Source #
Eq SubpixelLayout Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: SubpixelLayout -> SubpixelLayout -> Bool Source # (/=) :: SubpixelLayout -> SubpixelLayout -> Bool Source #
Ord SubpixelLayout Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: SubpixelLayout -> SubpixelLayout -> Ordering Source #

(<) :: SubpixelLayout -> SubpixelLayout -> Bool Source #

(<=) :: SubpixelLayout -> SubpixelLayout -> Bool Source #

(>) :: SubpixelLayout -> SubpixelLayout -> Bool Source #

(>=) :: SubpixelLayout -> SubpixelLayout -> Bool Source #

max :: SubpixelLayout -> SubpixelLayout -> SubpixelLayout Source #

min :: SubpixelLayout -> SubpixelLayout -> SubpixelLayout Source #

BoxedEnum SubpixelLayout Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject SubpixelLayout Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes SubpixelLayout Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes SubpixelLayout Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes SubpixelLayout = '[] :: [Type]

## SurfaceEdge

data SurfaceEdge Source #

Determines a surface edge or corner.

Constructors

SurfaceEdgeNorthWest | the top left corner.
SurfaceEdgeNorth | the top edge.
SurfaceEdgeNorthEast | the top right corner.
SurfaceEdgeWest | the left edge.
SurfaceEdgeEast | the right edge.
SurfaceEdgeSouthWest | the lower left corner.
SurfaceEdgeSouth | the lower edge.
SurfaceEdgeSouthEast | the lower right corner.
AnotherSurfaceEdge Int | Catch-all for unknown values

#### Instances

Instances details

Enum SurfaceEdge Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: SurfaceEdge -> SurfaceEdge Source #

pred :: SurfaceEdge -> SurfaceEdge Source #

toEnum :: Int -> SurfaceEdge Source #

fromEnum :: SurfaceEdge -> Int Source #

enumFrom :: SurfaceEdge -> [SurfaceEdge] Source #

enumFromThen :: SurfaceEdge -> SurfaceEdge -> [SurfaceEdge] Source #

enumFromTo :: SurfaceEdge -> SurfaceEdge -> [SurfaceEdge] Source #

enumFromThenTo :: SurfaceEdge -> SurfaceEdge -> SurfaceEdge -> [SurfaceEdge] Source #

Show SurfaceEdge Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> SurfaceEdge -> ShowS Source # show :: SurfaceEdge -> String Source # showList :: [SurfaceEdge] -> ShowS Source #
Eq SurfaceEdge Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: SurfaceEdge -> SurfaceEdge -> Bool Source # (/=) :: SurfaceEdge -> SurfaceEdge -> Bool Source #
Ord SurfaceEdge Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: SurfaceEdge -> SurfaceEdge -> Ordering Source #

(<) :: SurfaceEdge -> SurfaceEdge -> Bool Source #

(<=) :: SurfaceEdge -> SurfaceEdge -> Bool Source #

(>) :: SurfaceEdge -> SurfaceEdge -> Bool Source #

(>=) :: SurfaceEdge -> SurfaceEdge -> Bool Source #

max :: SurfaceEdge -> SurfaceEdge -> SurfaceEdge Source #

min :: SurfaceEdge -> SurfaceEdge -> SurfaceEdge Source #

BoxedEnum SurfaceEdge Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject SurfaceEdge Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes SurfaceEdge Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes SurfaceEdge Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes SurfaceEdge = '[] :: [Type]

## TextureError

data TextureError Source #

Possible errors that can be returned by `GdkTexture` constructors.

Since: 4.6

Constructors

TextureErrorTooLarge | Not enough memory to handle this image
TextureErrorCorruptImage | The image data appears corrupted
TextureErrorUnsupportedContent | The image contains features that cannot be loaded
TextureErrorUnsupportedFormat | The image format is not supported
AnotherTextureError Int | Catch-all for unknown values

#### Instances

Instances details

Enum TextureError Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: TextureError -> TextureError Source #

pred :: TextureError -> TextureError Source #

toEnum :: Int -> TextureError Source #

fromEnum :: TextureError -> Int Source #

enumFrom :: TextureError -> [TextureError] Source #

enumFromThen :: TextureError -> TextureError -> [TextureError] Source #

enumFromTo :: TextureError -> TextureError -> [TextureError] Source #

enumFromThenTo :: TextureError -> TextureError -> TextureError -> [TextureError] Source #

Show TextureError Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> TextureError -> ShowS Source # show :: TextureError -> String Source # showList :: [TextureError] -> ShowS Source #
Eq TextureError Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: TextureError -> TextureError -> Bool Source # (/=) :: TextureError -> TextureError -> Bool Source #
Ord TextureError Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: TextureError -> TextureError -> Ordering Source #

(<) :: TextureError -> TextureError -> Bool Source #

(<=) :: TextureError -> TextureError -> Bool Source #

(>) :: TextureError -> TextureError -> Bool Source #

(>=) :: TextureError -> TextureError -> Bool Source #

max :: TextureError -> TextureError -> TextureError Source #

min :: TextureError -> TextureError -> TextureError Source #

BoxedEnum TextureError Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject TextureError Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
GErrorClass TextureError Source # |
Instance details Defined in GI.Gdk.Enums Methods gerrorClassDomain :: TextureError -> Text Source #
HasParentTypes TextureError Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes TextureError Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes TextureError = '[] :: [Type]

catchTextureError :: IO a -> (TextureError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type `TextureError`. This is a specialized version of `catchGErrorJustDomain`.

handleTextureError :: (TextureError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type `TextureError`. This is a specialized version of `handleGErrorJustDomain`.

## TitlebarGesture

data TitlebarGesture Source #

The kind of title bar gesture to emit with `toplevelTitlebarGesture`.

Since: 4.4

Constructors

TitlebarGestureDoubleClick | double click gesture
TitlebarGestureRightClick | right click gesture
TitlebarGestureMiddleClick | middle click gesture
AnotherTitlebarGesture Int | Catch-all for unknown values

#### Instances

Instances details

Enum TitlebarGesture Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: TitlebarGesture -> TitlebarGesture Source #

pred :: TitlebarGesture -> TitlebarGesture Source #

toEnum :: Int -> TitlebarGesture Source #

fromEnum :: TitlebarGesture -> Int Source #

enumFrom :: TitlebarGesture -> [TitlebarGesture] Source #

enumFromThen :: TitlebarGesture -> TitlebarGesture -> [TitlebarGesture] Source #

enumFromTo :: TitlebarGesture -> TitlebarGesture -> [TitlebarGesture] Source #

enumFromThenTo :: TitlebarGesture -> TitlebarGesture -> TitlebarGesture -> [TitlebarGesture] Source #

Show TitlebarGesture Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> TitlebarGesture -> ShowS Source # show :: TitlebarGesture -> String Source # showList :: [TitlebarGesture] -> ShowS Source #
Eq TitlebarGesture Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: TitlebarGesture -> TitlebarGesture -> Bool Source # (/=) :: TitlebarGesture -> TitlebarGesture -> Bool Source #
Ord TitlebarGesture Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: TitlebarGesture -> TitlebarGesture -> Ordering Source #

(<) :: TitlebarGesture -> TitlebarGesture -> Bool Source #

(<=) :: TitlebarGesture -> TitlebarGesture -> Bool Source #

(>) :: TitlebarGesture -> TitlebarGesture -> Bool Source #

(>=) :: TitlebarGesture -> TitlebarGesture -> Bool Source #

max :: TitlebarGesture -> TitlebarGesture -> TitlebarGesture Source #

min :: TitlebarGesture -> TitlebarGesture -> TitlebarGesture Source #

BoxedEnum TitlebarGesture Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject TitlebarGesture Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes TitlebarGesture Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes TitlebarGesture Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes TitlebarGesture = '[] :: [Type]

## TouchpadGesturePhase

data TouchpadGesturePhase Source #

Specifies the current state of a touchpad gesture.

All gestures are guaranteed to begin with an event with phase `TouchpadGesturePhaseBegin`, followed by 0 or several events with phase `TouchpadGesturePhaseUpdate`.

A finished gesture may have 2 possible outcomes, an event with phase `TouchpadGesturePhaseEnd` will be emitted when the gesture is considered successful, this should be used as the hint to perform any permanent changes.

Cancelled gestures may be so for a variety of reasons, due to hardware or the compositor, or due to the gesture recognition layers hinting the gesture did not finish resolutely (eg. a 3rd finger being added during a pinch gesture). In these cases, the last event will report the phase `TouchpadGesturePhaseCancel`, this should be used as a hint to undo any visible/permanent changes that were done throughout the progress of the gesture.

Constructors

TouchpadGesturePhaseBegin | The gesture has begun.
TouchpadGesturePhaseUpdate | The gesture has been updated.
TouchpadGesturePhaseEnd | The gesture was finished, changes should be permanently applied.
TouchpadGesturePhaseCancel | The gesture was cancelled, all changes should be undone.
AnotherTouchpadGesturePhase Int | Catch-all for unknown values

#### Instances

Instances details

Enum TouchpadGesturePhase Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: TouchpadGesturePhase -> TouchpadGesturePhase Source #

pred :: TouchpadGesturePhase -> TouchpadGesturePhase Source #

toEnum :: Int -> TouchpadGesturePhase Source #

fromEnum :: TouchpadGesturePhase -> Int Source #

enumFrom :: TouchpadGesturePhase -> [TouchpadGesturePhase] Source #

enumFromThen :: TouchpadGesturePhase -> TouchpadGesturePhase -> [TouchpadGesturePhase] Source #

enumFromTo :: TouchpadGesturePhase -> TouchpadGesturePhase -> [TouchpadGesturePhase] Source #

enumFromThenTo :: TouchpadGesturePhase -> TouchpadGesturePhase -> TouchpadGesturePhase -> [TouchpadGesturePhase] Source #

Show TouchpadGesturePhase Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> TouchpadGesturePhase -> ShowS Source # show :: TouchpadGesturePhase -> String Source # showList :: [TouchpadGesturePhase] -> ShowS Source #
Eq TouchpadGesturePhase Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool Source # (/=) :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool Source #
Ord TouchpadGesturePhase Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: TouchpadGesturePhase -> TouchpadGesturePhase -> Ordering Source #

(<) :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool Source #

(<=) :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool Source #

(>) :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool Source #

(>=) :: TouchpadGesturePhase -> TouchpadGesturePhase -> Bool Source #

max :: TouchpadGesturePhase -> TouchpadGesturePhase -> TouchpadGesturePhase Source #

min :: TouchpadGesturePhase -> TouchpadGesturePhase -> TouchpadGesturePhase Source #

BoxedEnum TouchpadGesturePhase Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject TouchpadGesturePhase Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
HasParentTypes TouchpadGesturePhase Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes TouchpadGesturePhase Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes TouchpadGesturePhase = '[] :: [Type]

## VulkanError

data VulkanError Source #

Error enumeration for `GdkVulkanContext`.

Constructors

VulkanErrorUnsupported | Vulkan is not supported on this backend or has not been compiled in.
VulkanErrorNotAvailable | Vulkan support is not available on this Surface
AnotherVulkanError Int | Catch-all for unknown values

#### Instances

Instances details

Enum VulkanError Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

succ :: VulkanError -> VulkanError Source #

pred :: VulkanError -> VulkanError Source #

toEnum :: Int -> VulkanError Source #

fromEnum :: VulkanError -> Int Source #

enumFrom :: VulkanError -> [VulkanError] Source #

enumFromThen :: VulkanError -> VulkanError -> [VulkanError] Source #

enumFromTo :: VulkanError -> VulkanError -> [VulkanError] Source #

enumFromThenTo :: VulkanError -> VulkanError -> VulkanError -> [VulkanError] Source #

Show VulkanError Source # |
Instance details Defined in GI.Gdk.Enums Methods showsPrec :: Int -> VulkanError -> ShowS Source # show :: VulkanError -> String Source # showList :: [VulkanError] -> ShowS Source #
Eq VulkanError Source # |
Instance details Defined in GI.Gdk.Enums Methods (==) :: VulkanError -> VulkanError -> Bool Source # (/=) :: VulkanError -> VulkanError -> Bool Source #
Ord VulkanError Source # |

Instance details

Defined in GI.Gdk.Enums

Methods

compare :: VulkanError -> VulkanError -> Ordering Source #

(<) :: VulkanError -> VulkanError -> Bool Source #

(<=) :: VulkanError -> VulkanError -> Bool Source #

(>) :: VulkanError -> VulkanError -> Bool Source #

(>=) :: VulkanError -> VulkanError -> Bool Source #

max :: VulkanError -> VulkanError -> VulkanError Source #

min :: VulkanError -> VulkanError -> VulkanError Source #

BoxedEnum VulkanError Source # |
Instance details Defined in GI.Gdk.Enums
TypedObject VulkanError Source # |
Instance details Defined in GI.Gdk.Enums Methods glibType :: IO GType Source #
GErrorClass VulkanError Source # |
Instance details Defined in GI.Gdk.Enums Methods gerrorClassDomain :: VulkanError -> Text Source #
HasParentTypes VulkanError Source # |
Instance details Defined in GI.Gdk.Enums
type ParentTypes VulkanError Source # |
Instance details Defined in GI.Gdk.Enums type ParentTypes VulkanError = '[] :: [Type]

catchVulkanError :: IO a -> (VulkanError -> GErrorMessage -> IO a) -> IO a Source #

Catch exceptions of type `VulkanError`. This is a specialized version of `catchGErrorJustDomain`.

handleVulkanError :: (VulkanError -> GErrorMessage -> IO a) -> IO a -> IO a Source #

Handle exceptions of type `VulkanError`. This is a specialized version of `handleGErrorJustDomain`.