|  | Source code | Contents | Index

Graphics.UI.ObjectIO.StdMenuDef |

Portability | portable
Stability | provisional
Maintainer | ka2_mail@yahoo.com

Contents

Menus
Menu items
Menu attributes
A visible modules

Description
Definition of Menus and MenuElements:
Synopsis

data Menu m ls ps = Menu Title (m ls ps) [MenuAttribute ls ps]
data PopUpMenu m ls ps = PopUpMenu (m ls ps)
data MenuItem ls ps = MenuItem Title [MenuAttribute ls ps]
data MenuSeparator ls ps = MenuSeparator [MenuAttribute ls ps]
data RadioMenu ls ps = RadioMenu [MenuRadioItem (ls, ps) ps] Index [MenuAttribute ls ps]
type MenuRadioItem st ps = (Title, Maybe Id, Maybe Char, st -> GUI ps st)
data SubMenu m ls ps = SubMenu Title (m ls ps) [MenuAttribute ls ps]

data MenuAttribute ls ps

= MenuId Id
| MenuSelectState SelectState
| MenuIndex Int
| MenuInit (ps -> GUI ps ps)
| MenuFunction (GUIFun ls ps)
| MenuMarkState MarkState
| MenuModsFunction (ModifiersFunction ls ps)
| MenuShortKey Char

module Graphics.UI.ObjectIO.StdGUI
module Graphics.UI.ObjectIO.StdIOCommon

Menus
data Menu m ls ps

The standard menus that are usually placed at the top of the process window and can be selected at any time
Constructors

Menu Title (m ls ps) [MenuAttribute ls ps] |

Instances

MenuElements m => Menus (Menu m)

data PopUpMenu m ls ps

The popup menus can be created and shown at any time as a response to any other event (usually to the click of the right mouse button).
Constructors

PopUpMenu (m ls ps) |

Instances

PopUpMenuElements m => Menus (PopUpMenu m)

Menu items
data MenuItem ls ps

The simple menu item is just an item with a specified title and an event handler which is called when the item is clicked
Constructors

MenuItem Title [MenuAttribute ls ps] |

Instances

MenuElements MenuItem
PopUpMenuElements MenuItem

data MenuSeparator ls ps

The menu separator is nonselectable item which can be used to separate menu items in different groups
Constructors

MenuSeparator [MenuAttribute ls ps] |

Instances

MenuElements MenuSeparator
PopUpMenuElements MenuSeparator

data RadioMenu ls ps

The radio menu is a group of items which can be used as RadioControl
Constructors

RadioMenu [MenuRadioItem (ls, ps) ps] Index [MenuAttribute ls ps] |

Instances

MenuElements RadioMenu
PopUpMenuElements RadioMenu

type MenuRadioItem st ps = (Title, Maybe Id, Maybe Char, st -> GUI ps st)
data SubMenu m ls ps

The sub menu item is an item which shows a sub menu when the user selects it.
Constructors

SubMenu Title (m ls ps) [MenuAttribute ls ps] |

Instances

MenuElements m => MenuElements (SubMenu m)

Menu attributes
data MenuAttribute ls ps

Constructors

MenuId Id |
MenuSelectState SelectState |
MenuIndex Int |
MenuInit (ps -> GUI ps ps) |
MenuFunction (GUIFun ls ps) |
MenuMarkState MarkState |
MenuModsFunction (ModifiersFunction ls ps) |
MenuShortKey Char |

A visible modules
module Graphics.UI.ObjectIO.StdGUI
module Graphics.UI.ObjectIO.StdIOCommon
Produced by Haddock version 0.8