hoodle-core-0.10: 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

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)

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

prepare for moving selection

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

prepare for resizing selection

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.