hoodle-core-0.10: Core library for hoodle

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

Hoodle.Type.HoodleState

Description

 

Synopsis

Documentation

data Settings Source

A set of Hoodle settings

labels

rootContainer :: Simple Lens HoodleState BoxSource

lens for rootContainer

rootOfRootWindow :: Simple Lens HoodleState WindowSource

lens for rootOfRootWindow

callBack :: Simple Lens HoodleState (MyEvent -> IO ())Source

lens for callBack

backgroundStyle :: Simple Lens HoodleState BackgroundStyleSource

background style = plain, lined, ruled, graph

isFullScreen :: Simple Lens HoodleState BoolSource

lens for isFullScreen

lastTimeCanvasConfigure :: Simple Lens HoodleState (Maybe UTCTime)Source

lens for lastTimeCanvasConfigure

hoodleFileName :: Simple Lens HoodleFileControl (Maybe FilePath)Source

lens for currFileName

doesUseXInput :: Simple Lens Settings BoolSource

flag for XInput extension (needed for using full power of wacom)

doesSmoothScroll :: Simple Lens Settings BoolSource

flag for smooth scrolling

doesUsePopUpMenu :: Simple Lens Settings BoolSource

flag for using popup menu

doesEmbedImage :: Simple Lens Settings BoolSource

flag for embedding image as base64 in hdl file

doesEmbedPDF :: Simple Lens Settings BoolSource

flag for embedding pdf background as base64 in hdl file

others

emptyHoodleState :: IO HoodleStateSource

default hoodle state

defaultSettings :: SettingsSource

default settings

additional lenses

updateFromCanvasInfoAsCurrentCanvas :: CanvasInfoBox -> HoodleState -> HoodleStateSource

change current canvas. this is the master function

for debug