Copyright | (C) Frank Staals |
---|---|
License | see the LICENSE file |
Maintainer | Frank Staals |
Safe Haskell | None |
Language | GHC2021 |
Some extra event helpers, in partricular for touch and wheel events
Synopsis
- data WheelDirection
- onWheel :: (WheelDirection -> action) -> Attribute action
- data Button
- onClickWithButton :: (Button -> action) -> Attribute action
- onRightClick :: action -> Attribute action
- onContextMenu :: action -> Attribute action
- onTouchStart :: action -> Attribute action
- onTouchMove :: action -> Attribute action
- onTouchEnd :: action -> Attribute action
Documentation
data WheelDirection Source #
Scroll-wheel direction
Instances
Show WheelDirection Source # | |
Defined in HGeometry.Miso.Event.Extra showsPrec :: Int -> WheelDirection -> ShowS # show :: WheelDirection -> String # showList :: [WheelDirection] -> ShowS # | |
Eq WheelDirection Source # | |
Defined in HGeometry.Miso.Event.Extra (==) :: WheelDirection -> WheelDirection -> Bool # (/=) :: WheelDirection -> WheelDirection -> Bool # |
onWheel :: (WheelDirection -> action) -> Attribute action Source #
on wheel events
A type modelling the mouse buttons
onClickWithButton :: (Button -> action) -> Attribute action Source #
get the mouse button that was clicked
onRightClick :: action -> Attribute action Source #
Get right clicks
onContextMenu :: action -> Attribute action Source #
prevent onContextMenu events
onTouchStart :: action -> Attribute action Source #
onTouchMove :: action -> Attribute action Source #
onTouchEnd :: action -> Attribute action Source #