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 |
EventControllerMotion
is an event controller meant for situations
where you need to track the position of the pointer.
This object was added in 3.24.
Synopsis
- newtype EventControllerMotion = EventControllerMotion (ManagedPtr EventControllerMotion)
- class (GObject o, IsDescendantOf EventControllerMotion o) => IsEventControllerMotion o
- toEventControllerMotion :: (MonadIO m, IsEventControllerMotion o) => o -> m EventControllerMotion
- noEventControllerMotion :: Maybe EventControllerMotion
- eventControllerMotionNew :: (HasCallStack, MonadIO m, IsWidget a) => a -> m EventControllerMotion
- type C_EventControllerMotionEnterCallback = Ptr () -> CDouble -> CDouble -> Ptr () -> IO ()
- type EventControllerMotionEnterCallback = Double -> Double -> IO ()
- afterEventControllerMotionEnter :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionEnterCallback -> m SignalHandlerId
- genClosure_EventControllerMotionEnter :: MonadIO m => EventControllerMotionEnterCallback -> m (GClosure C_EventControllerMotionEnterCallback)
- mk_EventControllerMotionEnterCallback :: C_EventControllerMotionEnterCallback -> IO (FunPtr C_EventControllerMotionEnterCallback)
- noEventControllerMotionEnterCallback :: Maybe EventControllerMotionEnterCallback
- onEventControllerMotionEnter :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionEnterCallback -> m SignalHandlerId
- wrap_EventControllerMotionEnterCallback :: EventControllerMotionEnterCallback -> C_EventControllerMotionEnterCallback
- type C_EventControllerMotionLeaveCallback = Ptr () -> Ptr () -> IO ()
- type EventControllerMotionLeaveCallback = IO ()
- afterEventControllerMotionLeave :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionLeaveCallback -> m SignalHandlerId
- genClosure_EventControllerMotionLeave :: MonadIO m => EventControllerMotionLeaveCallback -> m (GClosure C_EventControllerMotionLeaveCallback)
- mk_EventControllerMotionLeaveCallback :: C_EventControllerMotionLeaveCallback -> IO (FunPtr C_EventControllerMotionLeaveCallback)
- noEventControllerMotionLeaveCallback :: Maybe EventControllerMotionLeaveCallback
- onEventControllerMotionLeave :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionLeaveCallback -> m SignalHandlerId
- wrap_EventControllerMotionLeaveCallback :: EventControllerMotionLeaveCallback -> C_EventControllerMotionLeaveCallback
- type C_EventControllerMotionMotionCallback = Ptr () -> CDouble -> CDouble -> Ptr () -> IO ()
- type EventControllerMotionMotionCallback = Double -> Double -> IO ()
- afterEventControllerMotionMotion :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionMotionCallback -> m SignalHandlerId
- genClosure_EventControllerMotionMotion :: MonadIO m => EventControllerMotionMotionCallback -> m (GClosure C_EventControllerMotionMotionCallback)
- mk_EventControllerMotionMotionCallback :: C_EventControllerMotionMotionCallback -> IO (FunPtr C_EventControllerMotionMotionCallback)
- noEventControllerMotionMotionCallback :: Maybe EventControllerMotionMotionCallback
- onEventControllerMotionMotion :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionMotionCallback -> m SignalHandlerId
- wrap_EventControllerMotionMotionCallback :: EventControllerMotionMotionCallback -> C_EventControllerMotionMotionCallback
Exported types
newtype EventControllerMotion Source #
Memory-managed wrapper type.
Instances
class (GObject o, IsDescendantOf EventControllerMotion o) => IsEventControllerMotion o Source #
Type class for types which can be safely cast to EventControllerMotion
, for instance with toEventControllerMotion
.
Instances
(GObject o, IsDescendantOf EventControllerMotion o) => IsEventControllerMotion o Source # | |
Defined in GI.Gtk.Objects.EventControllerMotion |
toEventControllerMotion :: (MonadIO m, IsEventControllerMotion o) => o -> m EventControllerMotion Source #
Cast to EventControllerMotion
, for types for which this is known to be safe. For general casts, use castTo
.
noEventControllerMotion :: Maybe EventControllerMotion Source #
A convenience alias for Nothing
:: Maybe
EventControllerMotion
.
Methods
new
eventControllerMotionNew Source #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m EventControllerMotion | Returns: a new |
Creates a new event controller that will handle motion events
for the given widget
.
Since: 3.24
Signals
enter
type C_EventControllerMotionEnterCallback = Ptr () -> CDouble -> CDouble -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EventControllerMotionEnterCallback Source #
Signals that the pointer has entered the widget.
afterEventControllerMotionEnter :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionEnterCallback -> m SignalHandlerId Source #
Connect a signal handler for the “enter
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
eventControllerMotion #enter callback
genClosure_EventControllerMotionEnter :: MonadIO m => EventControllerMotionEnterCallback -> m (GClosure C_EventControllerMotionEnterCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerMotionEnterCallback :: C_EventControllerMotionEnterCallback -> IO (FunPtr C_EventControllerMotionEnterCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerMotionEnterCallback
.
noEventControllerMotionEnterCallback :: Maybe EventControllerMotionEnterCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerMotionEnterCallback
onEventControllerMotionEnter :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionEnterCallback -> m SignalHandlerId Source #
Connect a signal handler for the “enter
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
eventControllerMotion #enter callback
wrap_EventControllerMotionEnterCallback :: EventControllerMotionEnterCallback -> C_EventControllerMotionEnterCallback Source #
leave
type C_EventControllerMotionLeaveCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EventControllerMotionLeaveCallback = IO () Source #
Signals that pointer has left the widget.
afterEventControllerMotionLeave :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionLeaveCallback -> m SignalHandlerId Source #
Connect a signal handler for the “leave
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
eventControllerMotion #leave callback
genClosure_EventControllerMotionLeave :: MonadIO m => EventControllerMotionLeaveCallback -> m (GClosure C_EventControllerMotionLeaveCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerMotionLeaveCallback :: C_EventControllerMotionLeaveCallback -> IO (FunPtr C_EventControllerMotionLeaveCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerMotionLeaveCallback
.
noEventControllerMotionLeaveCallback :: Maybe EventControllerMotionLeaveCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerMotionLeaveCallback
onEventControllerMotionLeave :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionLeaveCallback -> m SignalHandlerId Source #
Connect a signal handler for the “leave
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
eventControllerMotion #leave callback
wrap_EventControllerMotionLeaveCallback :: EventControllerMotionLeaveCallback -> C_EventControllerMotionLeaveCallback Source #
motion
type C_EventControllerMotionMotionCallback = Ptr () -> CDouble -> CDouble -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type EventControllerMotionMotionCallback Source #
Emitted when the pointer moves inside the widget.
afterEventControllerMotionMotion :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionMotionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “motion
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
eventControllerMotion #motion callback
genClosure_EventControllerMotionMotion :: MonadIO m => EventControllerMotionMotionCallback -> m (GClosure C_EventControllerMotionMotionCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerMotionMotionCallback :: C_EventControllerMotionMotionCallback -> IO (FunPtr C_EventControllerMotionMotionCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerMotionMotionCallback
.
noEventControllerMotionMotionCallback :: Maybe EventControllerMotionMotionCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerMotionMotionCallback
onEventControllerMotionMotion :: (IsEventControllerMotion a, MonadIO m) => a -> EventControllerMotionMotionCallback -> m SignalHandlerId Source #
Connect a signal handler for the “motion
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
eventControllerMotion #motion callback