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.Objects.FocusEvent
Contents
Description
An event related to a keyboard focus change.
Synopsis
- newtype FocusEvent = FocusEvent (ManagedPtr FocusEvent)
- class (BoxedPtr o, TypedObject o, IsDescendantOf FocusEvent o) => IsFocusEvent o
- toFocusEvent :: (MonadIO m, IsFocusEvent o) => o -> m FocusEvent
- focusEventGetIn :: (HasCallStack, MonadIO m, IsFocusEvent a) => a -> m Bool
Exported types
newtype FocusEvent Source #
Memory-managed wrapper type.
Constructors
FocusEvent (ManagedPtr FocusEvent) |
Instances
Eq FocusEvent Source # | |
Defined in GI.Gdk.Objects.FocusEvent | |
BoxedPtr FocusEvent Source # | |
Defined in GI.Gdk.Objects.FocusEvent | |
ManagedPtrNewtype FocusEvent Source # | |
Defined in GI.Gdk.Objects.FocusEvent Methods | |
TypedObject FocusEvent Source # | |
Defined in GI.Gdk.Objects.FocusEvent | |
HasParentTypes FocusEvent Source # | |
Defined in GI.Gdk.Objects.FocusEvent | |
type ParentTypes FocusEvent Source # | |
Defined in GI.Gdk.Objects.FocusEvent |
class (BoxedPtr o, TypedObject o, IsDescendantOf FocusEvent o) => IsFocusEvent o Source #
Type class for types which can be safely cast to FocusEvent
, for instance with toFocusEvent
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf FocusEvent o) => IsFocusEvent o Source # | |
Defined in GI.Gdk.Objects.FocusEvent |
toFocusEvent :: (MonadIO m, IsFocusEvent o) => o -> m FocusEvent Source #
Cast to FocusEvent
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
ref, triggersContextMenu, unref.
Getters
getAxes, getAxis, getDevice, getDeviceTool, getDisplay, getEventSequence, getEventType, getHistory, getIn, getModifierState, getPointerEmulated, getPosition, getSeat, getSurface, getTime.
Setters
None.
getIn
Arguments
:: (HasCallStack, MonadIO m, IsFocusEvent a) | |
=> a |
|
-> m Bool | Returns: |
Extracts whether this event is about focus entering or leaving the surface.