gi-gdk-3.0.23: Gdk bindings

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

GI.Gdk.Flags

Contents

- Flags
  - AnchorHints
  - AxisFlags
  - DragAction
  - EventMask
  - FrameClockPhase
  - ModifierType
  - SeatCapabilities
  - WMDecoration
  - WMFunction
  - WindowAttributesType
  - WindowHints
  - WindowState

Description

Synopsis

- data AnchorHints
  - = AnchorHintsFlipX
  - | AnchorHintsFlipY
  - | AnchorHintsSlideX
  - | AnchorHintsSlideY
  - | AnchorHintsResizeX
  - | AnchorHintsResizeY
  - | AnchorHintsFlip
  - | AnchorHintsSlide
  - | AnchorHintsResize
  - | AnotherAnchorHints Int
- data AxisFlags
  - = AxisFlagsX
  - | AxisFlagsY
  - | AxisFlagsPressure
  - | AxisFlagsXtilt
  - | AxisFlagsYtilt
  - | AxisFlagsWheel
  - | AxisFlagsDistance
  - | AxisFlagsRotation
  - | AxisFlagsSlider
  - | AnotherAxisFlags Int
- data DragAction
  - = DragActionDefault
  - | DragActionCopy
  - | DragActionMove
  - | DragActionLink
  - | DragActionPrivate
  - | DragActionAsk
  - | AnotherDragAction Int
- data EventMask
  - = EventMaskExposureMask
  - | EventMaskPointerMotionMask
  - | EventMaskPointerMotionHintMask
  - | EventMaskButtonMotionMask
  - | EventMaskButton1MotionMask
  - | EventMaskButton2MotionMask
  - | EventMaskButton3MotionMask
  - | EventMaskButtonPressMask
  - | EventMaskButtonReleaseMask
  - | EventMaskKeyPressMask
  - | EventMaskKeyReleaseMask
  - | EventMaskEnterNotifyMask
  - | EventMaskLeaveNotifyMask
  - | EventMaskFocusChangeMask
  - | EventMaskStructureMask
  - | EventMaskPropertyChangeMask
  - | EventMaskVisibilityNotifyMask
  - | EventMaskProximityInMask
  - | EventMaskProximityOutMask
  - | EventMaskSubstructureMask
  - | EventMaskScrollMask
  - | EventMaskTouchMask
  - | EventMaskSmoothScrollMask
  - | EventMaskTouchpadGestureMask
  - | EventMaskTabletPadMask
  - | EventMaskAllEventsMask
  - | AnotherEventMask Int
- data FrameClockPhase
  - = FrameClockPhaseNone
  - | FrameClockPhaseFlushEvents
  - | FrameClockPhaseBeforePaint
  - | FrameClockPhaseUpdate
  - | FrameClockPhaseLayout
  - | FrameClockPhasePaint
  - | FrameClockPhaseResumeEvents
  - | FrameClockPhaseAfterPaint
  - | AnotherFrameClockPhase Int
- data ModifierType
  - = ModifierTypeShiftMask
  - | ModifierTypeLockMask
  - | ModifierTypeControlMask
  - | ModifierTypeMod1Mask
  - | ModifierTypeMod2Mask
  - | ModifierTypeMod3Mask
  - | ModifierTypeMod4Mask
  - | ModifierTypeMod5Mask
  - | ModifierTypeButton1Mask
  - | ModifierTypeButton2Mask
  - | ModifierTypeButton3Mask
  - | ModifierTypeButton4Mask
  - | ModifierTypeButton5Mask
  - | ModifierTypeModifierReserved13Mask
  - | ModifierTypeModifierReserved14Mask
  - | ModifierTypeModifierReserved15Mask
  - | ModifierTypeModifierReserved16Mask
  - | ModifierTypeModifierReserved17Mask
  - | ModifierTypeModifierReserved18Mask
  - | ModifierTypeModifierReserved19Mask
  - | ModifierTypeModifierReserved20Mask
  - | ModifierTypeModifierReserved21Mask
  - | ModifierTypeModifierReserved22Mask
  - | ModifierTypeModifierReserved23Mask
  - | ModifierTypeModifierReserved24Mask
  - | ModifierTypeModifierReserved25Mask
  - | ModifierTypeSuperMask
  - | ModifierTypeHyperMask
  - | ModifierTypeMetaMask
  - | ModifierTypeModifierReserved29Mask
  - | ModifierTypeReleaseMask
  - | ModifierTypeModifierMask
  - | AnotherModifierType Int
- data SeatCapabilities
  - = SeatCapabilitiesNone
  - | SeatCapabilitiesPointer
  - | SeatCapabilitiesTouch
  - | SeatCapabilitiesTabletStylus
  - | SeatCapabilitiesKeyboard
  - | SeatCapabilitiesAllPointing
  - | SeatCapabilitiesAll
  - | AnotherSeatCapabilities Int
