hyperGraphicsF, hyperGraphicsF'

Types

hyperGraphicsF :: (Eq a, Graphic b) => Drawing a b -> F (Either (Drawing a b) (a, Drawing a b)) a
hyperGraphicsF' :: (Eq a, Graphic b) => Bool -> Int -> ColorName -> Drawing a b -> F (Either (Drawing a b) (a, Drawing a b)) a

Synopsis

hyperGraphicsF drawing

Description

hyperGraphicsF allows you to display a composite graphical object (a value of type Drawing) and receive information about which part of the object the user clicks on.

Input

Left drawing replaces the current drawing. Right (lbl,drawing) replaces the part labelled lbl.

Output

lbl when the user clicks on the part labelled lbl.

Arguments

drawing :: Drawing a b
The drawing to display initially.

The additional arguments to hyperGraphicsF' are the border width and background color.

Equalities

hyperGraphicsF = hyperGraphicsF' 1 paperColor

Example

 hyperGraphicsF (vboxD [labelD True (atomicD "Yes"), labelD False (atomicD "No")])

This fudget uses a drawing of type Drawing Bool String and will output True or code{False} when the user clicks on the word Yes or No, respectively.

See Also

The type for composite graphical objects: Drawing.

Other fudgets that display graphics: graphicsF, graphicsDispF, graphicsLabelF.

Other fudgets for selecting among alternatives: pickListF, radioGroupF, menuF.

Bugs

This page documents work progress. Information on this page is subject to change without notice and does not represent a commitment on the part of the Fudgets corporation.