gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

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.

Synopsis

Exported types

Methods

getPropagationPhase

eventControllerGetPropagationPhase Source #

Arguments

:: (HasCallStack, MonadIO m, IsEventController a) 
=> a

controller: a EventController

-> 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

controller: a EventController

-> m Widget

Returns: a Widget

Returns the Widget this controller relates to.

Since: 3.14

handleEvent

eventControllerHandleEvent Source #

Arguments

:: (HasCallStack, MonadIO m, IsEventController a) 
=> a

controller: a EventController

-> Event

event: a Event

-> m Bool

Returns: True if the event was potentially useful to trigger the controller action

Feeds an events into controller, so it can be interpreted and the controller actions triggered.

Since: 3.14

reset

eventControllerReset Source #

Arguments

:: (HasCallStack, MonadIO m, IsEventController a) 
=> a

controller: a EventController

-> 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

controller: a EventController

-> PropagationPhase

phase: a propagation phase

-> 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

data EventControllerPropagationPhasePropertyInfo Source #

Instances

AttrInfo EventControllerPropagationPhasePropertyInfo Source # 
type AttrOrigin EventControllerPropagationPhasePropertyInfo Source # 
type AttrLabel EventControllerPropagationPhasePropertyInfo Source # 
type AttrGetType EventControllerPropagationPhasePropertyInfo Source # 
type AttrBaseTypeConstraint EventControllerPropagationPhasePropertyInfo Source # 
type AttrSetTypeConstraint EventControllerPropagationPhasePropertyInfo Source # 
type AttrAllowedOps EventControllerPropagationPhasePropertyInfo Source # 

widget

data EventControllerWidgetPropertyInfo Source #

Instances

AttrInfo EventControllerWidgetPropertyInfo Source # 
type AttrOrigin EventControllerWidgetPropertyInfo Source # 
type AttrLabel EventControllerWidgetPropertyInfo Source # 
type AttrGetType EventControllerWidgetPropertyInfo Source # 
type AttrBaseTypeConstraint EventControllerWidgetPropertyInfo Source # 
type AttrSetTypeConstraint EventControllerWidgetPropertyInfo Source # 
type AttrAllowedOps EventControllerWidgetPropertyInfo Source #