uni-htk-2.2.1.3: Graphical User Interface for Haskell Programs

Safe HaskellNone
LanguageHaskell98

HTk.Toolkit.HTkMenu

Description

HTkMenu is a user-friendly interface to HTk's menu operations, which compiles a version of MenuType.MenuPrim to an HTk menu.

Synopsis

Documentation

newtype HTkMenu value Source #

Describes a menu to be compiled. The value identifies the buttons in the menu so the client can tell which was clicked. The String is a title which is given to menu cascades.

Constructors

HTkMenu (MenuPrim String value) 

compileHTkMenu :: Container parent => parent -> HTkMenu value -> IO (MenuButton, Event value) Source #

compileHTkMenu compiles a menu to a MenuButton. It does not display it; the caller should pack the MenuButton in the parent with whatever options are desired.