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

HTk.Toplevel.HTk

Description

 

Synopsis

Documentation

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.

initHTkSource

Arguments

:: [Config HTk]

the list of configuration options for the wish instance / main window.

-> IO HTk

The wish instance.

Initializes HTk.

withdrawMainWin :: Config HTkSource

Withdraws the main window.

data HTk Source

The HTk datatype - a handle for the wish instance and the main window.

Instances

Eq HTk

Internal.

Destroyable HTk

The wish instance can be destroyed.

Synchronized HTk

You can synchronize on the wish instance.

GUIObject HTk

Internal.

Window HTk

The wish instance is associated with the main window (with various configurations and actions concerning its stacking order, display status, screen, aspect ratio etc.).

Container HTk

The main window is a container for widgets. You can pack widgets to the main window via pack or grid command in the module HTk.Kernel.Packer.

GUIValue v => HasValue HTk v

The wish instance has a value - the application name.

updateAllTasks :: IO ()Source

Updates all tasks.

updateIdleTasks :: IO ()Source

Updates idle tasks.

class Destroyable o => Destructible o where

Methods

destroyed :: o -> Event ()

An event which occurs when the object is destroyed.

class Destroyable o where

Methods

destroy :: o -> IO ()

Destroys an object

Instances

GUIObject a => Destroyable a 
Destroyable ChildProcess 
Destroyable SimpleTool 
Destroyable Wish 
Destroyable Box

A box can be destroyed.

Destroyable Frame

A frame widget can be destroyed.

Destroyable Toplevel

A toplevel widget can be destroyed.

Destroyable BitMap

A bitmap object can be destroyed.

Destroyable Image

An image object can be destroyed.

Destroyable LabelFrame

A labelled frame can be destroyed.

Destroyable NoteBookPage

A notebook page can be destroyed.

Destroyable NoteBook

A notebook widget can be destroyed.

Destroyable Pane

A pane can be destroyed.

Destroyable PanedWindow

A paned window can be destroyed.

Destroyable Menu

A menu can be destroyed.

Destroyable Button

A button widget can be destroyed.

Destroyable ScrollBar

A scrollbar widget can be destroyed.

Destroyable Canvas

A canvas widget can be destroyed.

Destroyable CanvasTag

A canvas tag can be destroyed.

Destroyable Arc

An arc item can be destroyed.

Destroyable BitMapItem

A bitmap item can be destroyed.

Destroyable ImageItem

An image item can be destroyed.

Destroyable Line

A line item can be destroyed.

Destroyable Oval

An oval item can be destroyed.

Destroyable Polygon

An polygon item can be destroyed.

Destroyable Rectangle

A rectangle item can be destroyed.

Destroyable TextItem

A text item can be destroyed.

Destroyable Editor

An editor widget can be destroyed.

Destroyable TextTag

A text tag can be destroyed.

Destroyable Label

A label widget can be destroyed.

Destroyable MenuButton

A menubutton widget can be destroyed.

Destroyable Message

A message widget can be destroyed.

Destroyable Space

A space widget can be destroyed.

Destroyable EmbeddedCanvasWin

An embedded canvas window can be destroyed.

Destroyable EmbeddedTextWin

An embedded text window can be destroyed.

Destroyable HTk

The wish instance can be destroyed.

Destroyable SelectBox

A select box can be destroyed.

Destroyable Separator

A separator can be destroyed.

Destroyable IconBar

An icon bar can be destroyed.

Destroyable SpinButton

A spin button can be destroyed.

Destroyable LogWin

A log window can be destroyed.

Destroyable (CheckButton a)

A checkbutton widget can be destroyed.

Destroyable (Entry a)

An entry field can be destroyed.

Destroyable (ListBox a)

A listbox widget can be destroyed.

GUIValue a => Destroyable (ComboBox a)

A combo box widget can be destroyed.

Destroyable (OptionMenu a)

An option menu can be destroyed.

Destroyable (RadioButton a)

A radiobutton widget can be destroyed.

Destroyable (Scale a)

A scale widget can be destroyed.

Destroyable (ScrollBox a)

A scrollbox can be destroyed.

CItem c => Destroyable (TreeList c)

A tree list can be destroyed.

Destroyable (Notepad a)

A notepad can be destroyed.

Destroyable (NotepadItem a)

A notepad item can be destroyed.

CItem c => Destroyable (GenGUI c)

A GenGUI object can be destroyed.

Destroyable (SimpleListBox val)