hoodle-core-0.16: Core library for hoodle

Copyright(c) 2011-2015 Ian-Woo Kim
LicenseBSD3
MaintainerIan-Woo Kim <ianwookim@gmail.com>
Stabilityexperimental
PortabilityGHC
Safe HaskellNone
LanguageHaskell98

Hoodle.Coroutine.Select

Description

selection-related coroutines

Synopsis

Documentation

dealWithOneTimeSelectMode Source #

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

moveSelect Source #

Arguments

:: CanvasId 
-> PageNum

starting pagenum

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

startResizeSelect Source #

Arguments

:: Bool

doesKeepRatio

-> Handle

current selection handle

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

prepare for resizing selection

resizeSelect Source #

Arguments

:: Bool

doesKeepRatio

-> Handle

current selection 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.