hyperGraphicsF :: (Eq a, Graphic b) => Drawing a b -> F (Either (Drawing a b) (a, Drawing a b)) a hyperGraphicsF' :: (Eq a, Graphic b) => (GraphicsF (Drawing a b) -> GraphicsF (Drawing a b)) -> Drawing a b -> F (Either (Drawing a b) (a, Drawing a b)) a
hyperGraphicsFallows 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.
Left drawingreplaces the current drawing.
Right (lbl,drawing)replaces the part labelled
lbl, including the label.
lblwhen the user clicks on the part labelled
drawing :: Drawing a b
hyperGraphicsF (vboxD [labelD True (atomicD "Yes"), labelD False (atomicD "No")])
This fudget uses a drawing of type
Drawing Bool String and will output
False when the user clicks on the word Yes or No,
Other fudgets that display graphics: graphicsF, displayF, labelF.
Other fudgets for selecting among alternatives: pickListF, radioGroupF, menuF.
Fudgets that display text: moreF et al.