hoodle-core-0.13.0.0: Core library for hoodle

PortabilityGHC
Stabilityexperimental
MaintainerIan-Woo Kim <ianwookim@gmail.com>
Safe HaskellNone

Hoodle.Coroutine.Select

Description

selection-related coroutines

Synopsis

Documentation

dealWithOneTimeSelectModeSource

Arguments

:: 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.

startMoveSelect :: CanvasId -> PageNum -> CanvasGeometry -> ((Double, Double), UTCTime) -> Page SelectMode -> MainCoroutine ()Source

prepare for moving selection

moveSelectSource

Arguments

:: CanvasId 
-> PageNum

starting pagenum

-> CanvasGeometry 
-> (Double, Double) 
-> ((Double, Double), UTCTime) 
-> TempRender ItmsNImg 
-> MainCoroutine () 

startResizeSelectSource

Arguments

:: Bool

doesKeepRatio

-> Handle 
-> CanvasId 
-> PageNum 
-> CanvasGeometry 
-> BBox 
-> ((Double, Double), UTCTime) 
-> Page SelectMode 
-> MainCoroutine () 

prepare for resizing selection

resizeSelectSource

Arguments

:: Bool

doesKeepRatio

-> Handle 
-> CanvasId 
-> PageNum 
-> CanvasGeometry 
-> BBox 
-> ((Double, Double), UTCTime) 
-> TempRender ItmsNImg 
-> MainCoroutine () 

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.