Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data LuaComponentState Source #
LuaComponentState | |
|
data LuaComponent Source #
Instances
ComponentUnit LuaComponent Source # | |
Defined in MiniLight.Lua update :: forall env (m :: Type -> Type). (HasLightEnv env, HasLoopEnv env, HasComponentEnv env, MonadIO m, MonadMask m) => LuaComponent -> LightT env m LuaComponent # figures :: forall env (m :: Type -> Type). (HasLightEnv env, MonadIO m, MonadMask m) => LuaComponent -> LightT env m [Figure] # draw :: forall env (m :: Type -> Type). (HasLightEnv env, MonadIO m, MonadMask m) => LuaComponent -> LightT env m () # onSignal :: forall env (m :: Type -> Type). (HasLightEnv env, HasLoopEnv env, HasComponentEnv env, MonadIO m, MonadMask m) => Event -> LuaComponent -> LightT env m LuaComponent # useCache :: LuaComponent -> LuaComponent -> Bool # beforeClearCache :: forall env (m :: Type -> Type). (HasLightEnv env, MonadIO m, MonadMask m) => LuaComponent -> [Figure] -> LightT env m () # |
data LuaComponentEvent Source #
Instances
EventType LuaComponentEvent Source # | |
Defined in MiniLight.Lua |
evalLuaComponent :: (HasLightEnv env, MonadIO m, MonadMask m) => String -> LuaComponentState -> LightT env m [Figure] Source #
reload :: (HasLoaderEnv env, HasLightEnv env, HasLoopEnv env, MonadIO m, MonadMask m) => Text -> LightT env m () Source #
loadLib :: LuaComponentState -> Lua () Source #