Portability | GHC |
---|---|
Stability | experimental |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Safe Haskell | None |
- updateXState :: (HoodleState -> MainCoroutine HoodleState) -> MainCoroutine ()
- getPenType :: MainCoroutine PenType
- getCurrentPageCurr :: MainCoroutine (Page EditMode)
- getCurrentPageCvsId :: CanvasId -> MainCoroutine (Page EditMode)
- getCurrentPageEitherFromHoodleModeState :: ViewMode a => CanvasInfo a -> HoodleModeState -> Either (Page EditMode) (Page SelectMode)
- rItmsInCurrLyr :: MainCoroutine [RItem]
- otherCanvas :: HoodleState -> [Int]
- changeCurrentCanvasId :: CanvasId -> MainCoroutine HoodleState
- applyActionToAllCVS :: (CanvasId -> MainCoroutine ()) -> MainCoroutine ()
- printViewPortBBox :: CanvasId -> MainCoroutine ()
- printViewPortBBoxAll :: MainCoroutine ()
- printViewPortBBoxCurr :: MainCoroutine ()
- printModes :: CanvasId -> MainCoroutine ()
- printCanvasMode :: CanvasId -> CanvasInfoBox -> IO ()
- printModesAll :: MainCoroutine ()
- getCanvasGeometryCvsId :: CanvasId -> HoodleState -> IO CanvasGeometry
- getGeometry4CurrCvs :: HoodleState -> IO CanvasGeometry
- updateFlagFromToggleUI :: String -> Simple Lens HoodleState Bool -> MainCoroutine Bool
- setToggleUIForFlag :: String -> Simple Lens HoodleState Bool -> HoodleState -> IO Bool
Documentation
updateXState :: (HoodleState -> MainCoroutine HoodleState) -> MainCoroutine ()Source
update state
getCurrentPageEitherFromHoodleModeState :: ViewMode a => CanvasInfo a -> HoodleModeState -> Either (Page EditMode) (Page SelectMode)Source
otherCanvas :: HoodleState -> [Int]Source
applyActionToAllCVS :: (CanvasId -> MainCoroutine ()) -> MainCoroutine ()Source
apply an action to all canvases
printViewPortBBox :: CanvasId -> MainCoroutine ()Source
printModes :: CanvasId -> MainCoroutine ()Source
printCanvasMode :: CanvasId -> CanvasInfoBox -> IO ()Source
:: String | UI toggle button id |
-> Simple Lens HoodleState Bool | lens for flag |
-> MainCoroutine Bool |
update flag in HoodleState when corresponding toggle UI changed
:: String | |
-> Simple Lens HoodleState Bool | lens for flag |
-> HoodleState | |
-> IO Bool |
set toggle UI button to the corresponding HoodleState