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

HTk.Menuitems.Menu

Description

HTk's menus. A Menu is a container for menu structures.

Synopsis

Documentation

data Menu Source

The Menu datatype.

Constructors

Menu GUIOBJECT (Ref Int) 

Instances

Eq Menu

Internal.

Destroyable Menu

A menu can be destroyed.

Synchronized Menu

You can synchronize on a menu object.

GUIObject Menu

Internal.

HasFont Menu

You can specify the font of a menu.

HasBorder Menu

A menu has a configureable border.

HasColour Menu

A menu has a normal foreground and background colour and an active/disabled foreground and background colour.

Widget Menu

A menu has standard widget properties (concerning focus, cursor).

class GUIObject w => HasMenu w whereSource

Containers for menus (toplevel windows and menubuttons) instantiate the class HasMenu.

Methods

menu :: Menu -> Config wSource

Instances

Window w => HasMenu w

Windows are containers for menus.

HasMenu MenuCascade

A MenuCascade item is a container for a sub-menu.

HasMenu MenuButton

A menubutton is a menu container.

createMenuSource

Arguments

:: GUIObject par 
=> par

tearoff. If True, means menu will be displayed in a separate top-level window.

-> Bool 
-> [Config Menu] 
-> IO Menu 

popupSource

Arguments

:: GUIObject i 
=> Menu

The menu to post.

-> Position

The position to pop-up.

-> Maybe i

An optional entry to activate when the menu pops-up.

-> IO ()

None.

Posts a menu (e.g. in respose of a keystroke or mousebutton press).

postSource

Arguments

:: Menu

the menu to post.

-> Position

the position to post the menu at.

-> IO ()

None.

Displays a menu at the specified position.

unpostSource

Arguments

:: Menu

the menu to unmap.

-> IO ()

None.

Unmaps the menu.