Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
EventControllerLegacy
is an event controller that gives you
direct access to the event stream. It should only be used as a
last resort if none of the other event controllers or gestures
do the job.
Synopsis
- newtype EventControllerLegacy = EventControllerLegacy (ManagedPtr EventControllerLegacy)
- class (GObject o, IsDescendantOf EventControllerLegacy o) => IsEventControllerLegacy o
- toEventControllerLegacy :: (MonadIO m, IsEventControllerLegacy o) => o -> m EventControllerLegacy
- eventControllerLegacyNew :: (HasCallStack, MonadIO m) => m EventControllerLegacy
- type C_EventControllerLegacyEventCallback = Ptr () -> Ptr Event -> Ptr () -> IO CInt
- type EventControllerLegacyEventCallback = Event -> IO Bool
- afterEventControllerLegacyEvent :: (IsEventControllerLegacy a, MonadIO m) => a -> EventControllerLegacyEventCallback -> m SignalHandlerId
- genClosure_EventControllerLegacyEvent :: MonadIO m => EventControllerLegacyEventCallback -> m (GClosure C_EventControllerLegacyEventCallback)
- mk_EventControllerLegacyEventCallback :: C_EventControllerLegacyEventCallback -> IO (FunPtr C_EventControllerLegacyEventCallback)
- noEventControllerLegacyEventCallback :: Maybe EventControllerLegacyEventCallback
- onEventControllerLegacyEvent :: (IsEventControllerLegacy a, MonadIO m) => a -> EventControllerLegacyEventCallback -> m SignalHandlerId
- wrap_EventControllerLegacyEventCallback :: EventControllerLegacyEventCallback -> C_EventControllerLegacyEventCallback
Exported types
newtype EventControllerLegacy Source #
Memory-managed wrapper type.
EventControllerLegacy (ManagedPtr EventControllerLegacy) |
Instances
class (GObject o, IsDescendantOf EventControllerLegacy o) => IsEventControllerLegacy o Source #
Type class for types which can be safely cast to EventControllerLegacy
, for instance with toEventControllerLegacy
.
Instances
(GObject o, IsDescendantOf EventControllerLegacy o) => IsEventControllerLegacy o Source # | |
Defined in GI.Gtk.Objects.EventControllerLegacy |
toEventControllerLegacy :: (MonadIO m, IsEventControllerLegacy o) => o -> m EventControllerLegacy Source #
Cast to EventControllerLegacy
, 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
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, reset, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCurrentEvent, getCurrentEventDevice, getCurrentEventState, getCurrentEventTime, getData, getName, getPropagationLimit, getPropagationPhase, getProperty, getQdata, getWidget.
Setters
setData, setDataFull, setName, setPropagationLimit, setPropagationPhase, setProperty.
new
eventControllerLegacyNew Source #
:: (HasCallStack, MonadIO m) | |
=> m EventControllerLegacy | Returns: the newly created event controller. |
Creates a new legacy event controller.
Signals
event
type C_EventControllerLegacyEventCallback = Ptr () -> Ptr Event -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type EventControllerLegacyEventCallback Source #
= Event |
|
-> IO Bool | Returns: |
Emitted for each GDK event delivered to controller
.
afterEventControllerLegacyEvent :: (IsEventControllerLegacy a, MonadIO m) => a -> EventControllerLegacyEventCallback -> m SignalHandlerId Source #
Connect a signal handler for the event signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
eventControllerLegacy #event callback
genClosure_EventControllerLegacyEvent :: MonadIO m => EventControllerLegacyEventCallback -> m (GClosure C_EventControllerLegacyEventCallback) Source #
Wrap the callback into a GClosure
.
mk_EventControllerLegacyEventCallback :: C_EventControllerLegacyEventCallback -> IO (FunPtr C_EventControllerLegacyEventCallback) Source #
Generate a function pointer callable from C code, from a C_EventControllerLegacyEventCallback
.
noEventControllerLegacyEventCallback :: Maybe EventControllerLegacyEventCallback Source #
A convenience synonym for
.Nothing
:: Maybe
EventControllerLegacyEventCallback
onEventControllerLegacyEvent :: (IsEventControllerLegacy a, MonadIO m) => a -> EventControllerLegacyEventCallback -> m SignalHandlerId Source #
Connect a signal handler for the event signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
eventControllerLegacy #event callback