Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gtk.Objects.EventController
Contents
Description
EventController
is a base, low-level implementation for event
controllers. Those react to a series of GdkEvents
, and possibly trigger
actions as a consequence of those.
- newtype EventController = EventController (ManagedPtr EventController)
- class GObject o => IsEventController o
- toEventController :: (MonadIO m, IsEventController o) => o -> m EventController
- noEventController :: Maybe EventController
- eventControllerGetPropagationPhase :: (HasCallStack, MonadIO m, IsEventController a) => a -> m PropagationPhase
- eventControllerGetWidget :: (HasCallStack, MonadIO m, IsEventController a) => a -> m Widget
- eventControllerHandleEvent :: (HasCallStack, MonadIO m, IsEventController a) => a -> Event -> m Bool
- eventControllerReset :: (HasCallStack, MonadIO m, IsEventController a) => a -> m ()
- eventControllerSetPropagationPhase :: (HasCallStack, MonadIO m, IsEventController a) => a -> PropagationPhase -> m ()
- constructEventControllerPropagationPhase :: IsEventController o => PropagationPhase -> IO (GValueConstruct o)
- getEventControllerPropagationPhase :: (MonadIO m, IsEventController o) => o -> m PropagationPhase
- setEventControllerPropagationPhase :: (MonadIO m, IsEventController o) => o -> PropagationPhase -> m ()
- constructEventControllerWidget :: (IsEventController o, IsWidget a) => a -> IO (GValueConstruct o)
- getEventControllerWidget :: (MonadIO m, IsEventController o) => o -> m Widget
Exported types
newtype EventController Source #
Constructors
EventController (ManagedPtr EventController) |
class GObject o => IsEventController o Source #
Instances
toEventController :: (MonadIO m, IsEventController o) => o -> m EventController Source #
Methods
getPropagationPhase
eventControllerGetPropagationPhase Source #
Arguments
:: (HasCallStack, MonadIO m, IsEventController a) | |
=> a |
|
-> m PropagationPhase | Returns: the propagation phase |
Gets the propagation phase at which controller
handles events.
Since: 3.14
getWidget
eventControllerGetWidget Source #
Arguments
:: (HasCallStack, MonadIO m, IsEventController a) | |
=> a |
|
-> m Widget | Returns: a |
Returns the Widget
this controller relates to.
Since: 3.14
handleEvent
eventControllerHandleEvent Source #
Arguments
:: (HasCallStack, MonadIO m, IsEventController a) | |
=> a |
|
-> Event |
|
-> m Bool | Returns: |
Feeds an events into controller
, so it can be interpreted
and the controller actions triggered.
Since: 3.14
reset
Arguments
:: (HasCallStack, MonadIO m, IsEventController a) | |
=> a |
|
-> m () |
Resets the controller
to a clean state. Every interaction
the controller did through EventController
::handle-event
will be dropped at this point.
Since: 3.14
setPropagationPhase
eventControllerSetPropagationPhase Source #
Arguments
:: (HasCallStack, MonadIO m, IsEventController a) | |
=> a |
|
-> PropagationPhase |
|
-> m () |
Sets the propagation phase at which a controller handles events.
If phase
is PropagationPhaseNone
, no automatic event handling will be
performed, but other additional gesture maintenance will. In that phase,
the events can be managed by calling eventControllerHandleEvent
.
Since: 3.14
Properties
propagationPhase
constructEventControllerPropagationPhase :: IsEventController o => PropagationPhase -> IO (GValueConstruct o) Source #
getEventControllerPropagationPhase :: (MonadIO m, IsEventController o) => o -> m PropagationPhase Source #
setEventControllerPropagationPhase :: (MonadIO m, IsEventController o) => o -> PropagationPhase -> m () Source #
widget
constructEventControllerWidget :: (IsEventController o, IsWidget a) => a -> IO (GValueConstruct o) Source #
getEventControllerWidget :: (MonadIO m, IsEventController o) => o -> m Widget Source #