|  | Source code | Contents | Index

Graphics.UI.ObjectIO.StdControlDef |

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

Description
StdControlDef contains the types to define the standard set of controls.
Synopsis

data ButtonControl ls ps = ButtonControl String [ControlAttribute ls ps]
data CheckControl ls ps = CheckControl [CheckControlItem ps (ls, ps)] RowsOrColumns [ControlAttribute ls ps]
data CompoundControl c ls ps = CompoundControl (c ls ps) [ControlAttribute ls ps]
data CustomButtonControl ls ps = CustomButtonControl Size Look [ControlAttribute ls ps]
data CustomControl ls ps = CustomControl Size Look [ControlAttribute ls ps]
data EditControl ls ps = EditControl String ControlWidth NrLines [ControlAttribute ls ps]
data LayoutControl c ls ps = LayoutControl (c ls ps) [ControlAttribute ls ps]
data PopUpControl ls ps = PopUpControl [PopUpControlItem ps (ls, ps)] Index [ControlAttribute ls ps]
data ListBoxControl ls ps = ListBoxControl [ListBoxControlItem ps (ls, ps)] NrLines Bool [ControlAttribute ls ps]
data RadioControl ls ps = RadioControl [RadioControlItem ps (ls, ps)] RowsOrColumns Index [ControlAttribute ls ps]
data SliderControl ls ps = SliderControl Direction ControlWidth SliderState (SliderAction ls ps) [ControlAttribute ls ps]
data TextControl ls ps = TextControl String [ControlAttribute ls ps]
type CheckControlItem ps st = (String, Maybe ControlWidth, MarkState, st -> GUI ps st)
type PopUpControlItem ps st = (String, st -> GUI ps st)
type ListBoxControlItem ps st = (String, MarkState, st -> GUI ps st)
type RadioControlItem ps st = (String, Maybe ControlWidth, st -> GUI ps st)
type NrLines = Int

data RowsOrColumns

= Rows Int
| Columns Int

data ControlWidth

= PixelWidth Int
| TextWidth String
| ContentWidth String

data ControlAttribute ls ps

= ControlActivate (GUIFun ls ps)
| ControlDeactivate (GUIFun ls ps)
| ControlFunction (GUIFun ls ps)
| ControlHide
| ControlId Id
| ControlKeyboard KeyboardStateFilter SelectState (KeyboardFunction ls ps)
| ControlMinimumSize Size
| ControlModsFunction (ModifiersFunction ls ps)
| ControlMouse MouseStateFilter SelectState (MouseFunction ls ps)
| ControlPen [PenAttribute]
| ControlPos ItemPos
| ControlResize ControlResizeFunction
| ControlSelectState SelectState
| ControlTip String
| ControlWidth ControlWidth
| ControlHMargin Int Int
| ControlHScroll ScrollFunction
| ControlItemSpace Int Int
| ControlLook Bool Look
| ControlOrigin Point2
| ControlOuterSize Size
| ControlViewDomain ViewDomain
| ControlViewSize Size
| ControlVMargin Int Int
| ControlVScroll ScrollFunction
| ControlDoubleBuffered

type ControlResizeFunction = Size -> Size -> Size -> Size
type ControlType = String
module Graphics.UI.ObjectIO.StdIOCommon
module Graphics.UI.ObjectIO.StdGUI

Documentation
data ButtonControl ls ps

Constructors

ButtonControl String [ControlAttribute ls ps] |

Instances

Controls ButtonControl

data CheckControl ls ps

Constructors

CheckControl [CheckControlItem ps (ls, ps)] RowsOrColumns [ControlAttribute ls ps] |

Instances

Controls CheckControl

data CompoundControl c ls ps

The compound control is a control that contains other controls. It introduces a new layout scope like `LayoutControl` but it provides programmers with a lot more functionality. Just like the windows, the compound controls have a view domain and can have its own Look function. If we add `ControlHScroll` or `ControlVScroll` attribute then the control will be decorated with scroll bars.
Constructors

