sifflet-2.3.0: Simple, visual, functional language for learning about recursion.

Safe HaskellNone
LanguageHaskell2010

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 EditArgsPanel Source

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.