|
|
|
|
|
| Description |
| This module provides access to a widgets selection (e.g. inside a
listbox, editor or entry widget). |
|
| Synopsis |
|
| class HasIndex w i b where | | | | newtype Selection w = Selection w | | | class (GUIObject w) => HasSelection w where | | | | class HasSelectionIndex w i where | | | | class HasSelectionBaseIndex w i where | | | | class HasSelectionIndexRange w i1 i2 where | | | | class (HasSelectionIndex w i) => HasSelectionBaseIndexRange w i where | |
|
|
| Documentation |
|
| class HasIndex w i b where |
| Internal. | | | Methods | | getBaseIndex :: w -> i -> IO b | | Internal. |
| | | Instances | | HasIndex Editor BaseIndex BaseIndex | | HasIndex Editor EndOfText BaseIndex | | HasIndex Editor Pixels BaseIndex | | HasIndex Editor (Distance, Distance) BaseIndex | | (HasIndex Editor i BaseIndex) => HasIndex Editor (i, [IndexModifier]) BaseIndex | | (HasIndex Editor i BaseIndex) => HasIndex Editor (i, IndexModifier) BaseIndex | | (HasIndex Editor i BaseIndex) => HasIndex Editor i (Distance, Distance) | | HasIndex Editor EmbeddedTextWin BaseIndex | | HasIndex (Entry a) Int BaseIndex | | HasIndex (Entry a) BaseIndex BaseIndex | | HasIndex (Entry a) EndOfText BaseIndex | | HasIndex (Entry a) XCoord BaseIndex | | HasIndex (Entry a) (ICursor (Entry a)) BaseIndex | | HasIndex (Entry a) (Selection (Entry a), First) BaseIndex | | HasIndex (Entry a) (Selection (Entry a), Last) BaseIndex | | (HasIndex (Entry a) i BaseIndex) => HasIndex (Entry a) i Int | | HasIndex (ListBox a) Int Int | | HasIndex (ListBox a) EndOfText Int | | HasIndex (ListBox a) Pixels Int | | (Eq a, GUIValue a) => HasIndex (ListBox [a]) (ListBoxElem a) Int | | (Eq a, GUIValue a, GUIValue [a]) => HasIndex (ListBox a) Int (ListBoxElem a) | | HasIndex Editor Mark BaseIndex | | HasIndex Editor (Selection Editor) BaseIndex | | HasIndex Editor (ICursor Editor) BaseIndex | | HasIndex Editor MousePosition BaseIndex | | HasIndex Editor (TextTag, First) BaseIndex | | HasIndex Editor (TextTag, Last) BaseIndex |
|
|
|
| newtype Selection w |
|
|
| class (GUIObject w) => HasSelection w where |
| A widget with a selectable content instantiates the class
HasSelection. | | | Methods | | clearSelection :: w -> IO () | | Clears the widgets selection. |
| | | Instances | |
|
|
| class HasSelectionIndex w i where |
| A widget with a indexable selection instantiates the class
HasSelectionIndex. | | | Methods | | selection :: i -> Config w | | Selects the entry at the specified index. | | | isSelected :: w -> i -> IO Bool | | Queries if the entry at the given index is selected. |
| | | Instances | |
|
|
| class HasSelectionBaseIndex w i where |
| A widget with an indexable selection base instantiates the class
HasSelectionBaseIndex. | | | Methods | | getSelection :: w -> IO (Maybe i) | | Gets the selected base index (if something is selected). |
| | | Instances | |
|
|
| class HasSelectionIndexRange w i1 i2 where |
| A widget with an indexable selection range instantiates the class
HasSelectionIndexRange. | | | Methods | | selectionRange :: i1 -> i2 -> Config w | | Selects the widget's entries in the specified range. |
| | | Instances | |
|
|
| class (HasSelectionIndex w i) => HasSelectionBaseIndexRange w i where |
| A widget with an indexable selection index range instantiates the
class HasSelectionBaseIndexRange. | | | Methods | | getSelectionStart :: w -> IO (Maybe i) | | Gets the selection start index. | | | getSelectionEnd :: w -> IO (Maybe i) | | Gets the selection end index. | | | getSelectionRange :: w -> IO (Maybe (i, i)) | | Gets the selection range. |
| | | Instances | |
|
|
| Produced by Haddock version 0.3 |