Copyright | (c) 2011-2015 Ian-Woo Kim |
---|---|
License | BSD3 |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
selection-related coroutines
- dealWithOneTimeSelectMode :: MainCoroutine () -> MainCoroutine () -> MainCoroutine ()
- commonSelectStart :: SelectType -> PenButton -> CanvasId -> PointerCoord -> MainCoroutine ()
- selectRectStart :: PenButton -> CanvasId -> PointerCoord -> MainCoroutine ()
- newSelectRectangle :: CanvasId -> PageNum -> CanvasGeometry -> [RItem] -> (Double, Double) -> ((Double, Double), UTCTime) -> TempSelection -> MainCoroutine ()
- startMoveSelect :: CanvasId -> PageNum -> CanvasGeometry -> ((Double, Double), UTCTime) -> Page SelectMode -> MainCoroutine ()
- moveSelect :: CanvasId -> PageNum -> CanvasGeometry -> (Double, Double) -> ((Double, Double), UTCTime) -> TempRender ItmsNImg -> MainCoroutine ()
- startResizeSelect :: Bool -> Handle -> CanvasId -> PageNum -> CanvasGeometry -> BBox -> ((Double, Double), UTCTime) -> Page SelectMode -> MainCoroutine ()
- resizeSelect :: Bool -> Handle -> CanvasId -> PageNum -> CanvasGeometry -> BBox -> ((Double, Double), UTCTime) -> TempRender ItmsNImg -> MainCoroutine ()
- selectPenColorChanged :: PenColor -> MainCoroutine ()
- selectPenWidthChanged :: Double -> MainCoroutine ()
- selectLassoStart :: PenButton -> CanvasId -> PointerCoord -> MainCoroutine ()
- newSelectLasso :: CanvasInfo a -> PageNum -> CanvasGeometry -> [RItem] -> (Double, Double) -> ((Double, Double), UTCTime) -> Seq (Double, Double) -> TempSelection -> MainCoroutine ()
Documentation
dealWithOneTimeSelectMode Source #
:: MainCoroutine () | main action |
-> MainCoroutine () | terminating action |
-> MainCoroutine () |
For Selection mode from pen mode with 2nd pen button
commonSelectStart :: SelectType -> PenButton -> CanvasId -> PointerCoord -> MainCoroutine () Source #
common main mouse pointer click entrance in selection mode. choose either starting new selection or move previously selected selection.
selectRectStart :: PenButton -> CanvasId -> PointerCoord -> MainCoroutine () Source #
main mouse pointer click entrance in rectangular selection mode. choose either starting new rectangular selection or move previously selected selection.
newSelectRectangle :: CanvasId -> PageNum -> CanvasGeometry -> [RItem] -> (Double, Double) -> ((Double, Double), UTCTime) -> TempSelection -> MainCoroutine () Source #
startMoveSelect :: CanvasId -> PageNum -> CanvasGeometry -> ((Double, Double), UTCTime) -> Page SelectMode -> MainCoroutine () Source #
prepare for moving selection
:: CanvasId | |
-> PageNum | starting pagenum |
-> CanvasGeometry | |
-> (Double, Double) | |
-> ((Double, Double), UTCTime) | |
-> TempRender ItmsNImg | |
-> MainCoroutine () |
:: Bool | doesKeepRatio |
-> Handle | current selection handle |
-> CanvasId | |
-> PageNum | |
-> CanvasGeometry | |
-> BBox | |
-> ((Double, Double), UTCTime) | |
-> Page SelectMode | |
-> MainCoroutine () |
prepare for resizing selection
:: Bool | doesKeepRatio |
-> Handle | current selection handle |
-> CanvasId | |
-> PageNum | |
-> CanvasGeometry | |
-> BBox | |
-> ((Double, Double), UTCTime) | |
-> TempRender ItmsNImg | |
-> MainCoroutine () |
selectPenColorChanged :: PenColor -> MainCoroutine () Source #
selectPenWidthChanged :: Double -> MainCoroutine () Source #
selectLassoStart :: PenButton -> CanvasId -> PointerCoord -> MainCoroutine () Source #
main mouse pointer click entrance in lasso selection mode. choose either starting new rectangular selection or move previously selected selection.
newSelectLasso :: CanvasInfo a -> PageNum -> CanvasGeometry -> [RItem] -> (Double, Double) -> ((Double, Double), UTCTime) -> Seq (Double, Double) -> TempSelection -> MainCoroutine () Source #