| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
HTk.Widgets.ListBox
Description
HTk's listbox widget . A scrollable widget that displays a set of text lines with selection functionality.
- data ListBox a
- newListBox :: (Container par, GUIValue a) => par -> [Config (ListBox a)] -> IO (ListBox a)
- data SelectMode
- selectMode :: GUIValue a => SelectMode -> ListBox a -> IO (ListBox a)
- getSelectMode :: GUIValue a => ListBox a -> IO SelectMode
- activateElem :: HasIndex (ListBox a) i Int => ListBox a -> i -> IO ()
- selectionAnchor :: HasIndex (ListBox a) i Int => ListBox a -> i -> IO ()
- data Eq a => ListBoxElem a = ListBoxElem a
- elemNotFound :: IOError
Documentation
The ListBox datatype - parametrised over the type of
the list elements.
Instances
| Eq (ListBox a) Source # | |
| Destroyable (ListBox a) Source # | A listbox widget can be destroyed. |
| Synchronized (ListBox a) Source # | You can synchronize on a listbox object (in JAVA style). |
| GUIObject (ListBox a) Source # | Internal. |
| HasEnable (ListBox a) Source # | A listbox is a stateful widget - it can be enabled or disabled. |
| HasGrid (ListBox a) Source # | |
| HasFont (ListBox a) Source # | You can specify the font of a listbox. |
| HasBorder (ListBox a) Source # | A listbox widget has a configureable border. |
| HasSize (ListBox a) Source # | You can specify the size of a listbox. |
| HasColour (ListBox a) Source # | A listbox widget has a foreground and background colour. |
| HasTooltip (ListBox a) Source # | A listbox can have a tooltip (only displayed if you are using tixwish). |
| Widget (ListBox a) Source # | A listbox widget has standard widget properties (concerning focus, cursor). |
| GUIValue a => CanBeSubwidget (ListBox a) Source # | |
| HasScroller (ListBox a) Source # | A listbox is a scrollable widget. |
| HasSelection (ListBox a) Source # | You can select entries inside a listbox widget. |
| HasXSelection (ListBox a) Source # | A listbox widget has an X selection. |
| HasIndex (ListBox a) i Int => HasBBox (ListBox a) i Source # | You can find out the bounding box of a list box element. |
| HasSelectionBaseIndexRange (ListBox a) Int Source # | You can select a range of entries inside a listbox widget. |
| HasIndex (ListBox a) i Int => HasSelectionIndex (ListBox a) i Source # | A listbox'es entries are selectable. |
| (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 (ListBox a) Pixels Int Source # | A position in pixels is a valid index position inside an editor widget. |
| HasIndex (ListBox a) EndOfText Int Source # | The |
| HasIndex (ListBox a) Int Int Source # | An integer value is a valid index position inside a listbox widget. |
| (Eq a, GUIValue a, GUIValue [a]) => HasIndex (ListBox a) Int (ListBoxElem a) Source # | Internal. |
| (GUIValue a, GUIValue [a]) => HasValue (ListBox a) [a] Source # | The value of a listbox is the list of the displayed objects (these
are instances of class |
| HasSelectionBaseIndex (ListBox a) [Int] Source # | You can select a range of elements inside a listbox widget. |
| (Eq a, GUIValue a) => HasIndex (ListBox [a]) (ListBoxElem a) Int Source # | A listbox element is a valid index position inside an editor widget. |
Arguments
| :: (Container par, GUIValue a) | |
| => par | the parent widget, which has to be a container widget
(an instance of |
| -> [Config (ListBox a)] | the list of configuration options for this listbox widget. |
| -> IO (ListBox a) | A listbox widget. |
Constructs a new listbox widget and returns a handler.
data SelectMode Source #
Instances
Arguments
| :: GUIValue a | |
| => SelectMode | the select mode to set. |
| -> ListBox a | the concerned listbox. |
| -> IO (ListBox a) | The concerned listbox. |
Sets the select mode of a listbox.
Arguments
| :: GUIValue a | |
| => ListBox a | the concerned listbox. |
| -> IO SelectMode | The current select mode. |
Gets the set select mode from a listbox.
Arguments
| :: HasIndex (ListBox a) i Int | |
| => ListBox a | the concerned listbox. |
| -> i | the index of the line to activate. |
| -> IO () | Nothing. |
Activates the specified line.
Arguments
| :: HasIndex (ListBox a) i Int | |
| => ListBox a | the concerned listbox. |
| -> i | the index of the line to anchor the selection at. |
| -> IO () | Nothing. |
Anchors the selection at the specified line.