Safe Haskell | None |
---|---|
Language | Haskell98 |
This module provides access to a widgets selection (e.g. inside a listbox, editor or entry widget).
- 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
The Selection
datatype.
GUIObject w => GUIObject (Selection w) Source # | Internal. |
(HasSelection w, Widget w) => HasBorder (Selection w) Source # | The selection has a configureable border. |
(HasSelection w, Widget w) => HasColour (Selection w) Source # | The selected entries have a configureable foreground and background colour. |
HasIndex (Entry a) (Selection (Entry a), Last) BaseIndex Source # | The selection end is a valid index position for an entry widget. |
HasIndex (Entry a) (Selection (Entry a), First) BaseIndex Source # | The selection start is a valid index position for an entry widget. |
class GUIObject w => HasSelection w where Source #
A widget with a selectable content instantiates the class
HasSelection
.
clearSelection :: w -> IO () Source #
HasSelection Editor Source # | You can select text inside an editor widget. |
HasSelection (ListBox a) Source # | You can select entries inside a listbox widget. |
HasSelection (Entry a) Source # | You can select text inside an entry widget. |
class HasSelectionIndex w i where Source #
A widget with a indexable selection instantiates the class
HasSelectionIndex
.
HasIndex Editor i BaseIndex => HasSelectionIndex Editor i Source # | An editor widget's characters are selectable. |
HasIndex (ListBox a) i Int => HasSelectionIndex (ListBox a) i Source # | A listbox'es entries are selectable. |
HasIndex (Entry a) i BaseIndex => HasSelectionIndex (Entry a) i Source # | An entry widget's characters are selectable. |
class HasSelectionBaseIndex w i where Source #
A widget with an indexable selection base instantiates the class
HasSelectionBaseIndex
.
getSelection :: w -> IO (Maybe i) Source #
HasSelectionBaseIndex Editor ((Distance, Distance), (Distance, Distance)) Source # | You can select a text range inside an editor widget. |
HasSelectionBaseIndex (ListBox a) [Int] Source # | You can select a range of elements inside a listbox widget. |
HasSelectionBaseIndex (Entry a) (Int, Int) Source # | You can select a text range inside an entry widget. |
class HasSelectionIndexRange w i1 i2 where Source #
A widget with an indexable selection range instantiates the class
HasSelectionIndexRange
.
selectionRange :: i1 -> i2 -> Config w Source #
(HasIndex Editor i1 BaseIndex, HasIndex Editor i2 BaseIndex) => HasSelectionIndexRange Editor i1 i2 Source # | You can select a text range inside an editor widget. |
(HasIndex (ListBox a) i1 Int, HasIndex (ListBox a) i2 Int) => HasSelectionIndexRange (ListBox a) i1 i2 Source # | You can select a range of elements inside a listbox widget. |
(HasIndex (Entry a) i1 BaseIndex, HasIndex (Entry a) i2 BaseIndex) => HasSelectionIndexRange (Entry a) i1 i2 Source # | You can select a text range inside an entry widget. |
class HasSelectionIndex w i => HasSelectionBaseIndexRange w i where Source #
A widget with an indexable selection index range instantiates the
class HasSelectionBaseIndexRange
.
getSelectionStart :: w -> IO (Maybe i) Source #
getSelectionEnd :: w -> IO (Maybe i) Source #
getSelectionRange :: w -> IO (Maybe (i, i)) Source #
HasSelectionBaseIndexRange Editor (Distance, Distance) Source # | You can select a text range inside an editor widget. |
HasSelectionBaseIndexRange (ListBox a) Int Source # | You can select a range of entries inside a listbox widget. |
HasSelectionBaseIndexRange (Entry a) Int Source # | You can select a text range inside an entry widget. |