summaryrefslogtreecommitdiff
blob: 073a66f7a05560816e164fa0500898a129752dc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
module Update.SetToolboxShape exposing (apply_to)

-- Local module ----------------------------------------------------------------
import Struct.Event
import Struct.Toolbox
import Struct.Model

--------------------------------------------------------------------------------
-- LOCAL -----------------------------------------------------------------------
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
-- EXPORTED --------------------------------------------------------------------
--------------------------------------------------------------------------------
apply_to : (
      Struct.Model.Type ->
      Struct.Toolbox.Shape ->
      (Struct.Model.Type, (Cmd Struct.Event.Type))
   )
apply_to model shape =
   (
      {model | toolbox = (Struct.Toolbox.set_shape shape model.toolbox)},
      Cmd.none
   )