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

Safe HaskellNone
LanguageHaskell98

HTk.Toplevel.HTk

Description

 

Synopsis

Documentation

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 #

delayWish :: IO a -> IO a Source #

initHTk Source #

Arguments

:: [Config HTk]

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

-> IO HTk

The wish instance.

Initializes HTk.

withdrawMainWin :: Config HTk Source #

Withdraws the main window.

data HTk Source #

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

Instances

Eq HTk Source #

Internal.

Methods

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

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

Destroyable HTk Source #

The wish instance can be destroyed.

Methods

destroy :: HTk -> IO () #

Synchronized HTk Source #

You can synchronize on the wish instance.

Methods

synchronize :: HTk -> IO b -> IO b #

GUIObject HTk Source #

Internal.

Container HTk Source #

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.

Window HTk Source #

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

GUIValue v => HasValue HTk v Source #

The wish instance has a value - the application name.

Methods

value :: v -> Config HTk Source #

getValue :: HTk -> IO v Source #

updateAllTasks :: IO () Source #

Updates all tasks.

updateIdleTasks :: IO () Source #

Updates idle tasks.

class Destroyable o => Destructible o where #

Minimal complete definition

destroyed

Methods

destroyed :: o -> Event () #

An event which occurs when the object is destroyed.

class Destroyable o where #

Minimal complete definition

destroy

Methods

destroy :: o -> IO () #

Destroys an object

Instances

Destroyable ChildProcess 

Methods

destroy :: ChildProcess -> IO () #

Destroyable SimpleTool 

Methods

destroy :: SimpleTool -> IO () #

Destroyable Wish # 

Methods

destroy :: Wish -> IO () #

Destroyable LabelFrame #

A labelled frame can be destroyed.

Methods

destroy :: LabelFrame -> IO () #

Destroyable NoteBookPage #

A notebook page can be destroyed.

Methods

destroy :: NoteBookPage -> IO () #

Destroyable NoteBook #

A notebook widget can be destroyed.

Methods

destroy :: NoteBook -> IO () #

Destroyable Pane #

A pane can be destroyed.

Methods

destroy :: Pane -> IO () #

Destroyable PanedWindow #

A paned window can be destroyed.

Methods

destroy :: PanedWindow -> IO () #

Destroyable Message #

A message widget can be destroyed.

Methods

destroy :: Message -> IO () #

Destroyable Menu #

A menu can be destroyed.

Methods

destroy :: Menu -> IO () #

Destroyable Toplevel #

A toplevel widget can be destroyed.

Methods

destroy :: Toplevel -> IO () #

Destroyable Frame #

A frame widget can be destroyed.

Methods

destroy :: Frame -> IO () #

Destroyable Space #

A space widget can be destroyed.

Methods

destroy :: Space -> IO () #

Destroyable Box #

A box can be destroyed.

Methods

destroy :: Box -> IO () #

Destroyable ScrollBar #

A scrollbar widget can be destroyed.

Methods

destroy :: ScrollBar -> IO () #

Destroyable Canvas #

A canvas widget can be destroyed.

Methods

destroy :: Canvas -> IO () #

Destroyable Image #

An image object can be destroyed.

Methods

destroy :: Image -> IO () #

Destroyable Editor #

An editor widget can be destroyed.

Methods

destroy :: Editor -> IO () #

Destroyable EmbeddedTextWin #

An embedded text window can be destroyed.

Methods

destroy :: EmbeddedTextWin -> IO () #

Destroyable BitMap #

A bitmap object can be destroyed.

Methods

destroy :: BitMap -> IO () #

Destroyable TextTag #

A text tag can be destroyed.

Methods

destroy :: TextTag -> IO () #

Destroyable Button #

A button widget can be destroyed.

Methods

destroy :: Button -> IO () #

Destroyable Label #

A label widget can be destroyed.

Methods

destroy :: Label -> IO () #

Destroyable MenuButton #

A menubutton widget can be destroyed.

Methods

destroy :: MenuButton -> IO () #

Destroyable CanvasTag #

A canvas tag can be destroyed.

Methods

destroy :: CanvasTag -> IO () #

Destroyable EmbeddedCanvasWin #

An embedded canvas window can be destroyed.

Methods

destroy :: EmbeddedCanvasWin -> IO () #

Destroyable ImageItem #

An image item can be destroyed.

Methods

destroy :: ImageItem -> IO () #

Destroyable Line #

A line item can be destroyed.

Methods

destroy :: Line -> IO () #

Destroyable Oval #

An oval item can be destroyed.

Methods

destroy :: Oval -> IO () #

Destroyable Polygon #

An polygon item can be destroyed.

Methods

destroy :: Polygon -> IO () #

Destroyable Rectangle #

A rectangle item can be destroyed.

Methods

destroy :: Rectangle -> IO () #

Destroyable TextItem #

A text item can be destroyed.

Methods

destroy :: TextItem -> IO () #

Destroyable BitMapItem #

A bitmap item can be destroyed.

Methods

destroy :: BitMapItem -> IO () #

Destroyable Arc #

An arc item can be destroyed.

Methods

destroy :: Arc -> IO () #

Destroyable HTk #

The wish instance can be destroyed.

Methods

destroy :: HTk -> IO () #

Destroyable IconBar #

An icon bar can be destroyed.

Methods

destroy :: IconBar -> IO () #

Destroyable LogWin #

A log window can be destroyed.

Methods

destroy :: LogWin -> IO () #

Destroyable SelectBox #

A select box can be destroyed.

Methods

destroy :: SelectBox -> IO () #

Destroyable Separator #

A separator can be destroyed.

Methods

destroy :: Separator -> IO () #

Destroyable SpinButton #

A spin button can be destroyed.

Methods

destroy :: SpinButton -> IO () #

Destroyable (Scale a) #

A scale widget can be destroyed.

Methods

destroy :: Scale a -> IO () #

Destroyable (ListBox a) #

A listbox widget can be destroyed.

Methods

destroy :: ListBox a -> IO () #

Destroyable (OptionMenu a) #

An option menu can be destroyed.

Methods

destroy :: OptionMenu a -> IO () #

Destroyable (Entry a) #

An entry field can be destroyed.

Methods

destroy :: Entry a -> IO () #

GUIValue a => Destroyable (ComboBox a) #

A combo box widget can be destroyed.

Methods

destroy :: ComboBox a -> IO () #

Destroyable (CheckButton a) #

A checkbutton widget can be destroyed.

Methods

destroy :: CheckButton a -> IO () #

Destroyable (RadioButton a) #

A radiobutton widget can be destroyed.

Methods

destroy :: RadioButton a -> IO () #

Destroyable (ScrollBox a) #

A scrollbox can be destroyed.

Methods

destroy :: ScrollBox a -> IO () #

Destroyable (Notepad a) #

A notepad can be destroyed.

Methods

destroy :: Notepad a -> IO () #

Destroyable (NotepadItem a) #

A notepad item can be destroyed.

Methods

destroy :: NotepadItem a -> IO () #

Destroyable (SimpleListBox val) # 

Methods

destroy :: SimpleListBox val -> IO () #

CItem c => Destroyable (TreeList c) #

A tree list can be destroyed.

Methods

destroy :: TreeList c -> IO () #

CItem c => Destroyable (GenGUI c) #

A GenGUI object can be destroyed.

Methods

destroy :: GenGUI c -> IO () #