Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gdk.Flags
Description
Synopsis
- data AnchorHints
- data AxisFlags
- data DragAction
- data FrameClockPhase
- data GLAPI
- data ModifierType
- = ModifierTypeNoModifierMask
- | ModifierTypeShiftMask
- | ModifierTypeLockMask
- | ModifierTypeControlMask
- | ModifierTypeAltMask
- | ModifierTypeButton1Mask
- | ModifierTypeButton2Mask
- | ModifierTypeButton3Mask
- | ModifierTypeButton4Mask
- | ModifierTypeButton5Mask
- | ModifierTypeSuperMask
- | ModifierTypeHyperMask
- | ModifierTypeMetaMask
- | AnotherModifierType Int
- data PaintableFlags
- data SeatCapabilities
- data ToplevelState
- = ToplevelStateMinimized
- | ToplevelStateMaximized
- | ToplevelStateSticky
- | ToplevelStateFullscreen
- | ToplevelStateAbove
- | ToplevelStateBelow
- | ToplevelStateFocused
- | ToplevelStateTiled
- | ToplevelStateTopTiled
- | ToplevelStateTopResizable
- | ToplevelStateRightTiled
- | ToplevelStateRightResizable
- | ToplevelStateBottomTiled
- | ToplevelStateBottomResizable
- | ToplevelStateLeftTiled
- | ToplevelStateLeftResizable
- | ToplevelStateSuspended
- | AnotherToplevelState 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.
Constructors
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.
Constructors
AxisFlagsX | X axis is present |
AxisFlagsY | Y axis is present |
AxisFlagsDeltaX | Scroll X delta axis is present |
AxisFlagsDeltaY | Scroll Y delta 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 Methods succ :: AxisFlags -> AxisFlags # pred :: AxisFlags -> AxisFlags # fromEnum :: AxisFlags -> Int # enumFrom :: AxisFlags -> [AxisFlags] # enumFromThen :: AxisFlags -> AxisFlags -> [AxisFlags] # enumFromTo :: AxisFlags -> AxisFlags -> [AxisFlags] # enumFromThenTo :: AxisFlags -> AxisFlags -> AxisFlags -> [AxisFlags] # | |
Show AxisFlags Source # | |
Eq AxisFlags Source # | |
Ord AxisFlags Source # | |
BoxedFlags AxisFlags Source # | |
Defined in GI.Gdk.Flags | |
IsGFlag AxisFlags Source # | |
Defined in GI.Gdk.Flags | |
TypedObject 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 GdkDrop
and GdkDrag
to indicate the actions that the
destination can and should do with the dropped data.
Constructors
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
FrameClockPhase
data FrameClockPhase Source #
Used to represent the different paint clock phases that can be requested.
The elements of the enumeration correspond to the signals of GdkFrameClock
.
Constructors
FrameClockPhaseNone | no phase |
FrameClockPhaseFlushEvents | corresponds to GdkFrameClockflushEvents. Should not be handled by applications. |
FrameClockPhaseBeforePaint | corresponds to GdkFrameClockbeforePaint. Should not be handled by applications. |
FrameClockPhaseUpdate | corresponds to GdkFrameClockupdate. |
FrameClockPhaseLayout | corresponds to GdkFrameClocklayout. Should not be handled by applications. |
FrameClockPhasePaint | corresponds to GdkFrameClockpaint. |
FrameClockPhaseResumeEvents | corresponds to GdkFrameClockresumeEvents. Should not be handled by applications. |
FrameClockPhaseAfterPaint | corresponds to GdkFrameClockafterPaint. Should not be handled by applications. |
AnotherFrameClockPhase Int | Catch-all for unknown values |
Instances
GLAPI
The list of the different APIs that GdkGLContext can potentially support.
Since: 4.6
Constructors
GLAPIGl | The OpenGL API |
GLAPIGles | The OpenGL ES API |
AnotherGLAPI Int | Catch-all for unknown values |
Instances
Enum GLAPI Source # | |
Show GLAPI Source # | |
Eq GLAPI Source # | |
Ord GLAPI Source # | |
BoxedFlags GLAPI Source # | |
Defined in GI.Gdk.Flags | |
IsGFlag GLAPI Source # | |
Defined in GI.Gdk.Flags | |
TypedObject GLAPI Source # | |
Defined in GI.Gdk.Flags | |
HasParentTypes GLAPI Source # | |
Defined in GI.Gdk.Flags | |
type ParentTypes GLAPI Source # | |
Defined in GI.Gdk.Flags |
ModifierType
data ModifierType Source #
Flags to indicate the state of modifier keys and mouse buttons in events.
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.
Constructors
ModifierTypeNoModifierMask | No modifier. Since: 4.14 |
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 a paintable object.
Implementations use these for optimizations such as caching.
Constructors
PaintableFlagsSize | The size is immutable. The Paintable::invalidateSize signal will never be emitted. |
PaintableFlagsContents | The content is immutable. The Paintable::invalidateContents signal will never be emitted. |
AnotherPaintableFlags Int | Catch-all for unknown values |
Instances
SeatCapabilities
data SeatCapabilities Source #
Flags describing the seat capabilities.
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 |
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
ToplevelState
data ToplevelState Source #
Specifies the state of a toplevel surface.
On platforms that support information about individual edges, the
ToplevelStateTiled
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.
Constructors
ToplevelStateMinimized | the surface is minimized |
ToplevelStateMaximized | the surface is maximized |
ToplevelStateSticky | the surface is sticky |
ToplevelStateFullscreen | the surface is maximized without decorations |
ToplevelStateAbove | the surface is kept above other surfaces |
ToplevelStateBelow | the surface is kept below other surfaces |
ToplevelStateFocused | the surface is presented as focused (with active decorations) |
ToplevelStateTiled | the surface is in a tiled state |
ToplevelStateTopTiled | whether the top edge is tiled |
ToplevelStateTopResizable | whether the top edge is resizable |
ToplevelStateRightTiled | whether the right edge is tiled |
ToplevelStateRightResizable | whether the right edge is resizable |
ToplevelStateBottomTiled | whether the bottom edge is tiled |
ToplevelStateBottomResizable | whether the bottom edge is resizable |
ToplevelStateLeftTiled | whether the left edge is tiled |
ToplevelStateLeftResizable | whether the left edge is resizable |
ToplevelStateSuspended | the surface is not visible to the user |
AnotherToplevelState Int | Catch-all for unknown values |