sifflet-lib-1.1: Library of modules shared by sifflet and its tests and its exporters.

Sifflet.UI.Tool

Synopsis

Documentation

checkMods :: [Modifier] -> [Modifier] -> BoolSource

Check that all required modifiers are in found

showFunctionEntry :: WinId -> CBMgr -> VPUI -> IO VPUISource

Open an entry for user input of function name to select a function tool. Returns unaltered VPUI, for convenience in menus and key callbacks.

showLiteralEntry :: WinId -> CBMgr -> VPUI -> IO VPUISource

Show an entry for input of a literal value. Returns unaltered VPUI, for convenience in menus and key callbacks.

vwAddFrame :: VPUIWindow -> Functoid -> Maybe [Value] -> FrameType -> Env -> Double -> Double -> Double -> Maybe Node -> IO VPUIWindowSource

Add a frame representing a functoid to the canvas of a VPUIWindow (which ought to have a canvas, of course). Otherwise like vcAddFrame.

vpuiAddFrame :: VPUI -> WinId -> Functoid -> Maybe [Value] -> FrameType -> Env -> Double -> Double -> Double -> Maybe Node -> IO VPUISource

Add a frame representing a functoid to the canvas of a particular window, specified by its window id (title).

dumpFrame :: VPUI -> WinId -> CanvFrame -> IO ()Source

For debugging (frame context menu command)

dumpGraph :: VPUI -> WinId -> IO ()Source

For debugging (frame context menu command)

dumpWorkWin :: VPUI -> WinId -> IO ()Source

For debugging the window's widget children

clearFrame :: WinId -> CanvFrame -> VPUI -> IO VPUISource

Clear frame indicated by mouse location

closeFrame :: VPUI -> WinId -> CanvFrame -> IO VPUISource

Close frame (context menu command)