- data WMDecoration
  - = WMDecorationAll
  - | WMDecorationBorder
  - | WMDecorationResizeh
  - | WMDecorationTitle
  - | WMDecorationMenu
  - | WMDecorationMinimize
  - | WMDecorationMaximize
  - | AnotherWMDecoration Int
- data WMFunction
  - = WMFunctionAll
  - | WMFunctionResize
  - | WMFunctionMove
  - | WMFunctionMinimize
  - | WMFunctionMaximize
  - | WMFunctionClose
  - | AnotherWMFunction Int
- data WindowAttributesType
  - = WindowAttributesTypeTitle
  - | WindowAttributesTypeX
  - | WindowAttributesTypeY
  - | WindowAttributesTypeCursor
  - | WindowAttributesTypeVisual
  - | WindowAttributesTypeWmclass
  - | WindowAttributesTypeNoredir
  - | WindowAttributesTypeTypeHint
  - | AnotherWindowAttributesType Int
- data WindowHints
  - = WindowHintsPos
  - | WindowHintsMinSize
  - | WindowHintsMaxSize
  - | WindowHintsBaseSize
  - | WindowHintsAspect
  - | WindowHintsResizeInc
  - | WindowHintsWinGravity
  - | WindowHintsUserPos
  - | WindowHintsUserSize
  - | AnotherWindowHints Int
- data WindowState
  - = WindowStateWithdrawn
  - | WindowStateIconified
  - | WindowStateMaximized
  - | WindowStateSticky
  - | WindowStateFullscreen
  - | WindowStateAbove
  - | WindowStateBelow
  - | WindowStateFocused
  - | WindowStateTiled
  - | WindowStateTopTiled
  - | WindowStateTopResizable
  - | WindowStateRightTiled
  - | WindowStateRightResizable
  - | WindowStateBottomTiled
  - | WindowStateBottomResizable
  - | WindowStateLeftTiled
  - | WindowStateLeftResizable
  - | AnotherWindowState Int

# Flags

## AnchorHints

data AnchorHints Source #

Positioning hints for aligning a window relative to a rectangle.

These hints determine how the window should be positioned in the case that the window would fall off-screen if placed in its ideal position.

For example, `AnchorHintsFlipX` will replace `GravityNorthWest` with `GravityNorthEast` and vice versa if the window extends beyond the left or right edges of the monitor.

If `AnchorHintsSlideX` is set, the window can be shifted horizontally to fit on-screen. If `AnchorHintsResizeX` is set, the window can be shrunken horizontally to fit.

In general, when multiple flags are set, flipping should take precedence over sliding, which should take precedence over resizing.

Since: 3.22

Constructors

AnchorHintsFlipX | allow flipping anchors horizontally
AnchorHintsFlipY | allow flipping anchors vertically
AnchorHintsSlideX | allow sliding window horizontally
AnchorHintsSlideY | allow sliding window vertically
AnchorHintsResizeX | allow resizing window horizontally
AnchorHintsResizeY | allow resizing window vertically
AnchorHintsFlip | allow flipping anchors on both axes
AnchorHintsSlide | allow sliding window on both axes
AnchorHintsResize | allow resizing window on both axes
AnotherAnchorHints Int | Catch-all for unknown values

#### Instances

Instances details

Enum AnchorHints Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

succ :: AnchorHints -> AnchorHints

pred :: AnchorHints -> AnchorHints

toEnum :: Int -> AnchorHints #

fromEnum :: AnchorHints -> Int #

enumFrom :: AnchorHints -> [AnchorHints]

enumFromThen :: AnchorHints -> AnchorHints -> [AnchorHints]

enumFromTo :: AnchorHints -> AnchorHints -> [AnchorHints]

enumFromThenTo :: AnchorHints -> AnchorHints -> AnchorHints -> [AnchorHints]

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

## AxisFlags

data AxisFlags Source #

Flags describing the current capabilities of a device/tool.

Since: 3.22

Constructors

AxisFlagsX | X axis is present
AxisFlagsY | Y axis is present
AxisFlagsPressure | Pressure axis is present
AxisFlagsXtilt | X tilt axis is present
AxisFlagsYtilt | Y tilt axis is present
AxisFlagsWheel | Wheel axis is present
AxisFlagsDistance | Distance axis is present
AxisFlagsRotation | Z-axis rotation is present
AxisFlagsSlider | Slider axis is present
AnotherAxisFlags Int | Catch-all for unknown values

#### Instances

Instances details

