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

HTk.Menuitems.MenuItem

Description

The module MenuItem exports general resources for menu items.

Synopsis

Documentation

class GUIObject w => MenuItem w Source

Menu items instantiate the abstract class MenuItem.

Instances

MenuItem MenuCascade

A menu cascade item is a menu item (any menu item instantiates the abstract class MenuItem).

MenuItem MenuCheckButton

A menu checkbutton is a menu item (any menu item instantiates the abstract class MenuItem).

MenuItem MenuCommand

A menu command is a menu item (any menu item instantiates the abstract class MenuItem).

MenuItem MenuRadioButton

A menu radiobutton is a menu item (any menu item instantiates the abstract class MenuItem).

MenuItem MenuSeparator

A menu separator is a menu item (any menu item instantiates the abstract class MenuItem).

createMenuItem :: MenuItem w => Menu -> MenuItemKind -> (GUIOBJECT -> w) -> [Config w] -> IO wSource

Internal.

class GUIObject w => HasColour w whereSource

Coloured objects instantiate the class HasColour.

Instances

HasColour Box

A box has a configureable background colour.

HasColour Frame

A frame widget has a background colour.

HasColour BitMap

A bitmap object has a configureable foreground and background colour (if implicitely displayed inside a label widget).

HasColour Image

An image object has a configureable foreground and background colour (if implicitely displayed inside a label widget).

HasColour LabelFrame

A labelled frame has a background colour.

HasColour NoteBookPage

A notebook page has a background colour.

HasColour Pane

A pane has a background colour.

HasColour Menu

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

HasColour MenuCascade

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

HasColour MenuCheckButton

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

HasColour MenuCommand

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

HasColour MenuRadioButton

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

HasColour Button

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

HasColour ScrollBar

A scrollbar widget has a background and activebackground (regarding slider) colour.

HasColour Canvas

A canvas widget has a foreground and background colour.

HasColour Editor

An editor widget has a foreground and background colour.

HasColour TextTag

A text tag has a configureable foregroud and background colour.

HasColour Label

A label widget has a foreground and background colour.

HasColour MenuButton

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

HasColour Message

A message widget has a foreground and background colour.

HasColour Space

A space widget has a configureable background colour.

HasColour SelectBox

A select box has a configureable foreground and background colour.

HasColour IconBar

An icon bar has a configureable foreground and background colour.

HasColour SpinButton

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

(HasInsertionCursor w, Widget w) => HasColour (ICursor w)

The insertion cursor has a configureable colour.

(HasSelection w, Widget w) => HasColour (Selection w)

The selected entries have a configureable foreground and background colour.

(HasSlider w, GUIObject w) => HasColour (Slider w)

The slider component has a configureable foreground and background colour.

(HasIndicator w, SelectButton w) => HasColour (Indicator w)

You can specify the colour for the selector of menu checkbuttons and menu radiobuttons.

HasColour (CheckButton a)

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

HasColour (Entry a)

An entry field has a foreground and background colour.

HasColour (ListBox a)

A listbox widget has a foreground and background colour.

GUIValue a => HasColour (ComboBox a)

A combo box widget has a background colour.

HasColour (OptionMenu a)

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

HasColour (RadioButton a)

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

HasColour (Scale a)

A scale widget has a configureable foreground, background and activebackground colour.

(HasColour a, HasScroller a) => HasColour (ScrollBox a)

A scrollbox has a configureable foreground and background colour.

CItem c => HasColour (TreeList c)

A tree list has a configureale background colour.

HasColour (Notepad a)

A notepad has a configureable background colour.

HasColour (InputForm a) 
HasColour (Prompt a)

A prompt has a configureable foreground and background colour.

HasColour (RecordField a b) 
HasColour (EnumField a b) 
HasColour (TextField a b) 
HasColour (CheckboxField a b) 
HasColour (NumEntryField a b) 
HasColour (EntryField a b) 

class GUIObject w => HasPhoto w whereSource

Image containers instantiate the class HasPhoto.

Instances

HasPhoto MenuCascade

A menu cascade item can contain an image (instead of text or a bitmap).

HasPhoto MenuCheckButton

A menu checkbutton can contain an image (instead of text or a bitmap).

HasPhoto MenuCommand

A menu command can contain an image (instead of text or a bitmap).

HasPhoto MenuRadioButton

You can specify the size of a menu radiobutton.

HasPhoto Button

A button can contain an image.

HasPhoto ImageItem

An image item is a container for an image object.

HasPhoto Label

A label can contain an image.

HasPhoto MenuButton

A menubutton can contain an image.

(HasIndicator w, SelectButton w) => HasPhoto (Indicator w)

You can specify specify an alternate image for the selector of menu checkbuttons and menu radiobuttons.

HasPhoto (CheckButton a)

A checkbutton can contain an image.

HasPhoto (RadioButton a)

A radiobutton can contain an image.

HasPhoto (Dialog a)

A dialog can have an image

CItem a => HasPhoto (TREELISTOBJECT a) 

class ButtonWidget w => SelectButton w whereSource

A select button can be selected or not selected.

class SelectButton w => ToggleButton w whereSource

The state of a ToggleButton can be toggled.

Methods

toggleButton :: w -> IO ()Source

class GUIObject w => HasAccelerator w whereSource

Menu items can have an optional text to display as a reminder about a keystroke binding.

Instances

HasAccelerator MenuCascade

A menu cascade item has an optional text to display as a reminder about a keystroke binding.

HasAccelerator MenuCheckButton

A menu checkbutton has an optional text to display as a reminder about a keystroke binding.

HasAccelerator MenuCommand

A menu command has an optional text to display as a reminder about a keystroke binding.

HasAccelerator MenuRadioButton

A menu radiobutton has an optional text to display as a reminder about a keystroke binding.

buttonColours :: HasColour w => w -> ConfigID -> BoolSource

Internal.