Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Drag = Drag {
- _drag_from :: (Int, Int)
- _drag_to :: (Int, Int)
- _drag_button :: Button
- _drag_modifiers :: [Modifier]
- _drag_end :: Bool
- drag :: (Reflex t, MonadFix m, MonadHold t m, HasInput t m) => Button -> m (Event t Drag)
- mouseDown :: (Reflex t, Monad m, HasInput t m) => Button -> m (Event t MouseDown)
- mouseUp :: (Reflex t, Monad m, HasInput t m) => m (Event t MouseUp)
- data MouseDown = MouseDown {}
- data MouseUp = MouseUp {
- _mouseUp_button :: Maybe Button
- _mouseUp_coordinates :: (Int, Int)
- data ScrollDirection
- mouseScroll :: (Reflex t, Monad m, HasInput t m) => m (Event t ScrollDirection)
Documentation
Information about a drag operation
Drag | |
|
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 Drag
s
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
Information about a mouse down event
MouseDown | |
|
Information about a mouse up event
MouseUp | |
|
data ScrollDirection Source #
Mouse scroll direction
Instances
Eq ScrollDirection Source # | |
Defined in Reflex.Vty.Widget.Input.Mouse (==) :: ScrollDirection -> ScrollDirection -> Bool # (/=) :: ScrollDirection -> ScrollDirection -> Bool # | |
Ord ScrollDirection Source # | |
Defined in Reflex.Vty.Widget.Input.Mouse compare :: ScrollDirection -> ScrollDirection -> Ordering # (<) :: ScrollDirection -> ScrollDirection -> Bool # (<=) :: ScrollDirection -> ScrollDirection -> Bool # (>) :: ScrollDirection -> ScrollDirection -> Bool # (>=) :: ScrollDirection -> ScrollDirection -> Bool # max :: ScrollDirection -> ScrollDirection -> ScrollDirection # min :: ScrollDirection -> ScrollDirection -> ScrollDirection # | |
Show ScrollDirection Source # | |
Defined in Reflex.Vty.Widget.Input.Mouse showsPrec :: Int -> ScrollDirection -> ShowS # show :: ScrollDirection -> String # showList :: [ScrollDirection] -> ShowS # |
mouseScroll :: (Reflex t, Monad m, HasInput t m) => m (Event t ScrollDirection) Source #
Produce an event that fires when the mouse wheel is scrolled