Enum AxisFlags Source # |
Instance details Defined in GI.Gdk.Flags Methods succ :: AxisFlags -> AxisFlags pred :: AxisFlags -> AxisFlags toEnum :: Int -> AxisFlags # fromEnum :: AxisFlags -> Int # enumFrom :: AxisFlags -> [AxisFlags] enumFromThen :: AxisFlags -> AxisFlags -> [AxisFlags] enumFromTo :: AxisFlags -> AxisFlags -> [AxisFlags] enumFromThenTo :: AxisFlags -> AxisFlags -> AxisFlags -> [AxisFlags]
Eq AxisFlags Source # |
Instance details Defined in GI.Gdk.Flags Methods (==) :: AxisFlags -> AxisFlags -> Bool # (/=) :: AxisFlags -> AxisFlags -> Bool #
Ord AxisFlags Source # |
Instance details Defined in GI.Gdk.Flags Methods compare :: AxisFlags -> AxisFlags -> Ordering (<) :: AxisFlags -> AxisFlags -> Bool (<=) :: AxisFlags -> AxisFlags -> Bool (>) :: AxisFlags -> AxisFlags -> Bool (>=) :: AxisFlags -> AxisFlags -> Bool max :: AxisFlags -> AxisFlags -> AxisFlags min :: AxisFlags -> AxisFlags -> AxisFlags
Show AxisFlags Source # |
Instance details Defined in GI.Gdk.Flags Methods showsPrec :: Int -> AxisFlags -> ShowS # show :: AxisFlags -> String # showList :: [AxisFlags] -> ShowS #
IsGFlag AxisFlags Source # |
Instance details Defined in GI.Gdk.Flags
BoxedFlags AxisFlags Source # |
Instance details Defined in GI.Gdk.Flags
TypedObject AxisFlags Source # |
Instance details Defined in GI.Gdk.Flags Methods glibType :: IO GType Source #
HasParentTypes AxisFlags Source # |
Instance details Defined in GI.Gdk.Flags
type ParentTypes AxisFlags Source # |
Instance details Defined in GI.Gdk.Flags type ParentTypes AxisFlags = '[] :: [Type]

## DragAction

data DragAction Source #

Used in `DragContext` to indicate what the destination should do with the dropped data.

Constructors

DragActionDefault | Means nothing, and should not be used.
DragActionCopy | Copy the data.
DragActionMove | Move the data, i.e. first copy it, then delete it from the source using the DELETE target of the X selection protocol.
DragActionLink | Add a link to the data. Note that this is only useful if source and destination agree on what it means.
DragActionPrivate | Special action which tells the source that the destination will do something that the source doesn’t understand.
DragActionAsk | Ask the user what to do with the data.
AnotherDragAction Int | Catch-all for unknown values

#### Instances

Instances details

Enum DragAction Source # |
Instance details Defined in GI.Gdk.Flags Methods succ :: DragAction -> DragAction pred :: DragAction -> DragAction toEnum :: Int -> DragAction # fromEnum :: DragAction -> Int # enumFrom :: DragAction -> [DragAction] enumFromThen :: DragAction -> DragAction -> [DragAction] enumFromTo :: DragAction -> DragAction -> [DragAction] enumFromThenTo :: DragAction -> DragAction -> DragAction -> [DragAction]
Eq DragAction Source # |
Instance details Defined in GI.Gdk.Flags Methods (==) :: DragAction -> DragAction -> Bool # (/=) :: DragAction -> DragAction -> Bool #
Ord DragAction Source # |
Instance details Defined in GI.Gdk.Flags Methods compare :: DragAction -> DragAction -> Ordering (<) :: DragAction -> DragAction -> Bool (<=) :: DragAction -> DragAction -> Bool (>) :: DragAction -> DragAction -> Bool (>=) :: DragAction -> DragAction -> Bool max :: DragAction -> DragAction -> DragAction min :: DragAction -> DragAction -> DragAction
Show DragAction Source # |
Instance details Defined in GI.Gdk.Flags Methods showsPrec :: Int -> DragAction -> ShowS # show :: DragAction -> String # showList :: [DragAction] -> ShowS #
IsGFlag DragAction Source # |
Instance details Defined in GI.Gdk.Flags
BoxedFlags DragAction Source # |
Instance details Defined in GI.Gdk.Flags
TypedObject DragAction Source # |
Instance details Defined in GI.Gdk.Flags Methods glibType :: IO GType Source #
HasParentTypes DragAction Source # |
Instance details Defined in GI.Gdk.Flags
type ParentTypes DragAction Source # |
Instance details Defined in GI.Gdk.Flags type ParentTypes DragAction = '[] :: [Type]

## EventMask

data EventMask Source #

A set of bit-flags to indicate which events a window is to receive. Most of these masks map onto one or more of the `EventType` event types above.

See the [input handling overview][chap-input-handling] for details of [event masks][event-masks] and [event propagation][event-propagation].

`EventMaskPointerMotionHintMask` is deprecated. It is a special mask to reduce the number of `EventTypeMotionNotify` events received. When using `EventMaskPointerMotionHintMask`, fewer `EventTypeMotionNotify` events will be sent, some of which are marked as a hint (the is_hint member is `True`). To receive more motion events after a motion hint event, the application needs to asks for more, by calling `eventRequestMotions`.

Since GTK 3.8, motion events are already compressed by default, independent of this mechanism. This compression can be disabled with `windowSetEventCompression`. See the documentation of that function for details.

