Portability | GHC |
---|---|
Stability | experimental |
Maintainer | Ian-Woo Kim <ianwookim@gmail.com> |
Safe Haskell | None |
- data HoodleState = HoodleState {
- _hoodleModeState :: HoodleModeState
- _hoodleFileControl :: HoodleFileControl
- _cvsInfoMap :: CanvasInfoMap
- _currentCanvas :: (CanvasId, CanvasInfoBox)
- _frameState :: WindowConfig
- _rootWindow :: Widget
- _rootContainer :: Box
- _rootOfRootWindow :: Window
- _currentPenDraw :: PenDraw
- _callBack :: MyEvent -> IO ()
- _deviceList :: DeviceList
- _penInfo :: PenInfo
- _selectInfo :: SelectInfo
- _gtkUIManager :: UIManager
- _isSaved :: Bool
- _undoTable :: UndoTable HoodleModeState
- _backgroundStyle :: BackgroundStyle
- _isFullScreen :: Bool
- _settings :: Settings
- _uiComponentSignalHandler :: UIComponentSignalHandler
- _isOneTimeSelectMode :: IsOneTimeSelectMode
- _lastTimeCanvasConfigure :: Maybe UTCTime
- _hookSet :: Maybe Hook
- _tempQueue :: Queue (Either (ActionOrder MyEvent) MyEvent)
- _tempLog :: String -> String
- data HoodleModeState
- = ViewAppendState { }
- | SelectState { }
- data IsOneTimeSelectMode
- data Settings = Settings {}
- data UIComponentSignalHandler = UIComponentSignalHandler {}
- hoodleModeState :: Simple Lens HoodleState HoodleModeState
- hoodleFileControl :: Simple Lens HoodleState HoodleFileControl
- cvsInfoMap :: Simple Lens HoodleState CanvasInfoMap
- currentCanvas :: Simple Lens HoodleState (CanvasId, CanvasInfoBox)
- frameState :: Simple Lens HoodleState WindowConfig
- rootWindow :: Simple Lens HoodleState Widget
- rootContainer :: Simple Lens HoodleState Box
- rootOfRootWindow :: Simple Lens HoodleState Window
- currentPenDraw :: Simple Lens HoodleState PenDraw
- callBack :: Simple Lens HoodleState (MyEvent -> IO ())
- deviceList :: Simple Lens HoodleState DeviceList
- penInfo :: Simple Lens HoodleState PenInfo
- selectInfo :: Simple Lens HoodleState SelectInfo
- gtkUIManager :: Simple Lens HoodleState UIManager
- isSaved :: Simple Lens HoodleState Bool
- undoTable :: Simple Lens HoodleState (UndoTable HoodleModeState)
- backgroundStyle :: Simple Lens HoodleState BackgroundStyle
- isFullScreen :: Simple Lens HoodleState Bool
- settings :: Simple Lens HoodleState Settings
- uiComponentSignalHandler :: Simple Lens HoodleState UIComponentSignalHandler
- isOneTimeSelectMode :: Simple Lens HoodleState IsOneTimeSelectMode
- lastTimeCanvasConfigure :: Simple Lens HoodleState (Maybe UTCTime)
- hookSet :: Simple Lens HoodleState (Maybe Hook)
- tempLog :: Simple Lens HoodleState (String -> String)
- tempQueue :: Simple Lens HoodleState (Queue (Either (ActionOrder MyEvent) MyEvent))
- hoodleFileName :: Simple Lens HoodleFileControl (Maybe FilePath)
- doesUseXInput :: Simple Lens Settings Bool
- doesSmoothScroll :: Simple Lens Settings Bool
- doesUsePopUpMenu :: Simple Lens Settings Bool
- doesEmbedImage :: Simple Lens Settings Bool
- doesEmbedPDF :: Simple Lens Settings Bool
- penModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))
- pageModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))
- penPointSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))
- penColorSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))
- emptyHoodleState :: IO HoodleState
- defaultSettings :: Settings
- defaultUIComponentSignalHandler :: UIComponentSignalHandler
- getHoodle :: HoodleState -> Hoodle EditMode
- getCanvasInfoMap :: HoodleState -> CanvasInfoMap
- setCanvasInfoMap :: CanvasInfoMap -> HoodleState -> Maybe HoodleState
- getCurrentCanvasId :: HoodleState -> CanvasId
- setCurrentCanvasId :: CanvasId -> HoodleState -> Maybe HoodleState
- currentCanvasInfo :: Simple Lens HoodleState CanvasInfoBox
- resetHoodleModeStateBuffers :: HoodleModeState -> IO HoodleModeState
- getCanvasInfo :: CanvasId -> HoodleState -> CanvasInfoBox
- setCanvasInfo :: (CanvasId, CanvasInfoBox) -> HoodleState -> HoodleState
- updateFromCanvasInfoAsCurrentCanvas :: CanvasInfoBox -> HoodleState -> HoodleState
- setCanvasId :: CanvasId -> CanvasInfoBox -> CanvasInfoBox
- modifyCanvasInfo :: CanvasId -> (CanvasInfoBox -> CanvasInfoBox) -> HoodleState -> HoodleState
- hoodleModeStateEither :: HoodleModeState -> Either (Hoodle EditMode) (Hoodle SelectMode)
- getCurrentPageFromHoodleModeState :: ViewMode a => CanvasInfo a -> HoodleModeState -> Page EditMode
- getCurrentPageDimFromHoodleModeState :: ViewMode a => CanvasInfo a -> HoodleModeState -> PageDimension
- showCanvasInfoMapViewPortBBox :: HoodleState -> IO ()
Documentation
data HoodleState Source
HoodleState | |
|
A set of Hoodle settings
labels
hoodleModeState :: Simple Lens HoodleState HoodleModeStateSource
lens for hoodleModeState
hoodleFileControl :: Simple Lens HoodleState HoodleFileControlSource
cvsInfoMap :: Simple Lens HoodleState CanvasInfoMapSource
lens for cvsInfoMap
currentCanvas :: Simple Lens HoodleState (CanvasId, CanvasInfoBox)Source
lens for currentCanvas
frameState :: Simple Lens HoodleState WindowConfigSource
lens for frameState
rootWindow :: Simple Lens HoodleState WidgetSource
lens for rootWindow
rootContainer :: Simple Lens HoodleState BoxSource
lens for rootContainer
rootOfRootWindow :: Simple Lens HoodleState WindowSource
lens for rootOfRootWindow
currentPenDraw :: Simple Lens HoodleState PenDrawSource
lens for currentPenDraw
deviceList :: Simple Lens HoodleState DeviceListSource
lens for deviceList
selectInfo :: Simple Lens HoodleState SelectInfoSource
lens for selectInfo
gtkUIManager :: Simple Lens HoodleState UIManagerSource
lens for gtkUIManager
undoTable :: Simple Lens HoodleState (UndoTable HoodleModeState)Source
lens for undoTable
backgroundStyle :: Simple Lens HoodleState BackgroundStyleSource
background style = plain, lined, ruled, graph
isFullScreen :: Simple Lens HoodleState BoolSource
lens for isFullScreen
isOneTimeSelectMode :: Simple Lens HoodleState IsOneTimeSelectModeSource
lens for isOneTimeSelectMode
lastTimeCanvasConfigure :: Simple Lens HoodleState (Maybe UTCTime)Source
lens for lastTimeCanvasConfigure
tempQueue :: Simple Lens HoodleState (Queue (Either (ActionOrder MyEvent) MyEvent))Source
lens for tempQueue
doesUseXInput :: Simple Lens Settings BoolSource
flag for XInput extension (needed for using full power of wacom)
doesEmbedPDF :: Simple Lens Settings BoolSource
flag for embedding pdf background as base64 in hdl file
penModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))Source
lens for penModeSignal
pageModeSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))Source
lens for pageModeSignal
penPointSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))Source
lens for penPointSignal
penColorSignal :: Simple Lens UIComponentSignalHandler (Maybe (ConnectId RadioAction))Source
lens for penColorSignal
others
emptyHoodleState :: IO HoodleStateSource
default hoodle state
defaultSettings :: SettingsSource
default settings
additional lenses
setCanvasInfo :: (CanvasId, CanvasInfoBox) -> HoodleState -> HoodleStateSource
updateFromCanvasInfoAsCurrentCanvas :: CanvasInfoBox -> HoodleState -> HoodleStateSource
change current canvas. this is the master function
modifyCanvasInfo :: CanvasId -> (CanvasInfoBox -> CanvasInfoBox) -> HoodleState -> HoodleStateSource
getCurrentPageFromHoodleModeState :: ViewMode a => CanvasInfo a -> HoodleModeState -> Page EditModeSource
getCurrentPageDimFromHoodleModeState :: ViewMode a => CanvasInfo a -> HoodleModeState -> PageDimensionSource
for debug