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

Safe HaskellNone
LanguageHaskell98

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 Source #

Internal.

Methods

(==) :: Menu -> Menu -> Bool #

(/=) :: Menu -> Menu -> Bool #

Destroyable Menu Source #

A menu can be destroyed.

Methods

destroy :: Menu -> IO () #

Synchronized Menu Source #

You can synchronize on a menu object.

Methods

synchronize :: Menu -> IO b -> IO b #

GUIObject Menu Source #

Internal.

HasFont Menu Source #

You can specify the font of a menu.

HasBorder Menu Source #

A menu has a configureable border.

HasColour Menu Source #

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

Widget Menu Source #

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

class GUIObject w => HasMenu w where Source #

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

Methods

menu :: Menu -> Config w Source #

Instances

(Window w, GUIObject w) => HasMenu w Source #

Windows are containers for menus.

Methods

menu :: Menu -> Config w Source #

HasMenu MenuCascade Source #

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

HasMenu MenuButton Source #

A menubutton is a menu container.

createMenu Source #

Arguments

:: GUIObject par 
=> par

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

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

popup Source #

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).

post Source #

Arguments

:: Menu

the menu to post.

-> Position

the position to post the menu at.

-> IO ()

None.

Displays a menu at the specified position.

unpost Source #

Arguments

:: Menu

the menu to unmap.

-> IO ()

None.

Unmaps the menu.