qtah-qt5-0.5.1: Qt bindings for Haskell

Safe HaskellNone
LanguageHaskell2010

Graphics.UI.Qtah.SceneEvent

Contents

Description

General routines for managing events for Graphics.UI.Qtah.Widgets.QGraphicsScenes.

Synopsis

High-level interface.

class SceneEvent e where Source #

A typeclass for Qt events within a QGraphicsScene.

Minimal complete definition

onSceneEvent

Methods

onSceneEvent :: QGraphicsItemPtr this => this -> (e -> IO Bool) -> IO SceneEventRegistration Source #

Registers a callback function to be invoked when an event of type e is sent to an object. This is a wrapper around onAnySceneEvent, so for details, see that function; all comments about SceneEventFilters apply equally to handlers given here.

Instances
SceneEvent QEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Core.QEvent

SceneEvent QTimerEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Core.QTimerEvent

SceneEvent QCloseEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QCloseEvent

SceneEvent QEnterEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QEnterEvent

SceneEvent QFocusEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QFocusEvent

SceneEvent QHideEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QHideEvent

SceneEvent QInputEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QInputEvent

SceneEvent QHoverEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QHoverEvent

SceneEvent QMouseEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QMouseEvent

SceneEvent QPaintEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QPaintEvent

SceneEvent QExposeEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QExposeEvent

SceneEvent QShowEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QShowEvent

SceneEvent QWheelEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QWheelEvent

SceneEvent QKeyEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QKeyEvent

SceneEvent QGraphicsSceneEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Widgets.QGraphicsSceneEvent

SceneEvent QGraphicsSceneWheelEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Widgets.QGraphicsSceneWheelEvent

SceneEvent QGraphicsSceneMouseEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Widgets.QGraphicsSceneMouseEvent

SceneEvent QActionEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Gui.QActionEvent

SceneEvent QChildEvent Source # 
Instance details

Defined in Graphics.UI.Qtah.Core.QChildEvent

data SceneEventRegistration Source #

A record that an event handler was registered with a receiver object. This can be given to unregister to destroy the corresponding handler.

unregister :: SceneEventRegistration -> IO () Source #

Disconnects an event handler and frees its resources. This function is idempotent.

Low-level interface

type SceneEventFilter = QGraphicsItem -> QEvent -> IO Bool Source #

An filter that can handle any type of event.

onAnySceneEvent :: QGraphicsItemPtr target => target -> SceneEventFilter -> IO SceneEventRegistration Source #

Registers an SceneEventFilter to listen to events that a QGraphicsItem receives. A filter can return false to allow the event to propagate further, or true to indicate that the event has been handled, and stop propagation. When multiple filters are attached to an object, the last one installed is called first. The filter will stay active until the receiver is deleted, or unregister is called.

This function uses installSceneEventFilter under the hood.

Internal