|
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 | | | | | | | | 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 | | Instances | |
|
|
data CheckControl ls ps |
Constructors | | Instances | |
|
|
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 | | Instances | |
|
|
data CustomButtonControl ls ps |
CustomButtonControl is like the ButtonControl but has its own Look and
doesn't accept the ControlTitle attribute.
| Constructors | | Instances | |
|
|
data CustomControl ls ps |
CustomControl allows the programmer to design his/her own controls.
| Constructors | | Instances | |
|
|
data EditControl ls ps |
An edit control is a rectangular box in which the user can enter text.
| Constructors | | Instances | |
|
|
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 | | Instances | |
|
|
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 | | Instances | |
|
|
data ListBoxControl ls ps |
The control is a rectangle containing a list of strings from which the user can select.
| Constructors | | Instances | |
|
|
data RadioControl ls ps |
Constructors | | Instances | |
|
|
data SliderControl ls ps |
Constructors | | Instances | |
|
|
data TextControl ls ps |
This is a simple control that just displays its caption.
| Constructors | | Instances | |
|
|
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 |
|
|
data ControlWidth |
|
|
data ControlAttribute ls ps |
|
|
type ControlResizeFunction = Size -> Size -> Size -> Size |
|
type ControlType = String |
|
module Graphics.UI.ObjectIO.StdIOCommon |
|
module Graphics.UI.ObjectIO.StdGUI |
|
Produced by Haddock version 0.7 |