reflex-vty-0.2.0.1: Reflex FRP host and widgets for VTY applications

Safe HaskellNone
LanguageHaskell2010

Reflex.Vty.Widget.Input.Mouse

Description

 
Synopsis

Documentation

data Drag Source #

Information about a drag operation

Constructors

Drag 

Fields

Instances
Eq Drag Source # 
Instance details

Defined in Reflex.Vty.Widget.Input.Mouse

Methods

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

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

Ord Drag Source # 
Instance details

Defined in Reflex.Vty.Widget.Input.Mouse

Methods

compare :: Drag -> Drag -> Ordering #

(<) :: Drag -> Drag -> Bool #

(<=) :: Drag -> Drag -> Bool #

(>) :: Drag -> Drag -> Bool #

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

max :: Drag -> Drag -> Drag #

min :: Drag -> Drag -> Drag #

Show Drag Source # 
Instance details

Defined in Reflex.Vty.Widget.Input.Mouse

Methods

showsPrec :: Int -> Drag -> ShowS #

show :: Drag -> String #

showList :: [Drag] -> ShowS #

drag :: (Reflex t, MonadFix m, MonadHold t m, HasInput t m) => Button -> m (Event t Drag) Source #

Converts raw vty mouse drag events into an event stream of Drags

mouseDown :: (Reflex t, Monad m, HasInput t m) => Button -> m (Event t MouseDown) Source #

Mouse down events for a particular mouse button

mouseUp :: (Reflex t, Monad m, HasInput t m) => m (Event t MouseUp) Source #

Mouse up events for a particular mouse button

data MouseUp Source #

Information about a mouse up event

Instances
Eq MouseUp Source # 
Instance details

Defined in Reflex.Vty.Widget.Input.Mouse

Methods

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

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

Ord MouseUp Source # 
Instance details

Defined in Reflex.Vty.Widget.Input.Mouse

Show MouseUp Source # 
Instance details

Defined in Reflex.Vty.Widget.Input.Mouse

mouseScroll :: (Reflex t, Monad m, HasInput t m) => m (Event t ScrollDirection) Source #

Produce an event that fires when the mouse wheel is scrolled