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

Safe HaskellNone
LanguageHaskell98

HTk.Kernel.Core

Contents

Synopsis

Documentation

submodules

tool instance

data GUI Source #

Constructors

GUI GUIOBJECT (Ref GST) 

Widget configuration

enabling / disabling of widgets

class GUIObject w => HasEnable w where Source #

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

Instances

HasEnable ScrollBar Source #

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

HasEnable Canvas Source #

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

HasEnable Editor Source #

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

HasEnable MenuCascade Source #

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

HasEnable MenuCheckButton Source #

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

HasEnable MenuCommand Source #

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

HasEnable MenuRadioButton Source #

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

HasEnable Button Source #

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

HasEnable MenuButton Source #

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

HasEnable IconBar Source #

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

HasEnable SelectBox Source #

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

HasEnable SpinButton Source #

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

HasEnable (Scale a) Source #

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

HasEnable (ListBox a) Source #

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

HasEnable (OptionMenu a) Source #

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

HasEnable (Entry a) Source #

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

GUIValue a => HasEnable (ComboBox a) Source #

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

HasEnable (CheckButton a) Source #

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

HasEnable (RadioButton a) Source #

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

HasEnable (Prompt a) Source #

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

HasEnable (InputForm a) Source # 
HasEnable (RecordField a b) Source # 
HasEnable (EnumField a b) Source # 
HasEnable (TextField a b) Source # 
HasEnable (CheckboxField a b) Source # 
HasEnable (NumEntryField a b) Source # 
HasEnable (EntryField a b) Source # 

GUIObjects and methods (internal representation of Tk-Widgets)

class GUIObject w where Source #

Minimal complete definition

toGUIObject, cname

Methods

toGUIObject :: w -> GUIOBJECT Source #

cname :: w -> String Source #

cset :: GUIValue a => w -> ConfigID -> a -> IO w Source #

cget :: GUIValue a => w -> ConfigID -> IO a Source #

Instances

GUIObject GUI Source # 
GUIObject AbstractWidget Source # 
GUIObject LabelFrame Source #

Internal.

GUIObject NoteBookPage Source #

Internal.

GUIObject NoteBook Source #

Internal.

GUIObject Pane Source #

Internal.

GUIObject PanedWindow Source #

Internal.

GUIObject Message Source #

Internal.

GUIObject Menu Source #

Internal.

GUIObject Toplevel Source #

Internal.

GUIObject Frame Source #

Internal.

GUIObject Space Source #

Internal.

GUIObject Box Source #

Internal.

GUIObject ScrollBar Source #

Internal.

GUIObject Canvas Source #

Internal.

GUIObject Image Source #

Internal.

GUIObject MenuSeparator Source #

Internal.

GUIObject Editor Source #

Internal.

GUIObject EmbeddedTextWin Source #

Internal.

GUIObject CurrentFocus Source #

Internal.

GUIObject CurrentGrab Source #

Internal.

GUIObject BitMap Source #

Internal.

GUIObject MenuCascade Source #

Internal.

GUIObject MenuCheckButton Source #

Internal.

GUIObject MenuCommand Source #

Internal.

GUIObject MenuRadioButton Source #

Internal.

GUIObject TextTag Source #

Internal.

GUIObject Button Source #

Internal.

GUIObject Label Source #

Internal.

GUIObject MenuButton Source #

Internal.

GUIObject CanvasTag Source #

Internal.

GUIObject EmbeddedCanvasWin Source #

Internal.

GUIObject ImageItem Source #

Internal.

GUIObject Line Source #

Internal.

GUIObject Oval Source #

Internal.

GUIObject Polygon Source #

Internal.

GUIObject Rectangle Source #

Internal.

GUIObject TextItem Source #

Internal.

GUIObject BitMapItem Source #

Internal.

GUIObject Arc Source #

Internal.

GUIObject HTk Source #

Internal.

GUIObject IconBar Source #

Internal.

GUIObject LogWin Source #

Internal.

GUIObject SelectBox Source #

Internal.

GUIObject Separator Source #

Internal.

GUIObject SpinButton Source #

Internal.

GUIObject w => GUIObject (Slider w) Source #

Internal.

GUIObject (Scale a) Source #

Internal.

Methods

toGUIObject :: Scale a -> GUIOBJECT Source #

cname :: Scale a -> String Source #

cset :: GUIValue a => Scale a -> ConfigID -> a -> IO (Scale a) Source #

cget :: GUIValue a => Scale a -> ConfigID -> IO a Source #

GUIObject w => GUIObject (Selection w) Source #

Internal.

GUIObject (ListBox a) Source #

Internal.

HasIndicator w => GUIObject (Indicator w) Source #

Internal.

GUIObject (OptionMenu a) Source #

Internal.

GUIObject w => GUIObject (ICursor w) Source #

Internal.

GUIObject (Entry a) Source #

Internal.

Methods

toGUIObject :: Entry a -> GUIOBJECT Source #

cname :: Entry a -> String Source #

cset :: GUIValue a => Entry a -> ConfigID -> a -> IO (Entry a) Source #

cget :: GUIValue a => Entry a -> ConfigID -> IO a Source #

GUIValue a => GUIObject (ComboBox a) Source #

Internal.

Window w => GUIObject (Icon w) Source #

Internal.

Methods

toGUIObject :: Icon w -> GUIOBJECT Source #

cname :: Icon w -> String Source #

cset :: GUIValue a => Icon w -> ConfigID -> a -> IO (Icon w) Source #

cget :: GUIValue a => Icon w -> ConfigID -> IO a Source #

GUIObject (CheckButton a) Source #

Internal.

GUIObject (RadioButton a) Source #

Internal.

GUIObject (Prompt a) Source #

Internal.

GUIObject (ScrollBox a) Source #

Internal.

GUIObject (Notepad a) Source #

Internal.

GUIObject (NotepadItem a) Source #

Internal.

GUIObject (Dialog a) Source #

Internal.

GUIObject (SimpleListBox val) Source # 
GUIObject (InputForm a) Source #

Internal.

GUIObject (InputWin a) Source #

Internal.

CItem c => GUIObject (TreeList c) Source #

Internal.

CItem c => GUIObject (GenGUI c) Source #

Internal.

GBObject o => GUIObject (GenericBrowser o) Source #

Internal.

GUIObject (RecordField a b) Source # 
GUIObject (EnumField a b) Source # 
GUIObject (TextField a b) Source # 
GUIObject (CheckboxField a b) Source # 
GUIObject (NumEntryField a b) Source # 
GUIObject (EntryField a b) Source # 

class Object o where #

Minimal complete definition

objectID

Methods

objectID :: o -> ObjectID #

events

newtype KeySym Source #

Constructors

KeySym String 

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

Methods

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

Instances

HasCommand MenuCheckButton Source #

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

HasCommand MenuCommand Source #

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

Methods

clicked :: MenuCommand -> IO (Event ()) Source #

HasCommand MenuRadioButton Source #

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

HasCommand Button Source #

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

Methods

clicked :: Button -> IO (Event ()) Source #

HasCommand MenuButton Source #

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

Methods

clicked :: MenuButton -> IO (Event ()) Source #

HasCommand (CheckButton a) Source #

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

Methods

clicked :: CheckButton a -> IO (Event ()) Source #

HasCommand (RadioButton a) Source #

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

Methods

clicked :: RadioButton a -> IO (Event ()) Source #

showP :: Show a => a -> String -> String Source #

Tk variables

Orphan instances