rasa-0.1.0.0: A modular text editor

Safe HaskellSafe
LanguageHaskell2010

Rasa.Internal.Events

Synopsis

Documentation

data Init Source #

The Event type represents a common denominator for all actions that could occur Event transmitters express events that have occured as a member of this type. At the moment it's quite sparse, but it will expand as new types of events are needed.

This event is dispatched exactly once when the editor starts up.

Constructors

Init 

Instances

Eq Init Source # 

Methods

(==) :: Init -> Init -> Bool #

(/=) :: Init -> Init -> Bool #

Show Init Source # 

Methods

showsPrec :: Int -> Init -> ShowS #

show :: Init -> String #

showList :: [Init] -> ShowS #

data BeforeEvent Source #

This event is dispatched immediately before dispatching any events from asyncronous event listeners (like Keypresss)

Constructors

BeforeEvent 

data BeforeRender Source #

This event is dispatched immediately before dispatching the OnRender event.

Constructors

BeforeRender 

data OnRender Source #

This event is dispatched when it's time for extensions to render to screen.

Constructors

OnRender 

data AfterRender Source #

This event is dispatched immediately after dispatching OnRender.

Constructors

AfterRender 

data Exit Source #

This event is dispatched before exiting the editor, listen for this to do any clean-up (saving files, etc.)

Constructors

Exit 

Instances

Eq Exit Source # 

Methods

(==) :: Exit -> Exit -> Bool #

(/=) :: Exit -> Exit -> Bool #

Show Exit Source # 

Methods

showsPrec :: Int -> Exit -> ShowS #

show :: Exit -> String #

showList :: [Exit] -> ShowS #

data Keypress Source #

This event is dispatched in response to keyboard key presses. It contains both the char that was pressed and any modifiers (Mod) that where held when the key was pressed.

Constructors

Keypress Char [Mod] 
Esc 
BS 
Enter 

data Mod Source #

This represents each modifier key that could be pressed along with a key.

Constructors

Ctrl 
Alt 
Shift 

Instances

Eq Mod Source # 

Methods

(==) :: Mod -> Mod -> Bool #

(/=) :: Mod -> Mod -> Bool #

Show Mod Source # 

Methods

showsPrec :: Int -> Mod -> ShowS #

show :: Mod -> String #

showList :: [Mod] -> ShowS #