Module

Graphics.Glapple.Hooks.UseRunner

Package
purescript-glappleDEPRECATED
Repository
yukikurage/purescript-glapple

#useChildRunner Source

useChildRunner :: forall props sprite a. Component props sprite a -> Hooks sprite { destroy :: Effect Unit, run :: props -> Effect a, size :: Effect Int }

子コンポーネントを生成 子コンポーネントのTransformは親のTransformが基準になる

#useChildRunnerNow Source

useChildRunnerNow :: forall props sprite a. Component props sprite a -> props -> Hooks sprite a

#useRunner Source

useRunner :: forall props sprite a. Component props sprite a -> Hooks sprite { destroy :: Effect Unit, run :: props -> Effect a, size :: Effect Int }

コンポーネントを生成

#useRunnerNow Source

useRunnerNow :: forall props sprite a. Component props sprite a -> props -> Hooks sprite a