gi-gdk-4.0.7: Gdk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gdk.Enums

Description

 
Synopsis

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

Show AxisUse Source # 
Instance details

Defined in GI.Gdk.Enums

Eq AxisUse Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

(==) :: AxisUse -> AxisUse -> Bool #

(/=) :: AxisUse -> AxisUse -> Bool #

Ord AxisUse Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum AxisUse Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject AxisUse Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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]

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

Show CrossingMode Source # 
Instance details

Defined in GI.Gdk.Enums

Eq CrossingMode Source # 
Instance details

Defined in GI.Gdk.Enums

Ord CrossingMode Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum CrossingMode Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject CrossingMode Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show DevicePadFeature Source # 
Instance details

Defined in GI.Gdk.Enums

Eq DevicePadFeature Source # 
Instance details

Defined in GI.Gdk.Enums

Ord DevicePadFeature Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum DevicePadFeature Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject DevicePadFeature Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show DeviceToolType Source # 
Instance details

Defined in GI.Gdk.Enums

Eq DeviceToolType Source # 
Instance details

Defined in GI.Gdk.Enums

Ord DeviceToolType Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum DeviceToolType Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject DeviceToolType Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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]

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

Show DragCancelReason Source # 
Instance details

Defined in GI.Gdk.Enums

Eq DragCancelReason Source # 
Instance details

Defined in GI.Gdk.Enums

Ord DragCancelReason Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum DragCancelReason Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject DragCancelReason Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

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

Show EventType Source # 
Instance details

Defined in GI.Gdk.Enums

Eq EventType Source # 
Instance details

Defined in GI.Gdk.Enums

Ord EventType Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum EventType Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject EventType Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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]

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

Show FullscreenMode Source # 
Instance details

Defined in GI.Gdk.Enums

Eq FullscreenMode Source # 
Instance details

Defined in GI.Gdk.Enums

Ord FullscreenMode Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum FullscreenMode Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject FullscreenMode Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show GLError Source # 
Instance details

Defined in GI.Gdk.Enums

Eq GLError Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

(==) :: GLError -> GLError -> Bool #

(/=) :: GLError -> GLError -> Bool #

Ord GLError Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum GLError Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject GLError Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

GErrorClass GLError Source # 
Instance details

Defined in GI.Gdk.Enums

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

Show Gravity Source # 
Instance details

Defined in GI.Gdk.Enums

Eq Gravity Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

(==) :: Gravity -> Gravity -> Bool #

(/=) :: Gravity -> Gravity -> Bool #

Ord Gravity Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum Gravity Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject Gravity Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show InputSource Source # 
Instance details

Defined in GI.Gdk.Enums

Eq InputSource Source # 
Instance details

Defined in GI.Gdk.Enums

Ord InputSource Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum InputSource Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject InputSource Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show KeyMatch Source # 
Instance details

Defined in GI.Gdk.Enums

Eq KeyMatch Source # 
Instance details

Defined in GI.Gdk.Enums

Ord KeyMatch Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum KeyMatch Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject KeyMatch Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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 #

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).

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

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

Instances details
Enum MemoryFormat Source # 
Instance details

Defined in GI.Gdk.Enums

Show MemoryFormat Source # 
Instance details

Defined in GI.Gdk.Enums

Eq MemoryFormat Source # 
Instance details

Defined in GI.Gdk.Enums

Ord MemoryFormat Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum MemoryFormat Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject MemoryFormat Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show NotifyType Source # 
Instance details

Defined in GI.Gdk.Enums

Eq NotifyType Source # 
Instance details

Defined in GI.Gdk.Enums

Ord NotifyType Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum NotifyType Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject NotifyType Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show ScrollDirection Source # 
Instance details

Defined in GI.Gdk.Enums

Eq ScrollDirection Source # 
Instance details

Defined in GI.Gdk.Enums

Ord ScrollDirection Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum ScrollDirection Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject ScrollDirection Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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]

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

Show ScrollUnit Source # 
Instance details

Defined in GI.Gdk.Enums

Eq ScrollUnit Source # 
Instance details

Defined in GI.Gdk.Enums

Ord ScrollUnit Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum ScrollUnit Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject ScrollUnit Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show SubpixelLayout Source # 
Instance details

Defined in GI.Gdk.Enums

Eq SubpixelLayout Source # 
Instance details

Defined in GI.Gdk.Enums

Ord SubpixelLayout Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum SubpixelLayout Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject SubpixelLayout Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show SurfaceEdge Source # 
Instance details

Defined in GI.Gdk.Enums

Eq SurfaceEdge Source # 
Instance details

Defined in GI.Gdk.Enums

Ord SurfaceEdge Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum SurfaceEdge Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject SurfaceEdge Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show TextureError Source # 
Instance details

Defined in GI.Gdk.Enums

Eq TextureError Source # 
Instance details

Defined in GI.Gdk.Enums

Ord TextureError Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum TextureError Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject TextureError Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

GErrorClass TextureError Source # 
Instance details

Defined in GI.Gdk.Enums

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 #

No description available in the introspection data.

Since: 4.4

Constructors

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

Instances details
Enum TitlebarGesture Source # 
Instance details

Defined in GI.Gdk.Enums

Show TitlebarGesture Source # 
Instance details

Defined in GI.Gdk.Enums

Eq TitlebarGesture Source # 
Instance details

Defined in GI.Gdk.Enums

Ord TitlebarGesture Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum TitlebarGesture Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject TitlebarGesture Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show TouchpadGesturePhase Source # 
Instance details

Defined in GI.Gdk.Enums

Eq TouchpadGesturePhase Source # 
Instance details

Defined in GI.Gdk.Enums

Ord TouchpadGesturePhase Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum TouchpadGesturePhase Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject TouchpadGesturePhase Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

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

Show VulkanError Source # 
Instance details

Defined in GI.Gdk.Enums

Eq VulkanError Source # 
Instance details

Defined in GI.Gdk.Enums

Ord VulkanError Source # 
Instance details

Defined in GI.Gdk.Enums

BoxedEnum VulkanError Source # 
Instance details

Defined in GI.Gdk.Enums

TypedObject VulkanError Source # 
Instance details

Defined in GI.Gdk.Enums

Methods

glibType :: IO GType

GErrorClass VulkanError Source # 
Instance details

Defined in GI.Gdk.Enums

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.