Module Simantics/Action

This module is undocumented. This is a list of its definitions.

instantiateUnderAction :: Variable -> Resource -> <Proc> ()

The implementation of the modelled MOD.InstantiateUnder action. The first argument is the variable of the action property, whose parent resource names the type to instantiate through its MOD.InstantiateUnder.HasType relation; the second is the resource the instance is created under. The instantiation is done in a write transaction by the instantiateUnder method of that type.

setDragText :: String -> <SimanticsActionContext,Proc> ()

Sets the text that the drag started by the action being performed carries. Does nothing when the action was not started by a drag.