Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
EventControllerKey
is an event controller meant for situations
where you need access to key events.
This object was added in 3.24.
Synopsis
- newtype EventControllerKey = EventControllerKey (ManagedPtr EventControllerKey)
- class (GObject o, IsDescendantOf EventControllerKey o) => IsEventControllerKey o
- toEventControllerKey :: (MonadIO m, IsEventControllerKey o) => o -> m EventControllerKey
- noEventControllerKey :: Maybe EventControllerKey
- eventControllerKeyForward :: (HasCallStack, MonadIO m, IsEventControllerKey a, IsWidget b) => a -> b -> m Bool
- eventControllerKeyGetGroup :: (HasCallStack, MonadIO m, IsEventControllerKey a) => a -> m Word32
- eventControllerKeyGetImContext :: (HasCallStack, MonadIO m, IsEventControllerKey a) => a -> m IMContext
- eventControllerKeyNew :: (HasCallStack, MonadIO m, IsWidget a) => a -> m EventControllerKey
- eventControllerKeySetImContext :: (HasCallStack, MonadIO m, IsEventControllerKey a, IsIMContext b) => a -> b -> m ()
- type C_EventControllerKeyFocusInCallback = Ptr () -> Ptr () -> IO ()
- type EventControllerKeyFocusInCallback = IO ()
- afterEventControllerKeyFocusIn :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusInCallback -> m SignalHandlerId
- genClosure_EventControllerKeyFocusIn :: MonadIO m => EventControllerKeyFocusInCallback -> m (GClosure C_EventControllerKeyFocusInCallback)
- mk_EventControllerKeyFocusInCallback :: C_EventControllerKeyFocusInCallback -> IO (FunPtr C_EventControllerKeyFocusInCallback)
- noEventControllerKeyFocusInCallback :: Maybe EventControllerKeyFocusInCallback
- onEventControllerKeyFocusIn :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusInCallback -> m SignalHandlerId
- wrap_EventControllerKeyFocusInCallback :: EventControllerKeyFocusInCallback -> C_EventControllerKeyFocusInCallback
- type C_EventControllerKeyFocusOutCallback = Ptr () -> Ptr () -> IO ()
- type EventControllerKeyFocusOutCallback = IO ()
- afterEventControllerKeyFocusOut :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusOutCallback -> m SignalHandlerId
- genClosure_EventControllerKeyFocusOut :: MonadIO m => EventControllerKeyFocusOutCallback -> m (GClosure C_EventControllerKeyFocusOutCallback)
- mk_EventControllerKeyFocusOutCallback :: C_EventControllerKeyFocusOutCallback -> IO (FunPtr C_EventControllerKeyFocusOutCallback)
- noEventControllerKeyFocusOutCallback :: Maybe EventControllerKeyFocusOutCallback
- onEventControllerKeyFocusOut :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusOutCallback -> m SignalHandlerId
- wrap_EventControllerKeyFocusOutCallback :: EventControllerKeyFocusOutCallback -> C_EventControllerKeyFocusOutCallback
- type C_EventControllerKeyImUpdateCallback = Ptr () -> Ptr () -> IO ()
- type EventControllerKeyImUpdateCallback = IO ()
- afterEventControllerKeyImUpdate :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyImUpdateCallback -> m SignalHandlerId
- genClosure_EventControllerKeyImUpdate :: MonadIO m => EventControllerKeyImUpdateCallback -> m (GClosure C_EventControllerKeyImUpdateCallback)
- mk_EventControllerKeyImUpdateCallback :: C_EventControllerKeyImUpdateCallback -> IO (FunPtr C_EventControllerKeyImUpdateCallback)
- noEventControllerKeyImUpdateCallback :: Maybe EventControllerKeyImUpdateCallback
- onEventControllerKeyImUpdate :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyImUpdateCallback -> m SignalHandlerId
- wrap_EventControllerKeyImUpdateCallback :: EventControllerKeyImUpdateCallback -> C_EventControllerKeyImUpdateCallback
- type C_EventControllerKeyKeyPressedCallback = Ptr () -> Word32 -> Word32 -> CUInt -> Ptr () -> IO CInt
- type EventControllerKeyKeyPressedCallback = Word32 -> Word32 -> [ModifierType] -> IO Bool
- afterEventControllerKeyKeyPressed :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyPressedCallback -> m SignalHandlerId
- genClosure_EventControllerKeyKeyPressed :: MonadIO m => EventControllerKeyKeyPressedCallback -> m (GClosure C_EventControllerKeyKeyPressedCallback)
- mk_EventControllerKeyKeyPressedCallback :: C_EventControllerKeyKeyPressedCallback -> IO (FunPtr C_EventControllerKeyKeyPressedCallback)
- noEventControllerKeyKeyPressedCallback :: Maybe EventControllerKeyKeyPressedCallback
- onEventControllerKeyKeyPressed :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyPressedCallback -> m SignalHandlerId
- wrap_EventControllerKeyKeyPressedCallback :: EventControllerKeyKeyPressedCallback -> C_EventControllerKeyKeyPressedCallback
- type C_EventControllerKeyKeyReleasedCallback = Ptr () -> Word32 -> Word32 -> CUInt -> Ptr () -> IO ()
- type EventControllerKeyKeyReleasedCallback = Word32 -> Word32 -> [ModifierType] -> IO ()
- afterEventControllerKeyKeyReleased :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyReleasedCallback -> m SignalHandlerId
- genClosure_EventControllerKeyKeyReleased :: MonadIO m => EventControllerKeyKeyReleasedCallback -> m (GClosure C_EventControllerKeyKeyReleasedCallback)
- mk_EventControllerKeyKeyReleasedCallback :: C_EventControllerKeyKeyReleasedCallback -> IO (FunPtr C_EventControllerKeyKeyReleasedCallback)
- noEventControllerKeyKeyReleasedCallback :: Maybe EventControllerKeyKeyReleasedCallback
- onEventControllerKeyKeyReleased :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyReleasedCallback -> m SignalHandlerId
- wrap_EventControllerKeyKeyReleasedCallback :: EventControllerKeyKeyReleasedCallback -> C_EventControllerKeyKeyReleasedCallback
- type C_EventControllerKeyModifiersCallback = Ptr () -> CUInt -> Ptr () -> IO CInt
- type EventControllerKeyModifiersCallback = [ModifierType] -> IO Bool
- afterEventControllerKeyModifiers :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyModifiersCallback -> m SignalHandlerId
- genClosure_EventControllerKeyModifiers :: MonadIO m => EventControllerKeyModifiersCallback -> m (GClosure C_EventControllerKeyModifiersCallback)
- mk_EventControllerKeyModifiersCallback :: C_EventControllerKeyModifiersCallback -> IO (FunPtr C_EventControllerKeyModifiersCallback)
- noEventControllerKeyModifiersCallback :: Maybe EventControllerKeyModifiersCallback
- onEventControllerKeyModifiers :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyModifiersCallback -> m SignalHandlerId
- wrap_EventControllerKeyModifiersCallback :: EventControllerKeyModifiersCallback -> C_EventControllerKeyModifiersCallback
Exported types
newtype EventControllerKey Source #
Memory-managed wrapper type.
Instances
GObject EventControllerKey Source # | |
Defined in GI.Gtk.Objects.EventControllerKey gobjectType :: IO GType # | |
HasParentTypes EventControllerKey Source # | |
Defined in GI.Gtk.Objects.EventControllerKey | |
type ParentTypes EventControllerKey Source # | |
Defined in GI.Gtk.Objects.EventControllerKey |
class (GObject o, IsDescendantOf EventControllerKey o) => IsEventControllerKey o Source #
Type class for types which can be safely cast to EventControllerKey
, for instance with toEventControllerKey
.
Instances
(GObject o, IsDescendantOf EventControllerKey o) => IsEventControllerKey o Source # | |
Defined in GI.Gtk.Objects.EventControllerKey |
toEventControllerKey :: (MonadIO m, IsEventControllerKey o) => o -> m EventControllerKey Source #
Cast to EventControllerKey
, for types for which this is known to be safe. For general casts, use castTo
.
noEventControllerKey :: Maybe EventControllerKey Source #
A convenience alias for Nothing
:: Maybe
EventControllerKey
.
Methods
forward
eventControllerKeyForward :: (HasCallStack, MonadIO m, IsEventControllerKey a, IsWidget b) => a -> b -> m Bool Source #
No description available in the introspection data.
getGroup
eventControllerKeyGetGroup :: (HasCallStack, MonadIO m, IsEventControllerKey a) => a -> m Word32 Source #
No description available in the introspection data.
getImContext
eventControllerKeyGetImContext Source #
:: (HasCallStack, MonadIO m, IsEventControllerKey a) | |
=> a |
|
-> m IMContext | Returns: the IM context |
Gets the IM context of a key controller.
Since: 3.24
new
eventControllerKeyNew :: (HasCallStack, MonadIO m, IsWidget a) => a -> m EventControllerKey Source #
No description available in the introspection data.
setImContext
eventControllerKeySetImContext :: (HasCallStack, MonadIO m, IsEventControllerKey a, IsIMContext b) => a -> b -> m () Source #
No description available in the introspection data.
Signals
focusIn
type C_EventControllerKeyFocusInCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EventControllerKeyFocusInCallback = IO () Source #
No description available in the introspection data.
afterEventControllerKeyFocusIn :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusInCallback -> m SignalHandlerId Source #
Connect a signal handler for the “focus-in
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
eventControllerKey #focusIn callback
genClosure_EventControllerKeyFocusIn :: MonadIO m => EventControllerKeyFocusInCallback -> m (GClosure C_EventControllerKeyFocusInCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerKeyFocusInCallback :: C_EventControllerKeyFocusInCallback -> IO (FunPtr C_EventControllerKeyFocusInCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerKeyFocusInCallback
.
noEventControllerKeyFocusInCallback :: Maybe EventControllerKeyFocusInCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerKeyFocusInCallback
onEventControllerKeyFocusIn :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusInCallback -> m SignalHandlerId Source #
Connect a signal handler for the “focus-in
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
eventControllerKey #focusIn callback
wrap_EventControllerKeyFocusInCallback :: EventControllerKeyFocusInCallback -> C_EventControllerKeyFocusInCallback Source #
focusOut
type C_EventControllerKeyFocusOutCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EventControllerKeyFocusOutCallback = IO () Source #
No description available in the introspection data.
afterEventControllerKeyFocusOut :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusOutCallback -> m SignalHandlerId Source #
Connect a signal handler for the “focus-out
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
eventControllerKey #focusOut callback
genClosure_EventControllerKeyFocusOut :: MonadIO m => EventControllerKeyFocusOutCallback -> m (GClosure C_EventControllerKeyFocusOutCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerKeyFocusOutCallback :: C_EventControllerKeyFocusOutCallback -> IO (FunPtr C_EventControllerKeyFocusOutCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerKeyFocusOutCallback
.
noEventControllerKeyFocusOutCallback :: Maybe EventControllerKeyFocusOutCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerKeyFocusOutCallback
onEventControllerKeyFocusOut :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyFocusOutCallback -> m SignalHandlerId Source #
Connect a signal handler for the “focus-out
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
eventControllerKey #focusOut callback
wrap_EventControllerKeyFocusOutCallback :: EventControllerKeyFocusOutCallback -> C_EventControllerKeyFocusOutCallback Source #
imUpdate
type C_EventControllerKeyImUpdateCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EventControllerKeyImUpdateCallback = IO () Source #
No description available in the introspection data.
afterEventControllerKeyImUpdate :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyImUpdateCallback -> m SignalHandlerId Source #
Connect a signal handler for the “im-update
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
eventControllerKey #imUpdate callback
genClosure_EventControllerKeyImUpdate :: MonadIO m => EventControllerKeyImUpdateCallback -> m (GClosure C_EventControllerKeyImUpdateCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerKeyImUpdateCallback :: C_EventControllerKeyImUpdateCallback -> IO (FunPtr C_EventControllerKeyImUpdateCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerKeyImUpdateCallback
.
noEventControllerKeyImUpdateCallback :: Maybe EventControllerKeyImUpdateCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerKeyImUpdateCallback
onEventControllerKeyImUpdate :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyImUpdateCallback -> m SignalHandlerId Source #
Connect a signal handler for the “im-update
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
eventControllerKey #imUpdate callback
wrap_EventControllerKeyImUpdateCallback :: EventControllerKeyImUpdateCallback -> C_EventControllerKeyImUpdateCallback Source #
keyPressed
type C_EventControllerKeyKeyPressedCallback = Ptr () -> Word32 -> Word32 -> CUInt -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type EventControllerKeyKeyPressedCallback Source #
= Word32 |
|
-> Word32 |
|
-> [ModifierType] |
|
-> IO Bool | Returns: |
This signal is emitted whenever a key is pressed.
Since: 3.24
afterEventControllerKeyKeyPressed :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyPressedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “key-pressed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
eventControllerKey #keyPressed callback
genClosure_EventControllerKeyKeyPressed :: MonadIO m => EventControllerKeyKeyPressedCallback -> m (GClosure C_EventControllerKeyKeyPressedCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerKeyKeyPressedCallback :: C_EventControllerKeyKeyPressedCallback -> IO (FunPtr C_EventControllerKeyKeyPressedCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerKeyKeyPressedCallback
.
noEventControllerKeyKeyPressedCallback :: Maybe EventControllerKeyKeyPressedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerKeyKeyPressedCallback
onEventControllerKeyKeyPressed :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyPressedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “key-pressed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
eventControllerKey #keyPressed callback
wrap_EventControllerKeyKeyPressedCallback :: EventControllerKeyKeyPressedCallback -> C_EventControllerKeyKeyPressedCallback Source #
keyReleased
type C_EventControllerKeyKeyReleasedCallback = Ptr () -> Word32 -> Word32 -> CUInt -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EventControllerKeyKeyReleasedCallback Source #
= Word32 |
|
-> Word32 |
|
-> [ModifierType] |
|
-> IO () |
This signal is emitted whenever a key is released.
Since: 3.24
afterEventControllerKeyKeyReleased :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyReleasedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “key-released
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
eventControllerKey #keyReleased callback
genClosure_EventControllerKeyKeyReleased :: MonadIO m => EventControllerKeyKeyReleasedCallback -> m (GClosure C_EventControllerKeyKeyReleasedCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerKeyKeyReleasedCallback :: C_EventControllerKeyKeyReleasedCallback -> IO (FunPtr C_EventControllerKeyKeyReleasedCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerKeyKeyReleasedCallback
.
noEventControllerKeyKeyReleasedCallback :: Maybe EventControllerKeyKeyReleasedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerKeyKeyReleasedCallback
onEventControllerKeyKeyReleased :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyKeyReleasedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “key-released
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
eventControllerKey #keyReleased callback
wrap_EventControllerKeyKeyReleasedCallback :: EventControllerKeyKeyReleasedCallback -> C_EventControllerKeyKeyReleasedCallback Source #
modifiers
type C_EventControllerKeyModifiersCallback = Ptr () -> CUInt -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type EventControllerKeyModifiersCallback = [ModifierType] -> IO Bool Source #
No description available in the introspection data.
afterEventControllerKeyModifiers :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyModifiersCallback -> m SignalHandlerId Source #
Connect a signal handler for the “modifiers
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
eventControllerKey #modifiers callback
genClosure_EventControllerKeyModifiers :: MonadIO m => EventControllerKeyModifiersCallback -> m (GClosure C_EventControllerKeyModifiersCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerKeyModifiersCallback :: C_EventControllerKeyModifiersCallback -> IO (FunPtr C_EventControllerKeyModifiersCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerKeyModifiersCallback
.
noEventControllerKeyModifiersCallback :: Maybe EventControllerKeyModifiersCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerKeyModifiersCallback
onEventControllerKeyModifiers :: (IsEventControllerKey a, MonadIO m) => a -> EventControllerKeyModifiersCallback -> m SignalHandlerId Source #
Connect a signal handler for the “modifiers
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
eventControllerKey #modifiers callback