minilight-0.1.0: A SDL2-based graphics library, batteries-included.

Safe HaskellNone
LanguageHaskell2010

MiniLight.Component.Layer

Documentation

data Layer Source #

Constructors

Layer 

Fields

Instances
ComponentUnit Layer Source # 
Instance details

Defined in MiniLight.Component.Layer

Methods

update :: (HasLightEnv env, MonadIO m, MonadMask m) => Layer -> LightT env m Layer Source #

figures :: (HasLightEnv env, MonadIO m, MonadMask m) => Layer -> LightT env m [Figure] Source #

draw :: (HasLightEnv env, MonadIO m, MonadMask m) => Layer -> LightT env m () Source #

useCache :: Layer -> Layer -> Bool Source #

onSignal :: (HasLightEnv env, MonadIO m, MonadMask m) => Event -> Layer -> LightT env m Layer Source #

data Config Source #

Constructors

Config 

Fields

Instances
FromJSON Config Source # 
Instance details

Defined in MiniLight.Component.Layer

Methods

parseJSON :: Value -> Parser Config

parseJSONList :: Value -> Parser [Config]