CompoundControl (c ls ps) [ControlAttribute ls ps] |

Instances

Controls c => Controls (CompoundControl c)

data CustomButtonControl ls ps

CustomButtonControl is like the `ButtonControl` but has its own `Look` and doesn't accept the ControlTitle attribute.
Constructors

CustomButtonControl Size Look [ControlAttribute ls ps] |

Instances

Controls CustomButtonControl

data CustomControl ls ps

CustomControl allows the programmer to design his/her own controls.
Constructors

CustomControl Size Look [ControlAttribute ls ps] |

Instances

Controls CustomControl

data EditControl ls ps

An edit control is a rectangular box in which the user can enter text.
Constructors

EditControl String ControlWidth NrLines [ControlAttribute ls ps] |

Instances

Controls EditControl

data LayoutControl c ls ps

The layout control is a control that contains other controls. It introduces a new layout scope: i.e. the controls inside it are positioned in relation to the bounds of the layout control.
Constructors

LayoutControl (c ls ps) [ControlAttribute ls ps] |

Instances

Controls c => Controls (LayoutControl c)

data PopUpControl ls ps

A popup control consists of a list box combined with simple text control. The list-box portion of the control drop down when the user selects the drop-down arrow next to the control.
Constructors

PopUpControl [PopUpControlItem ps (ls, ps)] Index [ControlAttribute ls ps] |

Instances

Controls PopUpControl

data ListBoxControl ls ps

The control is a rectangle containing a list of strings from which the user can select.
Constructors

ListBoxControl [ListBoxControlItem ps (ls, ps)] NrLines Bool [ControlAttribute ls ps] |

Instances

Controls ListBoxControl

data RadioControl ls ps

Constructors

RadioControl [RadioControlItem ps (ls, ps)] RowsOrColumns Index [ControlAttribute ls ps] |

Instances

Controls RadioControl

data SliderControl ls ps

Constructors

SliderControl Direction ControlWidth SliderState (SliderAction ls ps) [ControlAttribute ls ps] |

Instances

Controls SliderControl

data TextControl ls ps

This is a simple control that just displays its caption.
Constructors

TextControl String [ControlAttribute ls ps] |

Instances

Controls TextControl

type CheckControlItem ps st = (String, Maybe ControlWidth, MarkState, st -> GUI ps st)
type PopUpControlItem ps st = (String, st -> GUI ps st)
type ListBoxControlItem ps st = (String, MarkState, st -> GUI ps st)
type RadioControlItem ps st = (String, Maybe ControlWidth, st -> GUI ps st)
type NrLines = Int
data RowsOrColumns

Constructors

Rows Int |
Columns Int |

data ControlWidth

Constructors

PixelWidth Int |
TextWidth String |
ContentWidth String |

data ControlAttribute ls ps

Constructors

ControlActivate (GUIFun ls ps) |
ControlDeactivate (GUIFun ls ps) |
ControlFunction (GUIFun ls ps) |
ControlHide |
ControlId Id |
ControlKeyboard KeyboardStateFilter SelectState (KeyboardFunction ls ps) |
ControlMinimumSize Size |
ControlModsFunction (ModifiersFunction ls ps) |
ControlMouse MouseStateFilter SelectState (MouseFunction ls ps) |
ControlPen [PenAttribute] |
ControlPos ItemPos |
ControlResize ControlResizeFunction |
ControlSelectState SelectState |
ControlTip String |
ControlWidth ControlWidth |
ControlHMargin Int Int |
ControlHScroll ScrollFunction |
ControlItemSpace Int Int |
ControlLook Bool Look |
ControlOrigin Point2 |
ControlOuterSize Size |
ControlViewDomain ViewDomain |
ControlViewSize Size |
ControlVMargin Int Int |
ControlVScroll ScrollFunction |
ControlDoubleBuffered |

type ControlResizeFunction = Size -> Size -> Size -> Size
type ControlType = String
module Graphics.UI.ObjectIO.StdIOCommon
module Graphics.UI.ObjectIO.StdGUI
Produced by Haddock version 0.8