Copyright | (c) 2011-2014 Ian-Woo Kim |
---|---|
License | BSD3 |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Stability | experimental |
Portability | GHC |
Safe Haskell | None |
Language | Haskell98 |
- updateXState :: (HoodleState -> MainCoroutine HoodleState) -> MainCoroutine ()
- updateUhdl :: (UnitHoodle -> MainCoroutine UnitHoodle) -> MainCoroutine ()
- pureUpdateUhdl :: (UnitHoodle -> UnitHoodle) -> MainCoroutine ()
- getPenType :: MainCoroutine PenType
- getCurrentPageCurr :: MainCoroutine (Page EditMode)
- getCurrentPageCvsId :: CanvasId -> MainCoroutine (Page EditMode)
- getCurrentPageEitherFromHoodleModeState :: CanvasInfo a -> HoodleModeState -> Either (Page EditMode) (Page SelectMode)
- rItmsInCurrLyr :: MainCoroutine [RItem]
- otherCanvas :: UnitHoodle -> [Int]
- applyActionToAllCVS :: (CanvasId -> MainCoroutine ()) -> MainCoroutine ()
- getCanvasGeometryCvsId :: CanvasId -> UnitHoodle -> IO CanvasGeometry
- getGeometry4CurrCvs :: UnitHoodle -> IO CanvasGeometry
- lensSetToggleUIForFlag :: String -> Simple Lens HoodleState Bool -> HoodleState -> IO Bool
- setToggleUIForFlag :: String -> Bool -> HoodleState -> IO Bool
- renderCache :: MainCoroutine RenderCache
- getHoodleFilePath :: UnitHoodle -> Maybe FilePath
- fileStore2Maybe :: FileStore -> Maybe FilePath
- getHoodleID :: UnitHoodle -> Text
Documentation
updateXState :: (HoodleState -> MainCoroutine HoodleState) -> MainCoroutine () Source #
update state
updateUhdl :: (UnitHoodle -> MainCoroutine UnitHoodle) -> MainCoroutine () Source #
update unitHoodle
pureUpdateUhdl :: (UnitHoodle -> UnitHoodle) -> MainCoroutine () Source #
update unitHoodle
getCurrentPageEitherFromHoodleModeState :: CanvasInfo a -> HoodleModeState -> Either (Page EditMode) (Page SelectMode) Source #
otherCanvas :: UnitHoodle -> [Int] Source #
applyActionToAllCVS :: (CanvasId -> MainCoroutine ()) -> MainCoroutine () Source #
apply an action to all canvases
lensSetToggleUIForFlag Source #
:: String | |
-> Simple Lens HoodleState Bool | lens for flag |
-> HoodleState | |
-> IO Bool |
set toggle UI button to the corresponding HoodleState
setToggleUIForFlag :: String -> Bool -> HoodleState -> IO Bool Source #
set toggle UI button to the corresponding HoodleState
getHoodleID :: UnitHoodle -> Text Source #