Portability | GHC |
---|---|
Stability | experimental |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Safe Haskell | None |
Pan-Zoom widget drawing and action
- data PanZoomMode
- data PanZoomTouch
- checkPointerInPanZoom :: ViewMode a => (CanvasId, CanvasInfo a, CanvasGeometry) -> PointerCoord -> Maybe (Maybe (PanZoomMode, (CanvasCoordinate, CanvasCoordinate)))
- startPanZoomWidget :: ViewMode a => PanZoomTouch -> (CanvasId, CanvasInfo a, CanvasGeometry) -> Maybe (PanZoomMode, (CanvasCoordinate, CanvasCoordinate)) -> MainCoroutine ()
- findZoomXform :: Dimension -> ((Double, Double), (Double, Double), (Double, Double)) -> (Double, (Double, Double))
- findPanXform :: Dimension -> ((Double, Double), (Double, Double)) -> (Double, Double)
- manipulatePZW :: (PanZoomTouch, PanZoomMode) -> CanvasId -> CanvasGeometry -> (Surface, Surface) -> CanvasCoordinate -> CanvasCoordinate -> UTCTime -> MainCoroutine ()
- movingRender :: PanZoomMode -> CanvasId -> CanvasGeometry -> (Surface, Surface) -> CanvasCoordinate -> CanvasCoordinate -> PointerCoord -> MainCoroutine ()
- togglePanZoom :: CanvasId -> MainCoroutine ()
- touchStart :: CanvasId -> PointerCoord -> MainCoroutine ()
- toggleTouch :: MainCoroutine ()
Documentation
checkPointerInPanZoom :: ViewMode a => (CanvasId, CanvasInfo a, CanvasGeometry) -> PointerCoord -> Maybe (Maybe (PanZoomMode, (CanvasCoordinate, CanvasCoordinate)))Source
startPanZoomWidget :: ViewMode a => PanZoomTouch -> (CanvasId, CanvasInfo a, CanvasGeometry) -> Maybe (PanZoomMode, (CanvasCoordinate, CanvasCoordinate)) -> MainCoroutine ()Source
findZoomXform :: Dimension -> ((Double, Double), (Double, Double), (Double, Double)) -> (Double, (Double, Double))Source
:: (PanZoomTouch, PanZoomMode) | |
-> CanvasId | |
-> CanvasGeometry | |
-> (Surface, Surface) | (Source Surface, Target Surface) |
-> CanvasCoordinate | original widget position |
-> CanvasCoordinate | where pen pressed |
-> UTCTime | |
-> MainCoroutine () |
manipulate Pan-Zoom widget until released when grabbing the widget
movingRender :: PanZoomMode -> CanvasId -> CanvasGeometry -> (Surface, Surface) -> CanvasCoordinate -> CanvasCoordinate -> PointerCoord -> MainCoroutine ()Source
togglePanZoom :: CanvasId -> MainCoroutine ()Source
touchStart :: CanvasId -> PointerCoord -> MainCoroutine ()Source