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

Safe HaskellNone
LanguageHaskell2010

MiniLight.Component.Internal.Types

Synopsis

Documentation

data ComponentConfig Source #

Constructors

ComponentConfig 

Fields

Instances
Eq ComponentConfig Source # 
Instance details

Defined in MiniLight.Component.Internal.Types

Show ComponentConfig Source # 
Instance details

Defined in MiniLight.Component.Internal.Types

Generic ComponentConfig Source # 
Instance details

Defined in MiniLight.Component.Internal.Types

Associated Types

type Rep ComponentConfig :: Type -> Type #

ToJSON ComponentConfig Source # 
Instance details

Defined in MiniLight.Component.Internal.Types

FromJSON ComponentConfig Source # 
Instance details

Defined in MiniLight.Component.Internal.Types

type Rep ComponentConfig Source # 
Instance details

Defined in MiniLight.Component.Internal.Types

type Rep ComponentConfig = D1 (MetaData "ComponentConfig" "MiniLight.Component.Internal.Types" "minilight-0.3.0-inplace" False) (C1 (MetaCons "ComponentConfig" PrefixI True) (S1 (MetaSel (Just "name") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "properties") NoSourceUnpackedness NoSourceStrictness DecidedStrict) (Rec0 Value)))

type Resolver Source #

Arguments

 = Text

Component Type

-> Text

UID

-> Value

Component Property

-> MiniLight (Either String Component) 

The type for component resolver

newUID :: MonadIO m => m Text Source #

Generate an unique id.

createComponentBy :: Resolver -> Maybe Text -> ComponentConfig -> MiniLight (Either String Component) Source #

Create a component with given resolver.