Portability | GHC |
---|---|
Stability | experimental |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Safe Haskell | None |
selection-related coroutines
- createTempSelectRender :: PageNum -> CanvasGeometry -> Page EditMode -> a -> MainCoroutine (TempSelectRender a)
- dealWithOneTimeSelectMode :: MainCoroutine () -> MainCoroutine () -> MainCoroutine ()
- selectRectStart :: 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) -> TempSelectRender ItmsNImg -> MainCoroutine ()
- startResizeSelect :: Handle -> CanvasId -> PageNum -> CanvasGeometry -> BBox -> ((Double, Double), UTCTime) -> Page SelectMode -> MainCoroutine ()
- resizeSelect :: Handle -> CanvasId -> PageNum -> CanvasGeometry -> BBox -> ((Double, Double), UTCTime) -> TempSelectRender ItmsNImg -> MainCoroutine ()
- selectPenColorChanged :: PenColor -> MainCoroutine ()
- selectPenWidthChanged :: Double -> MainCoroutine ()
- selectLassoStart :: CanvasId -> PointerCoord -> MainCoroutine ()
- newSelectLasso :: ViewMode a => CanvasInfo a -> PageNum -> CanvasGeometry -> [RItem] -> (Double, Double) -> ((Double, Double), UTCTime) -> Seq (Double, Double) -> TempSelection -> MainCoroutine ()
Documentation
createTempSelectRender :: PageNum -> CanvasGeometry -> Page EditMode -> a -> MainCoroutine (TempSelectRender a)Source
dealWithOneTimeSelectModeSource
:: MainCoroutine () | main action |
-> MainCoroutine () | terminating action |
-> MainCoroutine () |
For Selection mode from pen mode with 2nd pen button
selectRectStart :: CanvasId -> PointerCoord -> MainCoroutine ()Source
main mouse pointer click entrance in rectangular selection mode. choose either starting new rectangular selection or move previously selected selection. (dev note: need to be refactored with selectLassoStart)
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) | |
-> TempSelectRender ItmsNImg | |
-> MainCoroutine () |
startResizeSelect :: Handle -> CanvasId -> PageNum -> CanvasGeometry -> BBox -> ((Double, Double), UTCTime) -> Page SelectMode -> MainCoroutine ()Source
prepare for resizing selection
resizeSelect :: Handle -> CanvasId -> PageNum -> CanvasGeometry -> BBox -> ((Double, Double), UTCTime) -> TempSelectRender ItmsNImg -> MainCoroutine ()Source
selectLassoStart :: 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 :: ViewMode a => CanvasInfo a -> PageNum -> CanvasGeometry -> [RItem] -> (Double, Double) -> ((Double, Double), UTCTime) -> Seq (Double, Double) -> TempSelection -> MainCoroutine ()Source