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

HTk.Kernel.Core

Contents

Synopsis

Documentation

submodules

tool instance

data GUI Source

Constructors

GUI GUIOBJECT (Ref GST) 

Instances

Widget configuration

enabling / disabling of widgets

class GUIObject w => HasEnable w whereSource

Stateful objects that can be enabled or disabled instantiate the class HasEnable.

Instances

HasEnable MenuCascade

A menu cascade item is a stateful object, it can be enabled or disabled.

HasEnable MenuCheckButton

A menu checkbutton is a stateful object, it can be enabled or disabled.

HasEnable MenuCommand

A menu command is a stateful object, it can be enabled or disabled.

HasEnable MenuRadioButton

A menu radiobutton is a stateful object, it can be enabled or disabled.

HasEnable Button

A button widget is a stateful widget, it can be enabled or disabled.

HasEnable ScrollBar

A scrollbar widget is a stateful widget, it can be enabled or disabled.

HasEnable Canvas

A canvas widget is a stateful widget, it can be enabled or disabled.

HasEnable Editor

A editor widget is a stateful widget, it can be enabled or disabled.

HasEnable MenuButton

A menubutton widget is a stateful widget, it can be enabled or disabled.

HasEnable SelectBox

A select box is a stateful widget, it can be enabled or disabled.

HasEnable IconBar

An icon bar is a stateful widget, it can be enabled or disabled.

HasEnable SpinButton

A spin button is a stateful widget, it can be enabled or disabled.

HasEnable (CheckButton a)

A checkbutton widget is a stateful widget, it can be enabled or disabled.

HasEnable (Entry a)

An entry field is a stateful widget - it can be enabled of disabled.

HasEnable (ListBox a)

A listbox is a stateful widget - it can be enabled or disabled.

GUIValue a => HasEnable (ComboBox a)

A combo box widget is a stateful widget, it can be enabled or disabled.

HasEnable (OptionMenu a)

An option menu is a stateful widget, it can be enabled or disabled.

HasEnable (RadioButton a)

A radiobutton widget is a stateful widget, it can be enabled or disabled.

HasEnable (Scale a)

A scale widget is a stateful widget, it can be enabled or disabled.

HasEnable (InputForm a) 
HasEnable (Prompt a)

A prompt is a stateful component, it can be enabled or disabled.

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

GUIObjects and methods (internal representation of Tk-Widgets)

class GUIObject w whereSource

Methods

toGUIObject :: w -> GUIOBJECTSource

cname :: w -> StringSource

cset :: GUIValue a => w -> ConfigID -> a -> IO wSource

cget :: GUIValue a => w -> ConfigID -> IO aSource

Instances

GUIObject GUIOBJECT 
GUIObject GUI 
GUIObject AbstractWidget 
GUIObject Box

Internal.

GUIObject Frame

Internal.

GUIObject Toplevel

Internal.

GUIObject BitMap

Internal.

GUIObject CurrentFocus

Internal.

GUIObject CurrentGrab

Internal.

GUIObject Image

Internal.

GUIObject LabelFrame

Internal.

GUIObject NoteBookPage

Internal.

GUIObject NoteBook

Internal.

GUIObject Pane

Internal.

GUIObject PanedWindow

Internal.

GUIObject Menu

Internal.

GUIObject MenuCascade

Internal.

GUIObject MenuCheckButton

Internal.

GUIObject MenuCommand

Internal.

GUIObject MenuRadioButton

Internal.

GUIObject MenuSeparator

Internal.

GUIObject Button

Internal.

GUIObject ScrollBar

Internal.

GUIObject Canvas

Internal.

GUIObject CanvasTag

Internal.

GUIObject Arc

Internal.

GUIObject BitMapItem

Internal.

GUIObject ImageItem

Internal.

GUIObject Line

Internal.

GUIObject Oval

Internal.

GUIObject Polygon

Internal.

GUIObject Rectangle

Internal.

GUIObject TextItem

Internal.

GUIObject Editor

Internal.

GUIObject TextTag

Internal.

GUIObject Label

Internal.

GUIObject MenuButton

Internal.

GUIObject Message

Internal.

GUIObject Space

Internal.

GUIObject EmbeddedCanvasWin

Internal.

GUIObject EmbeddedTextWin

Internal.

GUIObject HTk

Internal.

GUIObject SelectBox

Internal.

GUIObject Separator

Internal.

GUIObject IconBar

Internal.

GUIObject SpinButton

Internal.

GUIObject LogWin

Internal.

Window w => GUIObject (Icon w)

Internal.

GUIObject w => GUIObject (ICursor w)

Internal.

GUIObject w => GUIObject (Selection w)

Internal.

GUIObject w => GUIObject (Slider w)

Internal.

HasIndicator w => GUIObject (Indicator w)

Internal.

GUIObject (CheckButton a)

Internal.

GUIObject (Entry a)

Internal.

GUIObject (ListBox a)

Internal.

GUIValue a => GUIObject (ComboBox a)

Internal.

GUIObject (OptionMenu a)

Internal.

GUIObject (RadioButton a)

Internal.

GUIObject (Scale a)

Internal.

GUIObject (Dialog a)

Internal.

GUIObject (ScrollBox a)

Internal.

CItem a => GUIObject (TREELISTOBJECT a) 
CItem c => GUIObject (TreeList c)

Internal.

GUIObject (Notepad a)

Internal.

GUIObject (NotepadItem a)

Internal.

CItem c => GUIObject (GenGUI c)

Internal.

GBObject o => GUIObject (GenericBrowser o)

Internal.

GUIObject (InputForm a)

Internal.

GUIObject (InputWin a)

Internal.

GUIObject (Prompt a)

Internal.

GUIObject (SimpleListBox val) 
GUIObject (RecordField a b) 
GUIObject (EnumField a b) 
GUIObject (TextField a b) 
GUIObject (CheckboxField a b) 
GUIObject (NumEntryField a b) 
GUIObject (EntryField a b) 

newtype ObjectID

Constructors

ObjectID Int 

events

newtype KeySym Source

Constructors

KeySym String 

Instances

bind :: GUIObject wid => wid -> [WishEvent] -> IO (Event EventInfo, IO ())Source

Binds an event for this widget. The second action returned unbinds the event.

bindSimple :: GUIObject wid => wid -> WishEventType -> IO (Event (), IO ())Source

Simple version of bind for only one event and without modifiers.

bindPath :: Widget wid => wid -> [WishEvent] -> IO (Event EventInfo, IO ())Source

Binds an event for this widget and its parent widgets. The second action returned unbinds the event.

bindPathSimple :: Widget wid => wid -> WishEventType -> IO (Event (), IO ())Source

Simple version of bindPath for only one event and without modifiers.

class GUIObject w => HasCommand w whereSource

Methods

clicked :: w -> IO (Event ())Source

Instances

HasCommand MenuCheckButton

When a menu checkbutton is clicked, a corresponding event is invoked.

HasCommand MenuCommand

When a menu command is clicked, a corresponding event is invoked.

HasCommand MenuRadioButton

When a menu radiobutton is clicked, a corresponding event is invoked.

HasCommand Button

When a button is clicked, a corresponding event is invoked.

HasCommand MenuButton

When a menubutton is clicked, a corresponding event is invoked.

HasCommand (CheckButton a)

When a checkbutton is clicked, a corresponding event is invoked.

HasCommand (RadioButton a)

When a radiobutton is clicked, a corresponding event is invoked.

showP :: Show a => a -> String -> StringSource

Tk variables