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

Safe HaskellSafe-Infered

Graphics.UI.Sifflet.EditArgsPanel

Description

A panel to be shown on the Function Editor, for adjusting the arguments of the function being edited -- adding and deleting arguments, or modifying their kind (number of inlets, needed for higher order functions)

Synopsis

Documentation

makeEditArgsPanel :: CBMgr -> [ArgSpec] -> ArgSpecAction -> IO EditArgsPanelSource

Create an EditArgsPanel It currently returns a EditArgsPanel object, and you can put the root of it into a container, e.g., set window [containerChild := editArgsPanelRoot panel]

Frame | | +------------------------------+ | | | VBox | | | | +--------------------------+ | | | | | Table (n+2 rows)x(3 cols)| | | | | | +----------------------+ | | | | | | | | | | | | | | | (arguments) | | | | | | | +----------------------+ | | | | | | | | | | | | HButtonBox | | | | | | +----------------------+ | | | | | | | (buttons) | | | | | | | +----------------------+ | | | | | | | | | | | | Label | | | | | | +----------------------+ | | | | | | | (status messages) | | | | | | | +----------------------+ | | | | | +--------------------------+ | | | +------------------------------+ | +----------------------------------+

expandToFit :: (WidgetClass v, WidgetClass w) => v -> w -> IO ()Source

Resize a widget to be at least as big as a(nother) widget. Normally the widget being resized is one that contains the other.