If `EventMaskTouchMask` is enabled, the window will receive touch events from touch-enabled devices. Those will come as sequences of `EventTouch` with type `EventTypeTouchUpdate`, enclosed by two events with type `EventTypeTouchBegin` and `EventTypeTouchEnd` (or `EventTypeTouchCancel`). `eventGetEventSequence` returns the event sequence for these events, so different sequences may be distinguished.

Constructors

EventMaskExposureMask | receive expose events
EventMaskPointerMotionMask | receive all pointer motion events
EventMaskPointerMotionHintMask | deprecated. see the explanation above
EventMaskButtonMotionMask | receive pointer motion events while any button is pressed
EventMaskButton1MotionMask | receive pointer motion events while 1 button is pressed
EventMaskButton2MotionMask | receive pointer motion events while 2 button is pressed
EventMaskButton3MotionMask | receive pointer motion events while 3 button is pressed
EventMaskButtonPressMask | receive button press events
EventMaskButtonReleaseMask | receive button release events
EventMaskKeyPressMask | receive key press events
EventMaskKeyReleaseMask | receive key release events
EventMaskEnterNotifyMask | receive window enter events
EventMaskLeaveNotifyMask | receive window leave events
EventMaskFocusChangeMask | receive focus change events
EventMaskStructureMask | receive events about window configuration change
EventMaskPropertyChangeMask | receive property change events
EventMaskVisibilityNotifyMask | receive visibility change events
EventMaskProximityInMask | receive proximity in events
EventMaskProximityOutMask | receive proximity out events
EventMaskSubstructureMask | receive events about window configuration changes of child windows
EventMaskScrollMask | receive scroll events
EventMaskTouchMask | receive touch events. Since 3.4
EventMaskSmoothScrollMask | receive smooth scrolling events. Since 3.4
EventMaskTouchpadGestureMask | receive touchpad gesture events. Since 3.18
EventMaskTabletPadMask | receive tablet pad events. Since 3.22
EventMaskAllEventsMask | the combination of all the above event masks.
AnotherEventMask Int | Catch-all for unknown values

#### Instances

Instances details

Enum EventMask Source # |
Instance details Defined in GI.Gdk.Flags Methods succ :: EventMask -> EventMask pred :: EventMask -> EventMask toEnum :: Int -> EventMask # fromEnum :: EventMask -> Int # enumFrom :: EventMask -> [EventMask] enumFromThen :: EventMask -> EventMask -> [EventMask] enumFromTo :: EventMask -> EventMask -> [EventMask] enumFromThenTo :: EventMask -> EventMask -> EventMask -> [EventMask]
Eq EventMask Source # |
Instance details Defined in GI.Gdk.Flags Methods (==) :: EventMask -> EventMask -> Bool # (/=) :: EventMask -> EventMask -> Bool #
Ord EventMask Source # |
Instance details Defined in GI.Gdk.Flags Methods compare :: EventMask -> EventMask -> Ordering (<) :: EventMask -> EventMask -> Bool (<=) :: EventMask -> EventMask -> Bool (>) :: EventMask -> EventMask -> Bool (>=) :: EventMask -> EventMask -> Bool max :: EventMask -> EventMask -> EventMask min :: EventMask -> EventMask -> EventMask
Show EventMask Source # |
Instance details Defined in GI.Gdk.Flags Methods showsPrec :: Int -> EventMask -> ShowS # show :: EventMask -> String # showList :: [EventMask] -> ShowS #
IsGFlag EventMask Source # |
Instance details Defined in GI.Gdk.Flags
BoxedFlags EventMask Source # |
Instance details Defined in GI.Gdk.Flags
TypedObject EventMask Source # |
Instance details Defined in GI.Gdk.Flags Methods glibType :: IO GType Source #
HasParentTypes EventMask Source # |
Instance details Defined in GI.Gdk.Flags
type ParentTypes EventMask Source # |
Instance details Defined in GI.Gdk.Flags type ParentTypes EventMask = '[] :: [Type]

## FrameClockPhase

data FrameClockPhase Source #

`FrameClockPhase` is used to represent the different paint clock phases that can be requested. The elements of the enumeration correspond to the signals of `FrameClock`.

Since: 3.8

Constructors

