rasa-0.1.10: A modular text editor

Safe HaskellNone
LanguageHaskell2010

Rasa.Internal.Events

Synopsis

Documentation

data Init Source #

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 AfterInit Source #

This event is dispatched exactly once when the editor starts up after onInit has occurred.

Constructors

AfterInit 

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 BufAdded Source #

This event is dispatched after adding a new buffer. The contained BufRef refers to the new buffer.

Constructors

BufAdded BufRef 

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.

data Mod Source #

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

Constructors

Ctrl 
Alt 
Shift 
Meta 

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 #

data BufTextChanged Source #

This is triggered when text in a buffer is changed. The Event data includes the CrdRange that changed and the new text which is now contined in that range.