Safe Haskell | None |
---|---|
Language | Haskell98 |
- requirePackage :: String -> IO Bool
- forgetPackage :: String -> IO ()
- isPackageAvailable :: String -> IO Bool
- isTixAvailable :: IO Bool
- module HTk.Kernel.Resources
- module HTk.Kernel.GUIValue
- module HTk.Kernel.Font
- module HTk.Kernel.Geometry
- module HTk.Kernel.Colour
- module HTk.Kernel.Tooltip
- module HTk.Kernel.TkVariables
- module Events.Synchronized
- module Util.Computation
- module HTk.Kernel.Configuration
- module HTk.Kernel.BaseClasses
- module HTk.Kernel.Cursor
- module HTk.Textitems.TextTag
- module HTk.Textitems.Mark
- module HTk.Textitems.EmbeddedTextWin
- module HTk.Containers.Window
- module HTk.Containers.Toplevel
- module HTk.Containers.Frame
- module HTk.Widgets.Label
- module HTk.Widgets.Message
- module HTk.Widgets.Entry
- module HTk.Widgets.Button
- module HTk.Widgets.CheckButton
- module HTk.Widgets.RadioButton
- module HTk.Widgets.MenuButton
- module HTk.Widgets.Canvas
- module HTk.Widgets.Editor
- module HTk.Widgets.ListBox
- module HTk.Widgets.OptionMenu
- module HTk.Widgets.Scale
- module HTk.Widgets.ScrollBar
- module HTk.Devices.Screen
- module HTk.Containers.Box
- module HTk.Tix.NoteBook
- module HTk.Tix.LabelFrame
- module HTk.Tix.PanedWindow
- module HTk.Widgets.ComboBox
- module HTk.Devices.Bell
- module HTk.Devices.Printer
- module HTk.Menuitems.Menu
- module HTk.Menuitems.MenuCascade
- module HTk.Menuitems.MenuCommand
- module HTk.Menuitems.MenuCheckButton
- module HTk.Menuitems.MenuRadioButton
- module HTk.Menuitems.MenuSeparator
- module HTk.Canvasitems.CanvasItem
- module HTk.Canvasitems.Arc
- module HTk.Canvasitems.Line
- module HTk.Canvasitems.Oval
- module HTk.Canvasitems.Polygon
- module HTk.Canvasitems.Rectangle
- module HTk.Canvasitems.ImageItem
- module HTk.Canvasitems.BitMapItem
- module HTk.Canvasitems.TextItem
- module HTk.Canvasitems.CanvasTag
- module HTk.Canvasitems.EmbeddedCanvasWin
- module HTk.Components.Index
- module HTk.Components.BitMap
- module HTk.Components.Image
- module HTk.Components.Focus
- module HTk.Components.Icon
- module HTk.Components.Selection
- module HTk.Kernel.ButtonWidget
- module HTk.Kernel.Packer
- module HTk.Kernel.PackOptions
- module HTk.Kernel.GridPackOptions
- module Events.Events
- module HTk.Kernel.EventInfo
- module Events.Spawn
- module Events.Channels
- data WishEvent = WishEvent [WishEventModifier] WishEventType
- data WishEventType
- data WishEventModifier
- newtype KeySym = KeySym String
- bind :: GUIObject wid => wid -> [WishEvent] -> IO (Event EventInfo, IO ())
- bindSimple :: GUIObject wid => wid -> WishEventType -> IO (Event (), IO ())
- bindPath :: Widget wid => wid -> [WishEvent] -> IO (Event EventInfo, IO ())
- bindPathSimple :: Widget wid => wid -> WishEventType -> IO (Event (), IO ())
- class GUIObject w => HasCommand w where
- delayWish :: IO a -> IO a
- initHTk :: [Config HTk] -> IO HTk
- withdrawMainWin :: Config HTk
- resourceFile :: String -> Config HTk
- finishHTk :: IO ()
- withdrawWish :: IO ()
- data HTk
- updateAllTasks :: IO ()
- updateIdleTasks :: IO ()
- class Destroyable o => Destructible o where
- class Destroyable o where
- cleanupWish :: IO ()
- getHTk :: IO HTk
Documentation
forgetPackage :: String -> IO () Source #
isTixAvailable :: IO Bool Source #
module HTk.Kernel.Resources
module HTk.Kernel.GUIValue
module HTk.Kernel.Font
module HTk.Kernel.Geometry
module HTk.Kernel.Colour
module HTk.Kernel.Tooltip
module HTk.Kernel.TkVariables
module Events.Synchronized
module Util.Computation
module HTk.Kernel.Configuration
module HTk.Kernel.BaseClasses
module HTk.Kernel.Cursor
module HTk.Textitems.TextTag
module HTk.Textitems.Mark
module HTk.Containers.Window
module HTk.Containers.Toplevel
module HTk.Containers.Frame
module HTk.Widgets.Label
module HTk.Widgets.Message
module HTk.Widgets.Entry
module HTk.Widgets.Button
module HTk.Widgets.CheckButton
module HTk.Widgets.RadioButton
module HTk.Widgets.MenuButton
module HTk.Widgets.Canvas
module HTk.Widgets.Editor
module HTk.Widgets.ListBox
module HTk.Widgets.OptionMenu
module HTk.Widgets.Scale
module HTk.Widgets.ScrollBar
module HTk.Devices.Screen
module HTk.Containers.Box
module HTk.Tix.NoteBook
module HTk.Tix.LabelFrame
module HTk.Tix.PanedWindow
module HTk.Widgets.ComboBox
module HTk.Devices.Bell
module HTk.Devices.Printer
module HTk.Menuitems.Menu
module HTk.Menuitems.MenuCascade
module HTk.Menuitems.MenuCommand
module HTk.Menuitems.MenuSeparator
module HTk.Canvasitems.CanvasItem
module HTk.Canvasitems.Arc
module HTk.Canvasitems.Line
module HTk.Canvasitems.Oval
module HTk.Canvasitems.Polygon
module HTk.Canvasitems.Rectangle
module HTk.Canvasitems.ImageItem
module HTk.Canvasitems.BitMapItem
module HTk.Canvasitems.TextItem
module HTk.Canvasitems.CanvasTag
module HTk.Components.Index
module HTk.Components.BitMap
module HTk.Components.Image
module HTk.Components.Focus
module HTk.Components.Icon
module HTk.Components.Selection
module HTk.Kernel.ButtonWidget
module HTk.Kernel.Packer
module HTk.Kernel.PackOptions
module HTk.Kernel.GridPackOptions
module Events.Events
module HTk.Kernel.EventInfo
module Events.Spawn
module Events.Channels
data WishEventType Source #
data WishEventModifier Source #
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 #
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. |
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. |
HasCommand MenuButton Source # | When a menubutton is clicked, a corresponding event is invoked. |
HasCommand (CheckButton a) Source # | When a checkbutton is clicked, a corresponding event is invoked. |
HasCommand (RadioButton a) Source # | When a radiobutton is clicked, a corresponding event is invoked. |
:: [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.
withdrawWish :: IO () Source #
The HTk
datatype - a handle for the wish instance and
the main window.
Eq HTk Source # | Internal. |
Destroyable HTk Source # | The wish instance can be destroyed. |
Synchronized HTk Source # | You can synchronize on the wish instance. |
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
|
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. |
updateAllTasks :: IO () Source #
Updates all tasks.
updateIdleTasks :: IO () Source #
Updates idle tasks.
class Destroyable o => Destructible o where #
class Destroyable o where #
Destroyable ChildProcess | |
Destroyable SimpleTool | |
Destroyable Wish # | |
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 Message # | A message widget can be destroyed. |
Destroyable Menu # | A menu can be destroyed. |
Destroyable Toplevel # | A toplevel widget can be destroyed. |
Destroyable Frame # | A frame widget can be destroyed. |
Destroyable Space # | A space widget can be destroyed. |
Destroyable Box # | A box can be destroyed. |
Destroyable ScrollBar # | A scrollbar widget can be destroyed. |
Destroyable Canvas # | A canvas widget can be destroyed. |
Destroyable Image # | An image object can be destroyed. |
Destroyable Editor # | An editor widget can be destroyed. |
Destroyable EmbeddedTextWin # | An embedded text window can be destroyed. |
Destroyable BitMap # | A bitmap object can be destroyed. |
Destroyable TextTag # | A text tag can be destroyed. |
Destroyable Button # | A button widget can be destroyed. |
Destroyable Label # | A label widget can be destroyed. |
Destroyable MenuButton # | A menubutton widget can be destroyed. |
Destroyable CanvasTag # | A canvas tag can be destroyed. |
Destroyable EmbeddedCanvasWin # | An embedded canvas window 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 BitMapItem # | A bitmap item can be destroyed. |
Destroyable Arc # | An arc item can be destroyed. |
Destroyable HTk # | The wish instance can be destroyed. |
Destroyable IconBar # | An icon bar can be destroyed. |
Destroyable LogWin # | A log window can be destroyed. |
Destroyable SelectBox # | A select box can be destroyed. |
Destroyable Separator # | A separator can be destroyed. |
Destroyable SpinButton # | A spin button can be destroyed. |
Destroyable (Scale a) # | A scale widget can be destroyed. |
Destroyable (ListBox a) # | A listbox widget can be destroyed. |
Destroyable (OptionMenu a) # | An option menu can be destroyed. |
Destroyable (Entry a) # | An entry field can be destroyed. |
GUIValue a => Destroyable (ComboBox a) # | A combo box widget can be destroyed. |
Destroyable (CheckButton a) # | A checkbutton widget can be destroyed. |
Destroyable (RadioButton a) # | A radiobutton widget can be destroyed. |
Destroyable (ScrollBox a) # | A scrollbox can be destroyed. |
Destroyable (Notepad a) # | A notepad can be destroyed. |
Destroyable (NotepadItem a) # | A notepad item can be destroyed. |
Destroyable (SimpleListBox val) # | |
CItem c => Destroyable (TreeList c) # | A tree list can be destroyed. |
CItem c => Destroyable (GenGUI c) # | A |
cleanupWish :: IO () Source #