|
| Graphics.UI.XTC | | Portability | portable | | Stability | experimental | | Maintainer | martijn@cs.uu.nl |
|
|
|
|
|
| Description |
XTC: eXtended & Typed Controls for wxHaskell
The XTC library provides a typed interface to several wxHaskell controls.
- radio view (typed radio box)
- single-selection list view (typed single-selection list box)
- muliple-selection list view (typed multiple-selection list box)
- choice view (typed choice box)
- value entry (typed text entry)
XTC controls keep track of typed values and items, rather than
being string based. Selections in XTC controls consist of actual values
instead of indices.
|
|
| Synopsis |
|
|
|
|
| Classes
|
|
|
|
|
| class TypedValued x w | w -> x where | Source |
|
| Widgets that have a typed value. The value can be accessed via the attribute typedValue, and has type x.
| | | Methods | |
|
|
|
| Widgets that have a typed list of items. The item list can be accessed via the attribute typedItems, and has type [x].
| | | Methods | |
|
|
|
| Widgets that have a typed selection. The selection can be accessed via the attribute typedSelection, and has type x.
| | | Methods | |
|
|
|
| Widgets that have a typed selection that may be empty. The selection can be accessed via the attribute typedMaybeSelection, and has type Maybe x.
| | | Methods | |
|
|
|
| Widgets that have a typed list of selections. The selection list can be accessed via the attribute typedSelections, and has type [x].
| | | Methods | |
|
|
| class Observable w where | Source |
|
|
|
| Controls
|
|
| Radio view
|
|
| type RadioView x b = RadioBox (CRadioView x b) | Source |
|
| Pointer to a radio view, deriving from RadioBox.
|
|
|
Create a new radio view with an initial orientation and a list of
typed items. The item type (x) must be an instance of Labeled to show each item's
label. Use attribute typedSelection to access the currently selected item, and typedItems to access the list of items. Note:
for a radio view (or radio box) the items may not be modified dynamically.
- Instances: TypedSelection, TypedItems, Selecting,Selection,Items -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
|
Create a new radio view with an initial orientation and a list of
typed items. A function of type (x -> String) maps items onto labels.
Use attribute typedSelection to access the currently selected item, and typedItems to access the list of items. Note:
for a radio view (or radio box) the items may not be modified dynamically.
- Instances: TypedSelection, Selecting,Selection,Items -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
| Single-selection list view
|
|
|
| Pointer to a single-selection list view, deriving from SingleListBox.
|
|
|
Create a single-selection list view. The item type (x) must be an instance of Labeled to show each item's
label. Use attribute typedMaybeSelection to access the currently selected item, and typedItems to access the list of items.
- Instances: TypedMaybeSelection, TypedItems, Sorted,Selecting,Selection,Items -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
|
Create a single-selection list view. A function of type (x -> String) maps items onto labels.
Use attribute typedMaybeSelection to access the currently selected item, and typedItems to access the list of items.
- Instances: TypedMaybeSelection, TypedItems, Sorted,Selecting,Selection,Items -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
| Multiple-selection list view
|
|
|
| Pointer to a multiple-selection list view, deriving from MultiListBox.
|
|
|
Create a multiple-selection list view. The item type (x) must be an instance of Labeled to show each item's
label.
Use attribute typedSelections to access the currently selected items, and typedItems to access the list of items.
- Instances: TypedSelections, TypedItems, Sorted, Selecting,Selections,Items -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
|
Create a multiple-selection list view. A function of type (x -> String) maps items onto labels.
Use attribute typedSelections to access the currently selected items, and typedItems to access the list of items.
- Instances: TypedSelections, TypedItems, Sorted, Selecting,Selections,Items -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
| Choice view
|
|
| type ChoiceView a b = Choice (CChoiceView a b) | Source |
|
| Pointer to a choice view, deriving from Choice.
|
|
|
Create a choice view to select one item from a list of typed items. The item type (x) must be an instance of Labeled to show each item's
label.
Use attribute typedMaybeSelection to access the currently selected item, and typedItems to access the list of items.
- Instances: TypedMaybeSelection, TypedItems, Sorted, Selecting,Selection,Items -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
|
Create a choice view to select one item from a list of typed items. A function of type (x -> String) maps items onto labels.
Use attribute typedMaybeSelection to access the currently selected item, and typedItems to access the list of items.
- Instances: TypedMaybeSelection, TypedItems, Sorted, Selecting,Selection,Items -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
| Value entry
|
|
| type ValueEntry x b = TextCtrl (CValueEntry x b) | Source |
|
| Pointer to a choice view, deriving from TextCtrl.
|
|
|
Create a single-line value entry control. The value type (x) must be an instance of Show and Read
to present a value as a string in the entry and parse the string from the entry back to (maybe) a value.
Use typedValue to access the value.
Note: alignment has to
be set at creation time (or the entry has default alignment (=left) ).
- Instances: TypedValued, Wrap, Aligned, Commanding -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
|
Create a single-line value entry control. The two functions of type (x -> String) and (String -> Maybe x) are used
to present a value as a string in the entry and parse the string from the entry back to (maybe) a value.
Use typedValue to access the value.
Note: alignment has to
be set at creation time (or the entry has default alignment (=left) ).
- Instances: TypedValued, Wrap, Aligned, Commanding -- Textual, Literate, Dimensions, Colored, Visible, Child,
Able, Tipped, Identity, Styled, Reactive, Paint.
|
|
| Produced by Haddock version 2.1.0 |