hoodle-core-0.16.0: Core library for hoodle

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

Hoodle.Type.HoodleState

Description

 

Synopsis

Documentation

data Settings Source #

A set of Hoodle settings

labels

unitKey :: Simple Lens UnitHoodle Int Source #

lens for unitKey

rootContainer :: Simple Lens UnitHoodle Box Source #

lens for rootContainer

rootOfRootWindow :: Simple Lens HoodleState Window Source #

lens for rootOfRootWindow

callBack :: Simple Lens HoodleState (AllEvent -> IO ()) Source #

lens for callBack

backgroundStyle :: Simple Lens HoodleState BackgroundStyle Source #

background style = plain, lined, ruled, graph

isFullScreen :: Simple Lens HoodleState Bool Source #

lens for isFullScreen

lastTimeCanvasConfigure :: Simple Lens HoodleState (Maybe UTCTime) Source #

lens for lastTimeCanvasConfigure

hoodleFileName :: Simple Lens HoodleFileControl FileStore Source #

lens for currFileName

lastSavedTime :: Simple Lens HoodleFileControl (Maybe UTCTime) Source #

lens for last saved time

syncMD5History :: Simple Lens HoodleFileControl [Text] Source #

lens for last saved time

doesUseXInput :: Simple Lens Settings Bool Source #

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

doesUsePopUpMenu :: Simple Lens Settings Bool Source #

flag for using popup menu

doesEmbedImage :: Simple Lens Settings Bool Source #

flag for embedding image as base64 in hdl file

doesEmbedPDF :: Simple Lens Settings Bool Source #

flag for embedding pdf background as base64 in hdl file

doesFollowLinks :: Simple Lens Settings Bool Source #

flag for embedding pdf background as base64 in hdl file

doesKeepAspectRatio :: Simple Lens Settings Bool Source #

flag for keeping aspect ratio

newPageMode :: Simple Lens Settings NewPageModeType Source #

new page mode: plain | last | cycle

others

emptyHoodleState :: IO HoodleState Source #

default hoodle state

defaultSettings :: Settings Source #

default settings

additional lenses , getCanvasInfoMap

updateFromCanvasInfoAsCurrentCanvas :: CanvasInfoBox -> UnitHoodle -> UnitHoodle Source #

change current canvas. this is the master function

for debug , showCanvasInfoMapViewPortBBox , getTheUnit , putTheUnit