Safe Haskell | None |
---|---|
Language | Haskell98 |
HTkMenu is a user-friendly interface to HTk's menu operations, which compiles a version of MenuType.MenuPrim to an HTk menu.
- newtype HTkMenu value = HTkMenu (MenuPrim String value)
- compileHTkMenu :: Container parent => parent -> HTkMenu value -> IO (MenuButton, Event value)
Documentation
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.
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.