minilight-0.5.0: A SDL2-based graphics library, batteries-included.
Safe HaskellNone
LanguageHaskell2010

Data.Component.Button

Documentation

data Button Source #

Constructors

Button 

Fields

Instances

Instances details
ComponentUnit Button Source # 
Instance details

Defined in Data.Component.Button

Methods

update :: forall env (m :: Type -> Type). (HasLightEnv env, HasLoopEnv env, HasComponentEnv env, MonadIO m, MonadMask m) => Button -> LightT env m Button Source #

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

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

onSignal :: forall env (m :: Type -> Type). (HasLightEnv env, HasLoopEnv env, HasComponentEnv env, MonadIO m, MonadMask m) => Event -> Button -> LightT env m Button Source #

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

beforeClearCache :: forall env (m :: Type -> Type). (HasLightEnv env, MonadIO m, MonadMask m) => Button -> [Figure] -> LightT env m () Source #

data ButtonEvent Source #

Constructors

Click 

Instances

Instances details
EventType ButtonEvent Source # 
Instance details

Defined in Data.Component.Button

data Config Source #

Constructors

Config 

Instances

Instances details
FromJSON Config Source # 
Instance details

Defined in Data.Component.Button