qtah-qt5-0.3.0: Qt bindings for Haskell

Safe HaskellSafe
LanguageHaskell2010

Graphics.UI.Qtah.Signal

Description

General routines for managing Qt signals.

Synopsis

Documentation

data Signal object handler Source #

A signal that can be connected to an instance of the object (C++) class, and when invoked will call a function of the given handler type.

Constructors

Signal 

Fields

Instances

Show (Signal object handler) Source # 

Methods

showsPrec :: Int -> Signal object handler -> ShowS #

show :: Signal object handler -> String #

showList :: [Signal object handler] -> ShowS #

connect :: object -> Signal object handler -> handler -> IO Bool Source #

Registers a handler function to listen to a signal an object emits. Returns true if the connection succeeded.

connect_ :: Show (Signal object handler) => object -> Signal object handler -> handler -> IO () Source #

Registers a handler function to listen to a signal an object emits, via connect. If the connection fails, then the program aborts.