Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data GoatWidgetConfig t = GoatWidgetConfig {
- _goatWidgetConfig_initialState :: (OwlPFState, ControllerMeta)
- _goatWidgetConfig_unicodeWidthFn :: Maybe UnicodeWidthFn
- _goatWidgetConfig_mouse :: Event t LMouseData
- _goatWidgetConfig_keyboard :: Event t KeyboardData
- _goatWidgetConfig_canvasRegionDim :: Event t XY
- _goatWidgetConfig_selectTool :: Event t Tool
- _goatWidgetConfig_load :: Event t EverythingLoadState
- _goatWidgetConfig_paramsEvent :: Event t Llama
- _goatWidgetConfig_canvasSize :: Event t XY
- _goatWidgetConfig_newFolder :: Event t ()
- _goatWidgetConfig_setPotatoDefaultParameters :: Event t SetPotatoDefaultParameters
- _goatWidgetConfig_markSaved :: Event t ()
- _goatWidgetConfig_setFocusedArea :: Event t GoatFocusedArea
- _goatWidgetConfig_setDebugLabel :: Event t Text
- _goatWidgetConfig_bypassEvent :: Event t WSEvent
- emptyGoatWidgetConfig :: Reflex t => GoatWidgetConfig t
- data GoatWidget t = GoatWidget {
- _goatWidget_tool :: Dynamic t Tool
- _goatWidget_selection :: Dynamic t Selection
- _goatWidget_potatoDefaultParameters :: Dynamic t PotatoDefaultParameters
- _goatWidget_layers :: Dynamic t LayersState
- _goatWidget_pan :: Dynamic t XY
- _goatWidget_broadPhase :: Dynamic t BroadPhaseState
- _goatWidget_handlerRenderOutput :: Dynamic t HandlerRenderOutput
- _goatWidget_layersHandlerRenderOutput :: Dynamic t LayersViewHandlerRenderOutput
- _goatWidget_canvas :: Dynamic t SCanvas
- _goatWidget_renderedCanvas :: Dynamic t RenderedCanvasRegion
- _goatWidget_renderedSelection :: Dynamic t RenderedCanvasRegion
- _goatWidget_unsavedChanges :: Dynamic t Bool
- _goatWidget_DEBUG_goatState :: Dynamic t GoatState
- holdGoatWidget :: forall t m. (Adjustable t m, MonadHold t m, MonadFix m) => GoatWidgetConfig t -> m (GoatWidget t)
Documentation
data GoatWidgetConfig t Source #
invariants * TODO mouse input type can only change after a `_lMouseData_isRelease == True` * TODO non-mouse inputs can only happen after a `_lMouseData_isRelease == True` except for cancel
emptyGoatWidgetConfig :: Reflex t => GoatWidgetConfig t Source #
data GoatWidget t Source #
holdGoatWidget :: forall t m. (Adjustable t m, MonadHold t m, MonadFix m) => GoatWidgetConfig t -> m (GoatWidget t) Source #