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 |
Synopsis
- data AnchorHints
- data AxisFlags
- data DragAction
- data EventMask
- = EventMaskExposureMask
- | EventMaskPointerMotionMask
- | EventMaskButtonMotionMask
- | EventMaskButton1MotionMask
- | EventMaskButton2MotionMask
- | EventMaskButton3MotionMask
- | EventMaskButtonPressMask
- | EventMaskButtonReleaseMask
- | EventMaskKeyPressMask
- | EventMaskKeyReleaseMask
- | EventMaskEnterNotifyMask
- | EventMaskLeaveNotifyMask
- | EventMaskFocusChangeMask
- | EventMaskStructureMask
- | EventMaskPropertyChangeMask
- | EventMaskProximityInMask
- | EventMaskProximityOutMask
- | EventMaskSubstructureMask
- | EventMaskScrollMask
- | EventMaskTouchMask
- | EventMaskSmoothScrollMask
- | EventMaskTouchpadGestureMask
- | EventMaskTabletPadMask
- | EventMaskAllEventsMask
- | AnotherEventMask Int
- data FrameClockPhase
- data ModifierType
- = ModifierTypeShiftMask
- | ModifierTypeLockMask
- | ModifierTypeControlMask
- | ModifierTypeAltMask
- | ModifierTypeButton1Mask
- | ModifierTypeButton2Mask
- | ModifierTypeButton3Mask
- | ModifierTypeButton4Mask
- | ModifierTypeButton5Mask
- | ModifierTypeSuperMask
- | ModifierTypeHyperMask
- | ModifierTypeMetaMask
- | AnotherModifierType Int
- data PaintableFlags
- data SeatCapabilities
- data SurfaceState
- = SurfaceStateWithdrawn
- | SurfaceStateMinimized
- | SurfaceStateMaximized
- | SurfaceStateSticky
- | SurfaceStateFullscreen
- | SurfaceStateAbove
- | SurfaceStateBelow
- | SurfaceStateFocused
- | SurfaceStateTiled
- | SurfaceStateTopTiled
- | SurfaceStateTopResizable
- | SurfaceStateRightTiled
- | SurfaceStateRightResizable
- | SurfaceStateBottomTiled
- | SurfaceStateBottomResizable
- | SurfaceStateLeftTiled
- | SurfaceStateLeftResizable
- | AnotherSurfaceState Int
Flags
AnchorHints
data AnchorHints Source #
Positioning hints for aligning a surface relative to a rectangle.
These hints determine how the surface should be positioned in the case that the surface would fall off-screen if placed in its ideal position.
For example, AnchorHintsFlipX
will replace GravityNorthWest
with
GravityNorthEast
and vice versa if the surface extends beyond the left
or right edges of the monitor.
If AnchorHintsSlideX
is set, the surface can be shifted horizontally to fit
on-screen. If AnchorHintsResizeX
is set, the surface 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.
AnchorHintsFlipX | allow flipping anchors horizontally |
AnchorHintsFlipY | allow flipping anchors vertically |
AnchorHintsSlideX | allow sliding surface horizontally |
AnchorHintsSlideY | allow sliding surface vertically |
AnchorHintsResizeX | allow resizing surface horizontally |
AnchorHintsResizeY | allow resizing surface vertically |
AnchorHintsFlip | allow flipping anchors on both axes |
AnchorHintsSlide | allow sliding surface on both axes |
AnchorHintsResize | allow resizing surface on both axes |
AnotherAnchorHints Int | Catch-all for unknown values |
Instances
AxisFlags
Flags describing the current capabilities of a device/tool.
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
Enum AxisFlags Source # | |
Defined in GI.Gdk.Flags | |
Eq AxisFlags Source # | |
Ord AxisFlags Source # | |
Defined in GI.Gdk.Flags | |
Show AxisFlags Source # | |
TypedObject AxisFlags Source # | |
Defined in GI.Gdk.Flags | |
BoxedFlags AxisFlags Source # | |
Defined in GI.Gdk.Flags | |
IsGFlag AxisFlags Source # | |
Defined in GI.Gdk.Flags | |
HasParentTypes AxisFlags Source # | |
Defined in GI.Gdk.Flags | |
type ParentTypes AxisFlags Source # | |
Defined in GI.Gdk.Flags |
DragAction
data DragAction Source #
Used in Drop
and Drag
to indicate the actions that the
destination can and should do with the dropped data.
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, and is not supported on all platforms. |
DragActionAsk | Ask the user what to do with the data. |
AnotherDragAction Int | Catch-all for unknown values |
Instances
EventMask
A set of bit-flags to indicate which events a surface 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].
If EventMaskTouchMask
is enabled, the surface will receive touch events
from touch-enabled devices. Those will come as sequences of GdkEventTouch
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.
EventMaskExposureMask | receive expose events |
EventMaskPointerMotionMask | receive all pointer motion events |
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 surface enter events |
EventMaskLeaveNotifyMask | receive surface leave events |
EventMaskFocusChangeMask | receive focus change events |
EventMaskStructureMask | receive events about surface configuration change |
EventMaskPropertyChangeMask | receive property change events |
EventMaskProximityInMask | receive proximity in events |
EventMaskProximityOutMask | receive proximity out events |
EventMaskSubstructureMask | receive events about surface configuration changes of child surfaces |
EventMaskScrollMask | receive scroll events |
EventMaskTouchMask | receive touch events |
EventMaskSmoothScrollMask | receive smooth scrolling events |
EventMaskTouchpadGestureMask | receive touchpad gesture events |
EventMaskTabletPadMask | receive tablet pad events |
EventMaskAllEventsMask | the combination of all the above event masks. |
AnotherEventMask Int | Catch-all for unknown values |
Instances
Enum EventMask Source # | |
Defined in GI.Gdk.Flags | |
Eq EventMask Source # | |
Ord EventMask Source # | |
Defined in GI.Gdk.Flags | |
Show EventMask Source # | |
TypedObject EventMask Source # | |
Defined in GI.Gdk.Flags | |
BoxedFlags EventMask Source # | |
Defined in GI.Gdk.Flags | |
IsGFlag EventMask Source # | |
Defined in GI.Gdk.Flags | |
HasParentTypes EventMask Source # | |
Defined in GI.Gdk.Flags | |
type ParentTypes EventMask Source # | |
Defined in GI.Gdk.Flags |
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
.
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
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.
Note that GDK may add internal values to events which include values outside
of this enumeration. Your code should preserve and ignore them. You can use
MODIFIER_MASK
to remove all private values.
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. |
ModifierTypeAltMask | 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). |
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. |
ModifierTypeSuperMask | the Super modifier |
ModifierTypeHyperMask | the Hyper modifier |
ModifierTypeMetaMask | the Meta modifier |
AnotherModifierType Int | Catch-all for unknown values |
Instances
PaintableFlags
data PaintableFlags Source #
Flags about this object. Implementations use these for optimizations such as caching.
PaintableFlagsSize | The size is immutable. The invalidateSize signal will never be emitted. |
PaintableFlagsContents | The content is immutable. The invalidateContents signal will never be emitted. |
AnotherPaintableFlags Int | Catch-all for unknown values |
Instances
SeatCapabilities
data SeatCapabilities Source #
Flags describing the seat capabilities.
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 |
SeatCapabilitiesTabletPad | The seat has drawing tablet pad(s) attached |
SeatCapabilitiesAllPointing | The union of all pointing capabilities |
SeatCapabilitiesAll | The union of all capabilities |
AnotherSeatCapabilities Int | Catch-all for unknown values |
Instances
SurfaceState
data SurfaceState Source #
Specifies the state of a toplevel surface.
On platforms that support information about individual edges, the SurfaceStateTiled
state will be set whenever any of the individual tiled states is set. On platforms
that lack that support, the tiled state will give an indication of tiledness without
any of the per-edge states being set.
SurfaceStateWithdrawn | the surface is not shown |
SurfaceStateMinimized | the surface is minimized |
SurfaceStateMaximized | the surface is maximized |
SurfaceStateSticky | the surface is sticky |
SurfaceStateFullscreen | the surface is maximized without decorations |
SurfaceStateAbove | the surface is kept above other surfaces |
SurfaceStateBelow | the surface is kept below other surfaces |
SurfaceStateFocused | the surface is presented as focused (with active decorations) |
SurfaceStateTiled | the surface is in a tiled state |
SurfaceStateTopTiled | whether the top edge is tiled |
SurfaceStateTopResizable | whether the top edge is resizable |
SurfaceStateRightTiled | whether the right edge is tiled |
SurfaceStateRightResizable | whether the right edge is resizable |
SurfaceStateBottomTiled | whether the bottom edge is tiled |
SurfaceStateBottomResizable | whether the bottom edge is resizable |
SurfaceStateLeftTiled | whether the left edge is tiled |
SurfaceStateLeftResizable | whether the left edge is resizable |
AnotherSurfaceState Int | Catch-all for unknown values |