|  | Source code | Contents | Index

Graphics.UI.ObjectIO.StdWindowDef |

Portability | portable
Stability | provisional
Maintainer | ka2_mail@yahoo.com

Description
StdWindowDef contains the types to define the standard set of dialogs.
Synopsis

data Dialog c ls ps = Dialog Title (c ls ps) [WindowAttribute ls ps]
data Window c ls ps = Window Title (c ls ps) [WindowAttribute ls ps]

data WindowAttribute ls ps

= WindowActivate (GUIFun ls ps)
| WindowClose (GUIFun ls ps)
| WindowDeactivate (GUIFun ls ps)
| WindowHMargin Int Int
| WindowId Id
| WindowIndex Int
| WindowInit (GUIFun ls ps)
| WindowInitActive Id
| WindowItemSpace Int Int
| WindowOuterSize Size
| WindowPos ItemPos
| WindowViewSize Size
| WindowVMargin Int Int
| WindowCancel Id
| WindowOk Id
| WindowCursor CursorShape
| WindowHScroll ScrollFunction
| WindowKeyboard KeyboardStateFilter SelectState (KeyboardFunction ls ps)
| WindowLook Bool Look
| WindowMouse MouseStateFilter SelectState (MouseFunction ls ps)
| WindowOrigin Point2
| WindowPen [PenAttribute]
| WindowSelectState SelectState
| WindowViewDomain ViewDomain
| WindowVScroll ScrollFunction
| WindowCaret Point2 Size
| WindowResize (WindowResizeFunction ls ps)
| WindowDoubleBuffered

type WindowResizeFunction ls ps = Size -> Size -> GUIFun ls ps
type Look = SelectState -> UpdateState -> Draw ()

data PenAttribute

= PenSize Int
| PenPos Point2
| PenColour Colour
| PenBack Colour
| PenFont Font

module Graphics.UI.ObjectIO.StdIOCommon
module Graphics.UI.ObjectIO.StdGUI

Documentation
Data type definitions
data Dialog c ls ps

The dialogs are nonresizable modal or nonmodal windows. They adjust their size to the common size of the contained controls. They usually have two special buttons called "Ok" and "Cancel". When the user presses Enter or Esc keys, the dialog interprets this event as clicking on "Ok" or "Cancel".
Constructors

Dialog Title (c ls ps) [WindowAttribute ls ps] |

Instances

Controls c => Dialogs (Dialog c)

data Window c ls ps

The windows are resizable and one can draw in the view domain.This can be programmed as a Haskell's function. They also can have vertical and horizontal scroll bars, which extend logical view frame of the windows.
Constructors

Window Title (c ls ps) [WindowAttribute ls ps] |

Instances

Controls c => Windows (Window c)

data WindowAttribute ls ps

Constructors

WindowActivate (GUIFun ls ps) |
WindowClose (GUIFun ls ps) |
WindowDeactivate (GUIFun ls ps) |
WindowHMargin Int Int |
WindowId Id |
WindowIndex Int |
WindowInit (GUIFun ls ps) |
WindowInitActive Id |
WindowItemSpace Int Int |
WindowOuterSize Size |
WindowPos ItemPos |
WindowViewSize Size |
WindowVMargin Int Int |
WindowCancel Id |
WindowOk Id |
WindowCursor CursorShape |
WindowHScroll ScrollFunction |
WindowKeyboard KeyboardStateFilter SelectState (KeyboardFunction ls ps) |
WindowLook Bool Look |
WindowMouse MouseStateFilter SelectState (MouseFunction ls ps) |
WindowOrigin Point2 |
WindowPen [PenAttribute] |
WindowSelectState SelectState |
WindowViewDomain ViewDomain |
WindowVScroll ScrollFunction |
WindowCaret Point2 Size |
WindowResize (WindowResizeFunction ls ps) |
WindowDoubleBuffered |

type WindowResizeFunction ls ps = Size -> Size -> GUIFun ls ps
type Look = SelectState -> UpdateState -> Draw ()
data PenAttribute

Constructors

PenSize Int |
PenPos Point2 |
PenColour Colour |
PenBack Colour |
PenFont Font |

module Graphics.UI.ObjectIO.StdIOCommon
module Graphics.UI.ObjectIO.StdGUI
Produced by Haddock version 0.8