uni-htk-2.2.1.3: Graphical User Interface for Haskell Programs

Safe HaskellNone
LanguageHaskell98

HTk.Components.Index

Description

This module exports basic types and classes on index positions, e.g. inside an editor or entry widget.

Synopsis

Documentation

data EndOfText Source #

The EndOfText datatype - a handle indexing the last position inside the concerned widget.

Constructors

EndOfText 

Instances

Eq EndOfText Source # 
Read EndOfText Source #

Internal.

Show EndOfText Source #

Internal.

GUIValue EndOfText Source #

Internal.

HasIndex Editor EndOfText BaseIndex Source #

The EndOfText index is a valid index for an editor widget.

HasIndex (ListBox a) EndOfText Int Source #

The EndOfText index is a valid index position inside a listbox widget.

HasIndex (Entry a) EndOfText BaseIndex Source #

The EndOfText index is a valid index position for an entry widget.

class HasIndex w i b where Source #

Internal.

Minimal complete definition

getBaseIndex

Methods

getBaseIndex :: w -> i -> IO b Source #

Instances

HasIndex Editor BaseIndex BaseIndex Source #

A base index is a valid index for an editor widget.

HasIndex Editor Pixels BaseIndex Source #

A position in pixels is a valid index for an editor widget.

HasIndex Editor EndOfText BaseIndex Source #

The EndOfText index is a valid index for an editor widget.

HasIndex Editor EmbeddedTextWin BaseIndex Source #

Internal.

HasIndex Editor Mark BaseIndex Source #

Internal.

HasIndex Editor i BaseIndex => HasIndex Editor i (Distance, Distance) Source #

Internal.

HasIndex Editor i BaseIndex => HasIndex Editor (i, IndexModifier) BaseIndex Source #

A pair of a valid index and an index modifier is a valid index for an editor widget.

HasIndex Editor i BaseIndex => HasIndex Editor (i, [IndexModifier]) BaseIndex Source #

A pair of a valid index and a list of index modifiers is a valid index for an editor widget.

HasIndex Editor (Distance, Distance) BaseIndex Source #

A pair of line and character is a valid index for an editor widget.

HasIndex Editor (TextTag, Last) BaseIndex Source #

Internal.

HasIndex Editor (TextTag, First) BaseIndex Source #

Internal.

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 EndOfText index is a valid index position inside a listbox widget.

HasIndex (ListBox a) Int Int Source #

An integer value is a valid index position inside a listbox widget.

Methods

getBaseIndex :: ListBox a -> Int -> IO Int Source #

HasIndex (Entry a) i BaseIndex => HasIndex (Entry a) i Int Source #

Internal.

Methods

getBaseIndex :: Entry a -> i -> IO Int Source #

HasIndex (Entry a) XCoord BaseIndex Source #

An XCoord is a valid index for an entry widget.

HasIndex (Entry a) EndOfText BaseIndex Source #

The EndOfText index is a valid index position for an entry widget.

HasIndex (Entry a) BaseIndex BaseIndex Source #

A base index is a valid index position for an entry widget.

HasIndex (Entry a) Int BaseIndex Source #

An integer value is a valid index position for an entry widget.

(Eq a, GUIValue a, GUIValue [a]) => HasIndex (ListBox a) Int (ListBoxElem a) Source #

Internal.

Methods

getBaseIndex :: ListBox a -> Int -> IO (ListBoxElem a) Source #

(Eq a, GUIValue a) => HasIndex (ListBox [a]) (ListBoxElem a) Int Source #

A listbox element is a valid index position inside an editor widget.

Methods

getBaseIndex :: ListBox [a] -> ListBoxElem a -> IO Int Source #

HasIndex (Entry a) (ICursor (Entry a)) BaseIndex Source #

The entries insertion cursor is a valid index for an entry widget.

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.

data BaseIndex Source #

The BaseIndex datatype - an index handle specified by an index number, an index position (line, char) or an index text (see text marks).

Constructors

IndexNo Int

entries, listboxes

IndexPos Position

text widgets

IndexText String

listboxes, "end" etc.

Instances

Read BaseIndex Source #

Internal.

Show BaseIndex Source #

Internal.

GUIValue BaseIndex Source #

Internal.

HasIndex Editor BaseIndex BaseIndex Source #

A base index is a valid index for an editor widget.

HasIndex Editor Pixels BaseIndex Source #

A position in pixels is a valid index for an editor widget.

HasIndex Editor EndOfText BaseIndex Source #

The EndOfText index is a valid index for an editor widget.

HasIndex Editor EmbeddedTextWin BaseIndex Source #

Internal.

HasIndex Editor Mark BaseIndex Source #

Internal.

HasIndex Editor i BaseIndex => HasIndex Editor (i, IndexModifier) BaseIndex Source #

A pair of a valid index and an index modifier is a valid index for an editor widget.

HasIndex Editor i BaseIndex => HasIndex Editor (i, [IndexModifier]) BaseIndex Source #

A pair of a valid index and a list of index modifiers is a valid index for an editor widget.

HasIndex Editor (Distance, Distance) BaseIndex Source #

A pair of line and character is a valid index for an editor widget.

HasIndex Editor (TextTag, Last) BaseIndex Source #

Internal.

HasIndex Editor (TextTag, First) BaseIndex Source #

Internal.

HasIndex (Entry a) XCoord BaseIndex Source #

An XCoord is a valid index for an entry widget.

HasIndex (Entry a) EndOfText BaseIndex Source #

The EndOfText index is a valid index position for an entry widget.

HasIndex (Entry a) BaseIndex BaseIndex Source #

A base index is a valid index position for an entry widget.

HasIndex (Entry a) Int BaseIndex Source #

An integer value is a valid index position for an entry widget.

HasIndex (Entry a) (ICursor (Entry a)) BaseIndex Source #

The entries insertion cursor is a valid index for an entry widget.

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.

data Pixels Source #

The Pixels datatype - a handle indexing a position inside a widget with its coordinates.

Constructors

Pixels Distance Distance 

Instances

Show Pixels Source #

Internal.

HasIndex Editor Pixels BaseIndex Source #

A position in pixels is a valid index for an editor widget.

HasIndex (ListBox a) Pixels Int Source #

A position in pixels is a valid index position inside an editor widget.

data First Source #

The First datatype - a handle indexing the first entry e.g. inside a listbox.

Constructors

First 

Instances

Show First Source #

Internal.

Methods

showsPrec :: Int -> First -> ShowS #

show :: First -> String #

showList :: [First] -> ShowS #

HasIndex Editor (TextTag, First) BaseIndex Source #

Internal.

HasIndex (Entry a) (Selection (Entry a), First) BaseIndex Source #

The selection start is a valid index position for an entry widget.

data Last Source #

The Last datatype - a handle indexing the last entry e.g. inside a listbox.

Constructors

Last 

Instances

Show Last Source #

Internal.

Methods

showsPrec :: Int -> Last -> ShowS #

show :: Last -> String #

showList :: [Last] -> ShowS #

HasIndex Editor (TextTag, Last) BaseIndex Source #

Internal.

HasIndex (Entry a) (Selection (Entry a), Last) BaseIndex Source #

The selection end is a valid index position for an entry widget.