-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A binding library of minilight for Lua langauge. -- -- This library provides a way to write minilight component in Lua -- language. @package minilight-lua @version 0.2.1.0 module Data.Cache newtype CacheRegistry v CacheRegistry :: IORef (Map Text v) -> CacheRegistry v [getCacheRegistry] :: CacheRegistry v -> IORef (Map Text v) new :: MonadIO m => m (CacheRegistry v) size :: MonadIO m => CacheRegistry v -> m Int register :: MonadIO m => Text -> v -> CacheRegistry v -> m () lookup :: MonadIO m => Text -> CacheRegistry v -> m (Maybe v) clear :: MonadIO m => CacheRegistry v -> m (Map Text v) getOrCreate :: MonadIO m => (Text -> m v) -> Text -> CacheRegistry v -> m v clearAll :: MonadIO m => (v -> m ()) -> CacheRegistry v -> m () module MiniLight.FigureDSL data FigureDSL Empty :: FigureDSL Translate :: V2 Int -> FigureDSL -> FigureDSL Clip :: V2 Int -> V2 Int -> FigureDSL -> FigureDSL Picture :: FilePath -> FigureDSL Text :: V4 Word8 -> Text -> FigureDSL construct :: CacheRegistry Font -> CacheRegistry Figure -> FigureDSL -> MiniLight (Maybe Figure) instance GHC.Read.Read MiniLight.FigureDSL.FigureDSL instance GHC.Show.Show MiniLight.FigureDSL.FigureDSL instance Foreign.Lua.Types.Peekable.Peekable MiniLight.FigureDSL.FigureDSL instance Foreign.Lua.Types.Pushable.Pushable MiniLight.FigureDSL.FigureDSL module Paths_minilight_lua version :: Version getBinDir :: IO FilePath getLibDir :: IO FilePath getDynLibDir :: IO FilePath getDataDir :: IO FilePath getLibexecDir :: IO FilePath getDataFileName :: FilePath -> IO FilePath getSysconfDir :: IO FilePath module MiniLight.Lua data LuaValue LuaNil :: LuaValue LuaBoolean :: Bool -> LuaValue LuaString :: Text -> LuaValue LuaNumber :: Double -> LuaValue LuaTable :: Table -> LuaValue newtype Table Table :: [(LuaValue, LuaValue)] -> Table data LuaComponentState LuaComponentState :: IORef (V2 Int) -> IORef Bool -> IORef Bool -> CacheRegistry Figure -> CacheRegistry Font -> State -> IORef (Map String (Ptr Double)) -> IORef (Map String (Ptr Bool)) -> IORef (Map String (Ptr CString)) -> IORef (Map String (Ptr CString)) -> IORef UnixTime -> LuaComponentState [mousePosition] :: LuaComponentState -> IORef (V2 Int) [mousePressed] :: LuaComponentState -> IORef Bool [mouseReleased] :: LuaComponentState -> IORef Bool [figCache] :: LuaComponentState -> CacheRegistry Figure [ttfCache] :: LuaComponentState -> CacheRegistry Font [luaState] :: LuaComponentState -> State [numberStates] :: LuaComponentState -> IORef (Map String (Ptr Double)) [boolStates] :: LuaComponentState -> IORef (Map String (Ptr Bool)) [stringStates] :: LuaComponentState -> IORef (Map String (Ptr CString)) [tableStates] :: LuaComponentState -> IORef (Map String (Ptr CString)) [updatedAtRef] :: LuaComponentState -> IORef UnixTime data LuaComponent LuaComponent :: String -> LuaComponentState -> UnixTime -> Int -> LuaComponent [expr] :: LuaComponent -> String [state] :: LuaComponent -> LuaComponentState [updatedAt] :: LuaComponent -> UnixTime [counter] :: LuaComponent -> Int data LuaComponentEvent SetExpr :: String -> LuaComponentEvent newLuaComponent :: IO LuaComponent evalLuaComponent :: (HasLightEnv env, MonadIO m, MonadMask m) => String -> LuaComponentState -> LightT env m [Figure] reload :: (HasLoaderEnv env, HasLightEnv env, HasLoopEnv env, MonadIO m, MonadMask m) => Text -> LightT env m () loadLib :: LuaComponentState -> Lua () instance GHC.Show.Show MiniLight.Lua.LuaValue instance GHC.Read.Read MiniLight.Lua.LuaValue instance GHC.Show.Show MiniLight.Lua.Table instance GHC.Read.Read MiniLight.Lua.Table instance MiniLight.Event.EventType MiniLight.Lua.LuaComponentEvent instance MiniLight.Component.ComponentUnit MiniLight.Lua.LuaComponent instance Foreign.Lua.Types.Peekable.Peekable MiniLight.Lua.LuaValue instance Foreign.Lua.Types.Pushable.Pushable MiniLight.Lua.LuaValue instance Foreign.Lua.Types.Peekable.Peekable MiniLight.Lua.Table instance Foreign.Lua.Types.Pushable.Pushable MiniLight.Lua.Table