FrameClockPhaseNone | no phase
FrameClockPhaseFlushEvents | corresponds to GdkFrameClock[flushEvents](#g:signal:flushEvents). Should not be handled by applications.
FrameClockPhaseBeforePaint | corresponds to GdkFrameClock[beforePaint](#g:signal:beforePaint). Should not be handled by applications.
FrameClockPhaseUpdate | corresponds to GdkFrameClock[update](#g:signal:update).
FrameClockPhaseLayout | corresponds to GdkFrameClock[layout](#g:signal:layout).
FrameClockPhasePaint | corresponds to GdkFrameClock[paint](#g:signal:paint).
FrameClockPhaseResumeEvents | corresponds to GdkFrameClock[resumeEvents](#g:signal:resumeEvents). Should not be handled by applications.
FrameClockPhaseAfterPaint | corresponds to GdkFrameClock[afterPaint](#g:signal:afterPaint). Should not be handled by applications.
AnotherFrameClockPhase Int | Catch-all for unknown values

#### Instances

Instances details

Enum FrameClockPhase Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

succ :: FrameClockPhase -> FrameClockPhase

pred :: FrameClockPhase -> FrameClockPhase

toEnum :: Int -> FrameClockPhase #

fromEnum :: FrameClockPhase -> Int #

enumFrom :: FrameClockPhase -> [FrameClockPhase]

enumFromThen :: FrameClockPhase -> FrameClockPhase -> [FrameClockPhase]

enumFromTo :: FrameClockPhase -> FrameClockPhase -> [FrameClockPhase]

enumFromThenTo :: FrameClockPhase -> FrameClockPhase -> FrameClockPhase -> [FrameClockPhase]

Eq FrameClockPhase Source # |
Instance details Defined in GI.Gdk.Flags Methods (==) :: FrameClockPhase -> FrameClockPhase -> Bool # (/=) :: FrameClockPhase -> FrameClockPhase -> Bool #
Ord FrameClockPhase Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

compare :: FrameClockPhase -> FrameClockPhase -> Ordering

(<) :: FrameClockPhase -> FrameClockPhase -> Bool

(<=) :: FrameClockPhase -> FrameClockPhase -> Bool

(>) :: FrameClockPhase -> FrameClockPhase -> Bool

(>=) :: FrameClockPhase -> FrameClockPhase -> Bool

max :: FrameClockPhase -> FrameClockPhase -> FrameClockPhase

min :: FrameClockPhase -> FrameClockPhase -> FrameClockPhase

Show FrameClockPhase Source # |
Instance details Defined in GI.Gdk.Flags Methods showsPrec :: Int -> FrameClockPhase -> ShowS # show :: FrameClockPhase -> String # showList :: [FrameClockPhase] -> ShowS #
IsGFlag FrameClockPhase Source # |
Instance details Defined in GI.Gdk.Flags
BoxedFlags FrameClockPhase Source # |
Instance details Defined in GI.Gdk.Flags
TypedObject FrameClockPhase Source # |
Instance details Defined in GI.Gdk.Flags Methods glibType :: IO GType Source #
HasParentTypes FrameClockPhase Source # |
Instance details Defined in GI.Gdk.Flags
type ParentTypes FrameClockPhase Source # |
Instance details Defined in GI.Gdk.Flags type ParentTypes FrameClockPhase = '[] :: [Type]

## ModifierType

data ModifierType Source #

A set of bit-flags to indicate the state of modifier keys and mouse buttons in various event types. Typical modifier keys are Shift, Control, Meta, Super, Hyper, Alt, Compose, Apple, CapsLock or ShiftLock.

Like the X Window System, GDK supports 8 modifier keys and 5 mouse buttons.

Since 2.10, GDK recognizes which of the Meta, Super or Hyper keys are mapped to Mod2 - Mod5, and indicates this by setting `ModifierTypeSuperMask`, `ModifierTypeHyperMask` or `ModifierTypeMetaMask` in the state field of key events.

Note that GDK may add internal values to events which include reserved values such as `ModifierTypeModifierReserved13Mask`. Your code should preserve and ignore them. You can use `ModifierTypeModifierMask` to remove all reserved values.

Also note that the GDK X backend interprets button press events for button 4-7 as scroll events, so `ModifierTypeButton4Mask` and `ModifierTypeButton5Mask` will never be set.

Constructors

ModifierTypeShiftMask | the Shift key.
ModifierTypeLockMask | a Lock key (depending on the modifier mapping of the X server this may either be CapsLock or ShiftLock).
ModifierTypeControlMask | the Control key.
ModifierTypeMod1Mask | the fourth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier, but normally it is the Alt key).
ModifierTypeMod2Mask | the fifth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier).
ModifierTypeMod3Mask | the sixth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier).
ModifierTypeMod4Mask | the seventh modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier).
ModifierTypeMod5Mask | the eighth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier).
ModifierTypeButton1Mask | the first mouse button.
ModifierTypeButton2Mask | the second mouse button.
ModifierTypeButton3Mask | the third mouse button.
ModifierTypeButton4Mask | the fourth mouse button.
ModifierTypeButton5Mask | the fifth mouse button.
ModifierTypeModifierReserved13Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved14Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved15Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved16Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved17Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved18Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved19Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved20Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved21Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved22Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved23Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved24Mask | A reserved bit flag; do not use in your own code
ModifierTypeModifierReserved25Mask | A reserved bit flag; do not use in your own code
ModifierTypeSuperMask | the Super modifier. Since 2.10
ModifierTypeHyperMask | the Hyper modifier. Since 2.10
ModifierTypeMetaMask | the Meta modifier. Since 2.10
ModifierTypeModifierReserved29Mask | A reserved bit flag; do not use in your own code
ModifierTypeReleaseMask | not used in GDK itself. GTK+ uses it to differentiate between (keyval, modifiers) pairs from key press and release events.
ModifierTypeModifierMask | a mask covering all modifier types.
AnotherModifierType Int | Catch-all for unknown values

#### Instances

Instances details

Enum ModifierType Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

succ :: ModifierType -> ModifierType

pred :: ModifierType -> ModifierType

toEnum :: Int -> ModifierType #

fromEnum :: ModifierType -> Int #

enumFrom :: ModifierType -> [ModifierType]

enumFromThen :: ModifierType -> ModifierType -> [ModifierType]

enumFromTo :: ModifierType -> ModifierType -> [ModifierType]

enumFromThenTo :: ModifierType -> ModifierType -> ModifierType -> [ModifierType]

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

## SeatCapabilities

data SeatCapabilities Source #

Flags describing the seat capabilities.

Since: 3.20

Constructors

SeatCapabilitiesNone | No input capabilities
SeatCapabilitiesPointer | The seat has a pointer (e.g. mouse)
SeatCapabilitiesTouch | The seat has touchscreen(s) attached
SeatCapabilitiesTabletStylus | The seat has drawing tablet(s) attached
SeatCapabilitiesKeyboard | The seat has keyboard(s) attached
SeatCapabilitiesAllPointing | The union of all pointing capabilities
SeatCapabilitiesAll | The union of all capabilities
AnotherSeatCapabilities Int | Catch-all for unknown values

#### Instances

Instances details

Enum SeatCapabilities Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

succ :: SeatCapabilities -> SeatCapabilities

pred :: SeatCapabilities -> SeatCapabilities

toEnum :: Int -> SeatCapabilities #

fromEnum :: SeatCapabilities -> Int #

enumFrom :: SeatCapabilities -> [SeatCapabilities]

enumFromThen :: SeatCapabilities -> SeatCapabilities -> [SeatCapabilities]

enumFromTo :: SeatCapabilities -> SeatCapabilities -> [SeatCapabilities]

enumFromThenTo :: SeatCapabilities -> SeatCapabilities -> SeatCapabilities -> [SeatCapabilities]

Eq SeatCapabilities Source # |
Instance details Defined in GI.Gdk.Flags Methods (==) :: SeatCapabilities -> SeatCapabilities -> Bool # (/=) :: SeatCapabilities -> SeatCapabilities -> Bool #
Ord SeatCapabilities Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

compare :: SeatCapabilities -> SeatCapabilities -> Ordering

(<) :: SeatCapabilities -> SeatCapabilities -> Bool

(<=) :: SeatCapabilities -> SeatCapabilities -> Bool

(>) :: SeatCapabilities -> SeatCapabilities -> Bool

(>=) :: SeatCapabilities -> SeatCapabilities -> Bool

max :: SeatCapabilities -> SeatCapabilities -> SeatCapabilities

min :: SeatCapabilities -> SeatCapabilities -> SeatCapabilities

Show SeatCapabilities Source # |
Instance details Defined in GI.Gdk.Flags Methods showsPrec :: Int -> SeatCapabilities -> ShowS # show :: SeatCapabilities -> String # showList :: [SeatCapabilities] -> ShowS #
IsGFlag SeatCapabilities Source # |
Instance details Defined in GI.Gdk.Flags
BoxedFlags SeatCapabilities Source # |
Instance details Defined in GI.Gdk.Flags
TypedObject SeatCapabilities Source # |
Instance details Defined in GI.Gdk.Flags Methods glibType :: IO GType Source #
HasParentTypes SeatCapabilities Source # |
Instance details Defined in GI.Gdk.Flags
type ParentTypes SeatCapabilities Source # |
Instance details Defined in GI.Gdk.Flags type ParentTypes SeatCapabilities = '[] :: [Type]

## WMDecoration

data WMDecoration Source #

These are hints originally defined by the Motif toolkit. The window manager can use them when determining how to decorate the window. The hint must be set before mapping the window.

Constructors

WMDecorationAll | all decorations should be applied.
WMDecorationBorder | a frame should be drawn around the window.
WMDecorationResizeh | the frame should have resize handles.
WMDecorationTitle | a titlebar should be placed above the window.
WMDecorationMenu | a button for opening a menu should be included.
WMDecorationMinimize | a minimize button should be included.
WMDecorationMaximize | a maximize button should be included.
AnotherWMDecoration Int | Catch-all for unknown values

#### Instances

Instances details

Enum WMDecoration Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

succ :: WMDecoration -> WMDecoration

pred :: WMDecoration -> WMDecoration

toEnum :: Int -> WMDecoration #

fromEnum :: WMDecoration -> Int #

enumFrom :: WMDecoration -> [WMDecoration]

enumFromThen :: WMDecoration -> WMDecoration -> [WMDecoration]

enumFromTo :: WMDecoration -> WMDecoration -> [WMDecoration]

enumFromThenTo :: WMDecoration -> WMDecoration -> WMDecoration -> [WMDecoration]

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

## WMFunction

data WMFunction Source #

These are hints originally defined by the Motif toolkit. The window manager can use them when determining the functions to offer for the window. The hint must be set before mapping the window.

Constructors

WMFunctionAll | all functions should be offered.
WMFunctionResize | the window should be resizable.
WMFunctionMove | the window should be movable.
WMFunctionMinimize | the window should be minimizable.
WMFunctionMaximize | the window should be maximizable.
WMFunctionClose | the window should be closable.
AnotherWMFunction Int | Catch-all for unknown values

#### Instances

Instances details

Enum WMFunction Source # |
Instance details Defined in GI.Gdk.Flags Methods succ :: WMFunction -> WMFunction pred :: WMFunction -> WMFunction toEnum :: Int -> WMFunction # fromEnum :: WMFunction -> Int # enumFrom :: WMFunction -> [WMFunction] enumFromThen :: WMFunction -> WMFunction -> [WMFunction] enumFromTo :: WMFunction -> WMFunction -> [WMFunction] enumFromThenTo :: WMFunction -> WMFunction -> WMFunction -> [WMFunction]
Eq WMFunction Source # |
Instance details Defined in GI.Gdk.Flags Methods (==) :: WMFunction -> WMFunction -> Bool # (/=) :: WMFunction -> WMFunction -> Bool #
Ord WMFunction Source # |
Instance details Defined in GI.Gdk.Flags Methods compare :: WMFunction -> WMFunction -> Ordering (<) :: WMFunction -> WMFunction -> Bool (<=) :: WMFunction -> WMFunction -> Bool (>) :: WMFunction -> WMFunction -> Bool (>=) :: WMFunction -> WMFunction -> Bool max :: WMFunction -> WMFunction -> WMFunction min :: WMFunction -> WMFunction -> WMFunction
Show WMFunction Source # |
Instance details Defined in GI.Gdk.Flags Methods showsPrec :: Int -> WMFunction -> ShowS # show :: WMFunction -> String # showList :: [WMFunction] -> ShowS #
IsGFlag WMFunction Source # |
Instance details Defined in GI.Gdk.Flags
BoxedFlags WMFunction Source # |
Instance details Defined in GI.Gdk.Flags
TypedObject WMFunction Source # |
Instance details Defined in GI.Gdk.Flags Methods glibType :: IO GType Source #
HasParentTypes WMFunction Source # |
Instance details Defined in GI.Gdk.Flags
type ParentTypes WMFunction Source # |
Instance details Defined in GI.Gdk.Flags type ParentTypes WMFunction = '[] :: [Type]

## WindowAttributesType

data WindowAttributesType Source #

Used to indicate which fields in the `WindowAttr` struct should be honored. For example, if you filled in the “cursor” and “x” fields of `WindowAttr`, pass “`gDKWAX` | `gDKWACURSOR`” to `windowNew`. Fields in `WindowAttr` not covered by a bit in this enum are required; for example, the `width`/`height`, `wclass`, and `windowType` fields are required, they have no corresponding flag in `WindowAttributesType`.

Constructors

WindowAttributesTypeTitle | Honor the title field
WindowAttributesTypeX | Honor the X coordinate field
WindowAttributesTypeY | Honor the Y coordinate field
WindowAttributesTypeCursor | Honor the cursor field
WindowAttributesTypeVisual | Honor the visual field
WindowAttributesTypeWmclass | Honor the wmclass_class and wmclass_name fields
WindowAttributesTypeNoredir | Honor the override_redirect field
WindowAttributesTypeTypeHint | Honor the type_hint field
AnotherWindowAttributesType Int | Catch-all for unknown values

#### Instances

Instances details

Enum WindowAttributesType Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

succ :: WindowAttributesType -> WindowAttributesType

pred :: WindowAttributesType -> WindowAttributesType

toEnum :: Int -> WindowAttributesType #

fromEnum :: WindowAttributesType -> Int #

enumFrom :: WindowAttributesType -> [WindowAttributesType]

enumFromThen :: WindowAttributesType -> WindowAttributesType -> [WindowAttributesType]

enumFromTo :: WindowAttributesType -> WindowAttributesType -> [WindowAttributesType]

enumFromThenTo :: WindowAttributesType -> WindowAttributesType -> WindowAttributesType -> [WindowAttributesType]

Eq WindowAttributesType Source # |
Instance details Defined in GI.Gdk.Flags Methods (==) :: WindowAttributesType -> WindowAttributesType -> Bool # (/=) :: WindowAttributesType -> WindowAttributesType -> Bool #
Ord WindowAttributesType Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

compare :: WindowAttributesType -> WindowAttributesType -> Ordering

(<) :: WindowAttributesType -> WindowAttributesType -> Bool

(<=) :: WindowAttributesType -> WindowAttributesType -> Bool

(>) :: WindowAttributesType -> WindowAttributesType -> Bool

(>=) :: WindowAttributesType -> WindowAttributesType -> Bool

max :: WindowAttributesType -> WindowAttributesType -> WindowAttributesType

min :: WindowAttributesType -> WindowAttributesType -> WindowAttributesType

Show WindowAttributesType Source # |
Instance details Defined in GI.Gdk.Flags Methods showsPrec :: Int -> WindowAttributesType -> ShowS # show :: WindowAttributesType -> String # showList :: [WindowAttributesType] -> ShowS #
IsGFlag WindowAttributesType Source # |
Instance details Defined in GI.Gdk.Flags
BoxedFlags WindowAttributesType Source # |
Instance details Defined in GI.Gdk.Flags
TypedObject WindowAttributesType Source # |
Instance details Defined in GI.Gdk.Flags Methods glibType :: IO GType Source #
HasParentTypes WindowAttributesType Source # |
Instance details Defined in GI.Gdk.Flags
type ParentTypes WindowAttributesType Source # |
Instance details Defined in GI.Gdk.Flags type ParentTypes WindowAttributesType = '[] :: [Type]

## WindowHints

data WindowHints Source #

Used to indicate which fields of a `Geometry` struct should be paid attention to. Also, the presence/absence of `gDKHINTPOS`, `gDKHINTUSERPOS`, and `gDKHINTUSERSIZE` is significant, though they don't directly refer to `Geometry` fields. `gDKHINTUSERPOS` will be set automatically by `GtkWindow` if you call `gtk_window_move()`. `gDKHINTUSERPOS` and `gDKHINTUSERSIZE` should be set if the user specified a size/position using a --geometry command-line argument; `gtk_window_parse_geometry()` automatically sets these flags.

Constructors

WindowHintsPos | indicates that the program has positioned the window
WindowHintsMinSize | min size fields are set
WindowHintsMaxSize | max size fields are set
WindowHintsBaseSize | base size fields are set
WindowHintsAspect | aspect ratio fields are set
WindowHintsResizeInc | resize increment fields are set
WindowHintsWinGravity | window gravity field is set
WindowHintsUserPos | indicates that the window’s position was explicitly set by the user
WindowHintsUserSize | indicates that the window’s size was explicitly set by the user
AnotherWindowHints Int | Catch-all for unknown values

#### Instances

Instances details

Enum WindowHints Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

succ :: WindowHints -> WindowHints

pred :: WindowHints -> WindowHints

toEnum :: Int -> WindowHints #

fromEnum :: WindowHints -> Int #

enumFrom :: WindowHints -> [WindowHints]

enumFromThen :: WindowHints -> WindowHints -> [WindowHints]

enumFromTo :: WindowHints -> WindowHints -> [WindowHints]

enumFromThenTo :: WindowHints -> WindowHints -> WindowHints -> [WindowHints]

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

## WindowState

data WindowState Source #

Specifies the state of a toplevel window.

Constructors

WindowStateWithdrawn | the window is not shown.
WindowStateIconified | the window is minimized.
WindowStateMaximized | the window is maximized.
WindowStateSticky | the window is sticky.
WindowStateFullscreen | the window is maximized without decorations.
WindowStateAbove | the window is kept above other windows.
WindowStateBelow | the window is kept below other windows.
WindowStateFocused | the window is presented as focused (with active decorations).
WindowStateTiled | the window is in a tiled state, Since 3.10. Since 3.22.23, this is deprecated in favor of per-edge information.
WindowStateTopTiled | whether the top edge is tiled, Since 3.22.23
WindowStateTopResizable | whether the top edge is resizable, Since 3.22.23
WindowStateRightTiled | whether the right edge is tiled, Since 3.22.23
WindowStateRightResizable | whether the right edge is resizable, Since 3.22.23
WindowStateBottomTiled | whether the bottom edge is tiled, Since 3.22.23
WindowStateBottomResizable | whether the bottom edge is resizable, Since 3.22.23
WindowStateLeftTiled | whether the left edge is tiled, Since 3.22.23
WindowStateLeftResizable | whether the left edge is resizable, Since 3.22.23
AnotherWindowState Int | Catch-all for unknown values

#### Instances

Instances details

Enum WindowState Source # |

Instance details

Defined in GI.Gdk.Flags

Methods

succ :: WindowState -> WindowState

pred :: WindowState -> WindowState

toEnum :: Int -> WindowState #

fromEnum :: WindowState -> Int #

enumFrom :: WindowState -> [WindowState]

enumFromThen :: WindowState -> WindowState -> [WindowState]

enumFromTo :: WindowState -> WindowState -> [WindowState]

enumFromThenTo :: WindowState -> WindowState -> WindowState -> [WindowState]

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