Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data AxisUse
- data CrossingMode
- data DevicePadFeature
- data DeviceToolType
- data DragCancelReason
- data EventType
- = EventTypeDelete
- | EventTypeMotionNotify
- | EventTypeButtonPress
- | EventTypeButtonRelease
- | EventTypeKeyPress
- | EventTypeKeyRelease
- | EventTypeEnterNotify
- | EventTypeLeaveNotify
- | EventTypeFocusChange
- | EventTypeProximityIn
- | EventTypeProximityOut
- | EventTypeDragEnter
- | EventTypeDragLeave
- | EventTypeDragMotion
- | EventTypeDropStart
- | EventTypeScroll
- | EventTypeGrabBroken
- | EventTypeTouchBegin
- | EventTypeTouchUpdate
- | EventTypeTouchEnd
- | EventTypeTouchCancel
- | EventTypeTouchpadSwipe
- | EventTypeTouchpadPinch
- | EventTypePadButtonPress
- | EventTypePadButtonRelease
- | EventTypePadRing
- | EventTypePadStrip
- | EventTypePadGroupMode
- | EventTypeTouchpadHold
- | EventTypeEventLast
- | AnotherEventType Int
- data FullscreenMode
- data GLError
- catchGLError :: IO a -> (GLError -> GErrorMessage -> IO a) -> IO a
- handleGLError :: (GLError -> GErrorMessage -> IO a) -> IO a -> IO a
- data Gravity
- data InputSource
- data KeyMatch
- data MemoryFormat
- = MemoryFormatB8g8r8a8Premultiplied
- | MemoryFormatA8r8g8b8Premultiplied
- | MemoryFormatR8g8b8a8Premultiplied
- | MemoryFormatB8g8r8a8
- | MemoryFormatA8r8g8b8
- | MemoryFormatR8g8b8a8
- | MemoryFormatA8b8g8r8
- | MemoryFormatR8g8b8
- | MemoryFormatB8g8r8
- | MemoryFormatR16g16b16
- | MemoryFormatR16g16b16a16Premultiplied
- | MemoryFormatR16g16b16a16
- | MemoryFormatR16g16b16Float
- | MemoryFormatR16g16b16a16FloatPremultiplied
- | MemoryFormatR16g16b16a16Float
- | MemoryFormatR32g32b32Float
- | MemoryFormatR32g32b32a32FloatPremultiplied
- | MemoryFormatR32g32b32a32Float
- | MemoryFormatNFormats
- | AnotherMemoryFormat Int
- data NotifyType
- data ScrollDirection
- data ScrollUnit
- data SubpixelLayout
- data SurfaceEdge
- data TextureError
- catchTextureError :: IO a -> (TextureError -> GErrorMessage -> IO a) -> IO a
- handleTextureError :: (TextureError -> GErrorMessage -> IO a) -> IO a -> IO a
- data TitlebarGesture
- data TouchpadGesturePhase
- data VulkanError
- catchVulkanError :: IO a -> (VulkanError -> GErrorMessage -> IO a) -> IO a
- handleVulkanError :: (VulkanError -> GErrorMessage -> IO a) -> IO a -> IO a
Enumerations
AxisUse
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.
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
Enum AxisUse Source # | |
Show AxisUse Source # | |
Eq AxisUse Source # | |
Ord AxisUse Source # | |
BoxedEnum AxisUse Source # | |
Defined in GI.Gdk.Enums | |
TypedObject AxisUse Source # | |
Defined in GI.Gdk.Enums | |
HasParentTypes AxisUse Source # | |
Defined in GI.Gdk.Enums | |
type ParentTypes AxisUse Source # | |
Defined in GI.Gdk.Enums |
CrossingMode
data CrossingMode Source #
Specifies the crossing mode for enter and leave events.
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
DevicePadFeature
data DevicePadFeature Source #
A pad feature.
DevicePadFeatureButton | a button |
DevicePadFeatureRing | a ring-shaped interactive area |
DevicePadFeatureStrip | a straight interactive area |
AnotherDevicePadFeature Int | Catch-all for unknown values |
Instances
DeviceToolType
data DeviceToolType Source #
Indicates the specific type of tool being used being a tablet. Such as an airbrush, pencil, etc.
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
DragCancelReason
data DragCancelReason Source #
Used in GdkDrag
to the reason of a cancelled DND operation.
DragCancelReasonNoTarget | There is no suitable drop target. |
DragCancelReasonUserCancelled | Drag cancelled by the user |
DragCancelReasonError | Unspecified error. |
AnotherDragCancelReason Int | Catch-all for unknown values |
Instances
EventType
Specifies the type of the event.
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 |
EventTypeEventLast | marks the end of the GdkEventType enumeration. |
AnotherEventType Int | Catch-all for unknown values |
Instances
Enum EventType Source # | |
Defined in GI.Gdk.Enums succ :: EventType -> EventType # pred :: EventType -> EventType # fromEnum :: EventType -> Int # enumFrom :: EventType -> [EventType] # enumFromThen :: EventType -> EventType -> [EventType] # enumFromTo :: EventType -> EventType -> [EventType] # enumFromThenTo :: EventType -> EventType -> EventType -> [EventType] # | |
Show EventType Source # | |
Eq EventType Source # | |
Ord EventType Source # | |
Defined in GI.Gdk.Enums | |
BoxedEnum EventType Source # | |
Defined in GI.Gdk.Enums | |
TypedObject EventType Source # | |
Defined in GI.Gdk.Enums | |
HasParentTypes EventType Source # | |
Defined in GI.Gdk.Enums | |
type ParentTypes EventType Source # | |
Defined in GI.Gdk.Enums |
FullscreenMode
data FullscreenMode Source #
Indicates which monitor a surface should span over when in fullscreen mode.
FullscreenModeCurrentMonitor | Fullscreen on current monitor only. |
FullscreenModeAllMonitors | Span across all monitors when fullscreen. |
AnotherFullscreenMode Int | Catch-all for unknown values |
Instances
GLError
Error enumeration for GdkGLContext
.
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
Enum GLError Source # | |
Show GLError Source # | |
Eq GLError Source # | |
Ord GLError Source # | |
BoxedEnum GLError Source # | |
Defined in GI.Gdk.Enums | |
TypedObject GLError Source # | |
Defined in GI.Gdk.Enums | |
GErrorClass GLError Source # | |
Defined in GI.Gdk.Enums gerrorClassDomain :: GLError -> Text | |
HasParentTypes GLError Source # | |
Defined in GI.Gdk.Enums | |
type ParentTypes GLError Source # | |
Defined in GI.Gdk.Enums |
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
Defines the reference point of a surface and is used in GdkPopupLayout
.
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
Enum Gravity Source # | |
Show Gravity Source # | |
Eq Gravity Source # | |
Ord Gravity Source # | |
BoxedEnum Gravity Source # | |
Defined in GI.Gdk.Enums | |
TypedObject Gravity Source # | |
Defined in GI.Gdk.Enums | |
HasParentTypes Gravity Source # | |
Defined in GI.Gdk.Enums | |
type ParentTypes Gravity Source # | |
Defined in GI.Gdk.Enums |
InputSource
data InputSource Source #
An enumeration describing the type of an input device in general terms.
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
KeyMatch
Describes how well an event matches a given keyval and modifiers.
GdkKeyMatch
values are returned by keyEventMatches
.
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
Enum KeyMatch Source # | |
Show KeyMatch Source # | |
Eq KeyMatch Source # | |
Ord KeyMatch Source # | |
Defined in GI.Gdk.Enums | |
BoxedEnum KeyMatch Source # | |
Defined in GI.Gdk.Enums | |
TypedObject KeyMatch Source # | |
Defined in GI.Gdk.Enums | |
HasParentTypes KeyMatch Source # | |
Defined in GI.Gdk.Enums | |
type ParentTypes KeyMatch Source # | |
Defined in GI.Gdk.Enums |
MemoryFormat
data MemoryFormat Source #
GdkMemoryFormat
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.
Its naming is modelled after VkFormat for details).
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 | No description available in the introspection data. |
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 |
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
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.
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
ScrollDirection
data ScrollDirection Source #
Specifies the direction for scroll events.
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 |
AnotherScrollDirection Int | Catch-all for unknown values |
Instances
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
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
SubpixelLayout
data SubpixelLayout Source #
This enumeration describes how the red, green and blue components of physical pixels on an output device are laid out.
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
SurfaceEdge
data SurfaceEdge Source #
Determines a surface edge or corner.
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
TextureError
data TextureError Source #
Possible errors that can be returned by GdkTexture
constructors.
Since: 4.6
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
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 #
No description available in the introspection data.
Since: 4.4
TitlebarGestureDoubleClick | No description available in the introspection data. |
TitlebarGestureRightClick | No description available in the introspection data. |
TitlebarGestureMiddleClick | No description available in the introspection data. |
AnotherTitlebarGesture Int | Catch-all for unknown values |
Instances
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.
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
VulkanError
data VulkanError Source #
Error enumeration for GdkVulkanContext
.
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
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
.