Source codeContentsIndex
HTk
Synopsis
isTixAvailable :: IO Bool
module Resources
module GUIValue
module Font
module Geometry
module Colour
module Tooltip
module TkVariables
module Synchronized
module Computation
module Configuration
module BaseClasses
module Cursor
module TextTag
module Mark
module EmbeddedTextWin
module Window
module Toplevel
module Frame
module Label
module Message
module Entry
module Button
module CheckButton
module RadioButton
module MenuButton
module Canvas
module Editor
module ListBox
module OptionMenu
module Scale
module ScrollBar
module Screen
module Box
module NoteBook
module LabelFrame
module PanedWindow
module ComboBox
module Bell
module Printer
module Menu
module MenuCascade
module MenuCommand
module MenuCheckButton
module MenuRadioButton
module MenuSeparator
module CanvasItem
module Arc
module Line
module Oval
module Polygon
module Rectangle
module ImageItem
module BitMapItem
module TextItem
module CanvasTag
module EmbeddedCanvasWin
module BitMap
module Image
module Focus
module Icon
module Packer
module PackOptions
module GridPackOptions
module Events
module EventInfo
module Spawn
module Channels
data WishEvent = WishEvent [WishEventModifier] WishEventType
data WishEventType
= Activate
| ButtonPress (Maybe BNo)
| ButtonRelease (Maybe BNo)
| Circulate
| Colormap
| Configure
| Deactivate
| Destroy
| Enter
| Expose
| FocusIn
| FocusOut
| Gravity
| KeyPress (Maybe KeySym)
| KeyRelease (Maybe KeySym)
| Motion
| Leave
| Map
| Property
| Reparent
| Unmap
| Visibility
data WishEventModifier
= Control
| Shift
| Lock
| CommandKey
| Meta
| M
| Alt
| Mod1
| Mod2
| Mod3
| Mod4
| Mod5
| Button1
| Button2
| Button3
| Button4
| Button5
| Double
| Triple
newtype KeySym = KeySym String
bind :: (GUIObject wid) => wid -> [WishEvent] -> IO (Event EventInfo, IO ())
bindSimple :: (GUIObject wid) => wid -> WishEventType -> IO (Event (), IO ())
class (GUIObject w) => HasCommand w where
clicked :: w -> IO (Event ())
delayWish :: IO a -> IO a
initHTk :: [Config HTk] -> IO HTk
withdrawMainWin :: Config HTk
finishHTk :: IO ()
withdrawWish :: IO ()
data HTk
data AbstractWidget = NONE
updateAllTasks :: IO ()
updateIdleTasks :: IO ()
class (Destroyable o) => Destructible o where
destroyed :: o -> Event ()
class Destroyable o where
destroy :: o -> IO ()
done :: (Monad m) => m ()
cleanupWish :: IO ()
Documentation
isTixAvailable :: IO Bool
module Resources
module GUIValue
module Font
module Geometry
module Colour
module Tooltip
module TkVariables
module Synchronized
module Computation
module Configuration
module BaseClasses
module Cursor
module TextTag
module Mark
module EmbeddedTextWin
module Window
module Toplevel
module Frame
module Label
module Message
module Entry
module Button
module CheckButton
module RadioButton
module MenuButton
module Canvas
module Editor
module ListBox
module OptionMenu
module Scale
module ScrollBar
module Screen
module Box
module NoteBook
module LabelFrame
module PanedWindow
module ComboBox
module Bell
module Printer
module Menu
module MenuCascade
module MenuCommand
module MenuCheckButton
module MenuRadioButton
module MenuSeparator
module CanvasItem
module Arc
module Line
module Oval
module Polygon
module Rectangle
module ImageItem
module BitMapItem
module TextItem
module CanvasTag
module EmbeddedCanvasWin
module BitMap
module Image
module Focus
module Icon
module Packer
module PackOptions
module GridPackOptions
module Events
module EventInfo
module Spawn
module Channels
data WishEvent
Constructors
WishEvent [WishEventModifier] WishEventType
Instances
Show WishEvent
data WishEventType
Constructors
Activate
ButtonPress (Maybe BNo)
ButtonRelease (Maybe BNo)
Circulate
Colormap
Configure
Deactivate
Destroy
Enter
Expose
FocusIn
FocusOut
Gravity
KeyPress (Maybe KeySym)
KeyRelease (Maybe KeySym)
Motion
Leave
Map
Property
Reparent
Unmap
Visibility
data WishEventModifier
Constructors
Control
Shift
Lock
CommandKey
Meta
M
Alt
Mod1
Mod2
Mod3
Mod4
Mod5
Button1
Button2
Button3
Button4
Button5
Double
Triple
newtype KeySym
Constructors
KeySym String
bind :: (GUIObject wid) => wid -> [WishEvent] -> IO (Event EventInfo, IO ())
Binds an event for this widget. The second action returned unbinds the event.
bindSimple :: (GUIObject wid) => wid -> WishEventType -> IO (Event (), IO ())
Simple version of bind for only one event and without modifiers.
class (GUIObject w) => HasCommand w where
Methods
clicked :: w -> IO (Event ())
Instances
HasCommand Button
HasCommand (CheckButton a)
HasCommand MenuButton
HasCommand MenuCheckButton
HasCommand MenuCommand
HasCommand MenuRadioButton
HasCommand (RadioButton a)
delayWish :: IO a -> IO a
delayWish does an action, with the proviso that wish commands executed within the action by this or any other thread may be delayed. This can (allegedly) be faster.
initHTk
:: [Config HTk] the list of configuration options for the wish instance / main window.
-> IO HTk The wish instance.
Initializes HTk.
withdrawMainWin :: Config HTk
Withdraws the main window.
finishHTk :: IO ()
withdrawWish :: IO ()
data HTk
The HTk datatype - a handle for the wish instance and the main window.
data AbstractWidget
Constructors
NONE
Instances
GUIObject AbstractWidget
Container AbstractWidget
updateAllTasks :: IO ()
Updates all tasks.
updateIdleTasks :: IO ()
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
Destroyable Arc
Destroyable BitMap
Destroyable BitMapItem
Destroyable Box
Destroyable Button
Destroyable Canvas
Destroyable CanvasTag
Destroyable (CheckButton a)
Destroyable (ComboBox a)
(GUIObject a) => Destroyable a
Destroyable Editor
Destroyable EmbeddedCanvasWin
Destroyable EmbeddedTextWin
Destroyable (Entry a)
Destroyable Frame
(CItem c) => Destroyable (GenGUI c)
Destroyable HTk
Destroyable IconBar
Destroyable Image
Destroyable ImageItem
Destroyable Label
Destroyable LabelFrame
Destroyable Line
Destroyable (ListBox a)
Destroyable LogWin
Destroyable Menu
Destroyable MenuButton
Destroyable Message
Destroyable NoteBook
Destroyable NoteBookPage
Destroyable (NotepadItem a)
Destroyable (Notepad a)
Destroyable (OptionMenu a)
Destroyable Oval
Destroyable PanedWindow
Destroyable Pane
Destroyable Polygon
Destroyable (RadioButton a)
Destroyable Rectangle
Destroyable (Scale a)
Destroyable ScrollBar
Destroyable (ScrollBox a)
Destroyable SelectBox
Destroyable Separator
Destroyable Space
Destroyable SpinButton
Destroyable TextItem
Destroyable TextTag
Destroyable Toplevel
(CItem c) => Destroyable (TreeList c)
Destroyable Wish
done :: (Monad m) => m ()
cleanupWish :: IO ()
Produced by Haddock version 0.3