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

Safe HaskellNone
LanguageHaskell2010

MiniLight.Component.Button

Documentation

data Button Source #

Constructors

Button 

Fields

Instances
ComponentUnit Button Source # 
Instance details

Defined in MiniLight.Component.Button

Methods

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

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

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

useCache :: Button -> Button -> Bool Source #

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

data Config Source #

Constructors

Config 

Fields

Instances
FromJSON Config Source # 
Instance details

Defined in MiniLight.Component.Button

Methods

parseJSON :: Value -> Parser Config

parseJSONList :: Value -> Parser [Config]