Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data PotatoHandlerOutput Source #
Instances
Show PotatoHandlerOutput Source # | |
Defined in Potato.Flow.Controller.Handler showsPrec :: Int -> PotatoHandlerOutput -> ShowS # show :: PotatoHandlerOutput -> String # showList :: [PotatoHandlerOutput] -> ShowS # | |
Default PotatoHandlerOutput Source # | |
Defined in Potato.Flow.Controller.Handler |
data PotatoHandlerInput Source #
type LayersHandlerRenderEntryDots = Maybe Int Source #
data LayersHandlerRenderEntry Source #
LayersHandlerRenderEntryNormal LayersHandlerRenderEntrySelectedState LayersHandlerRenderEntryDots LayersHandlerRenderEntryRenaming LayerEntry | |
LayersHandlerRenderEntryDummy Int |
Instances
Show LayersHandlerRenderEntry Source # | |
Defined in Potato.Flow.Controller.Handler showsPrec :: Int -> LayersHandlerRenderEntry -> ShowS # show :: LayersHandlerRenderEntry -> String # showList :: [LayersHandlerRenderEntry] -> ShowS # | |
Eq LayersHandlerRenderEntry Source # | |
Defined in Potato.Flow.Controller.Handler |
data LayersViewHandlerRenderOutput Source #
Instances
data RenderHandleColor Source #
Instances
Show RenderHandleColor Source # | |
Defined in Potato.Flow.Controller.Handler showsPrec :: Int -> RenderHandleColor -> ShowS # show :: RenderHandleColor -> String # showList :: [RenderHandleColor] -> ShowS # | |
Eq RenderHandleColor Source # | |
Defined in Potato.Flow.Controller.Handler (==) :: RenderHandleColor -> RenderHandleColor -> Bool # (/=) :: RenderHandleColor -> RenderHandleColor -> Bool # |
data RenderHandle Source #
Instances
Show RenderHandle Source # | |
Defined in Potato.Flow.Controller.Handler showsPrec :: Int -> RenderHandle -> ShowS # show :: RenderHandle -> String # showList :: [RenderHandle] -> ShowS # | |
Eq RenderHandle Source # | |
Defined in Potato.Flow.Controller.Handler (==) :: RenderHandle -> RenderHandle -> Bool # (/=) :: RenderHandle -> RenderHandle -> Bool # |
data HandlerRenderOutput Source #
Instances
Semigroup HandlerRenderOutput Source # | |
Defined in Potato.Flow.Controller.Handler (<>) :: HandlerRenderOutput -> HandlerRenderOutput -> HandlerRenderOutput # sconcat :: NonEmpty HandlerRenderOutput -> HandlerRenderOutput # stimes :: Integral b => b -> HandlerRenderOutput -> HandlerRenderOutput # | |
Default HandlerRenderOutput Source # | |
Defined in Potato.Flow.Controller.Handler | |
Eq HandlerRenderOutput Source # | |
Defined in Potato.Flow.Controller.Handler (==) :: HandlerRenderOutput -> HandlerRenderOutput -> Bool # (/=) :: HandlerRenderOutput -> HandlerRenderOutput -> Bool # |
class PotatoHandler h where Source #
pHandlerName :: h -> Text Source #
pHandlerDebugShow :: h -> Text Source #
pHandleMouse :: h -> PotatoHandlerInput -> RelMouseDrag -> Maybe PotatoHandlerOutput Source #
pHandleKeyboard :: h -> PotatoHandlerInput -> KeyboardData -> Maybe PotatoHandlerOutput Source #
pRefreshHandler :: h -> PotatoHandlerInput -> Maybe SomePotatoHandler Source #
pIsHandlerActive :: h -> Bool Source #
pRenderHandler :: h -> PotatoHandlerInput -> HandlerRenderOutput Source #
pRenderLayersHandler :: h -> PotatoHandlerInput -> LayersViewHandlerRenderOutput Source #
pValidateMouse :: h -> RelMouseDrag -> Bool Source #
pHandlerTool :: h -> Maybe Tool Source #
Instances
data SomePotatoHandler Source #
forall h.PotatoHandler h => SomePotatoHandler h |
Instances
captureWithNoChange :: PotatoHandler h => h -> PotatoHandlerOutput Source #
setHandlerOnly :: PotatoHandler h => h -> PotatoHandlerOutput Source #
testHandleMouse :: SomePotatoHandler -> PotatoHandlerInput -> RelMouseDrag -> Maybe PotatoHandlerOutput Source #
data EmptyHandler Source #