|
|
|
|
Synopsis |
|
|
|
Documentation |
|
|
VPUI: Sifflet (formerly VisiProg) User Interface
The initialEnv is apt to contain builtin functions;
it's preserved here so that when writing to a file,
we can skip the functions that were in the initial env.
| Constructors | VPUI | | vpuiWindows :: Map WinId VPUIWindow | all the windows of the program
| vpuiToolkits :: [(String, VPToolkit)] | ordered association list,
collections of tools
| vpuiFilePath :: Maybe FilePath | the file opened or to save
| vpuiStyle :: Style | for windows, canvases, editors
| vpuiInitialEnv :: Env | initial value of global environment
| vpuiGlobalEnv :: Env | the global environment
| vpuiFileEnv :: Env | global env as of last file open or save,
used to detect unsaved changes
|
|
|
|
|
|
|
|
|
|
|
Tell whether the global environmkent has changed since the
last file open or save
|
|
|
Extract from the environment the part defined by the user
But you probably want to use Sifflet.UI.Window.UserFunctions
instead of this.
|
|
Operations on a VPUI involving its window
|
|
|
Insert a window in the window map
|
|
|
Try to get the VPUIWindow with the given window ID,
return Just result or Nothing
|
|
|
Get the VPUIWindow with the given window ID;
it is an error if this fails.
|
|
|
Apply an update function to a VPUIWindow with given window ID;
it is an error if this fails.
|
|
|
Replace a VPUIWindow with given window ID;
it is an error if this fails.
|
|
|
Apply an update IO action to a VPUIWindow with given window ID;
it is an error if this fails.
|
|
|
Remove a window from the windows map; it has already been destroyed
in the GUI
|
|
Operations on a window involving its canvas
|
|
|
Try to find canvas; fail gracefully
|
|
|
Find canvas or fail dramatically
|
|
|
|
|
|
|
|
Operation on a VPUI involving the canvas of its window
|
|
|
Update the canvas of the specified window, without IO
|
|
|
Update the canvas of the specified window, with IO
|
|
Other operations on a window
|
|
|
|
|
Toolkit functions are organized in groups (rows) for presentation
in a toolbox
| Constructors | |
|
|
|
A Toolbox is a framed VBox with a set of Toolbars attached
| Constructors | |
|
|
|
|
|
|
ToolContext: The way a tool should be applied depends on
where it is being used
| Constructors | |
|
|
|
|
|
ToolOp a is intended for a = VPUIWindow or VCanvas
type ToolOp a
= VPUI -> a -> ToolContext -> [Modifier] -> Double -> Double -> IO a
|
|
|
A helper for making toolOps from actions on VCanvas
|
|
|
|
|
|
|
|
|
|
|
A canvas that can display multiple boxes representing
expressions or function definitions or calls
| Constructors | |
|
|
|
Constructors | SelectionNode | | | SelectionInlet | | | SelectionOutlet | | |
| Instances | |
|
|
|
A Dragging keeps track of the object (node) being dragged
and the current mouse position.
| Constructors | | Instances | |
|
|
Produced by Haddock version 2.6.1 |