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

Safe HaskellNone
LanguageHaskell98

HTk.Textitems.Mark

Contents

Description

This module provides access to text marks inside an editor widget.

Synopsis

Documentation

data Mark Source #

The Mark datatype.

Constructors

Mark Editor String 

Instances

createMark Source #

Arguments

:: HasIndex Editor i BaseIndex 
=> Editor

the concerned editor widget.

-> String

the name of the text mark to create.

-> i

the text marks index position inside the editor widget.

-> IO Mark

A text mark.

Creates a text mark inside an editor widget and returns a handler.

setMarkGravity Source #

Arguments

:: Mark

the concerned text mark.

-> Gravity

the gravity to set.

-> IO ()

None.

Sets the gravity of the given text mark.

setMark Source #

Arguments

:: HasIndex Editor i BaseIndex 
=> Mark

the concerned tex mark.

-> i 
-> IO ()

None.

Sets the index position of the text mark.

unsetMark Source #

Arguments

:: Mark

the concerned text mark.

-> IO ()

None.

Unsets a text mark inside an editor widget.

getCurrentMarks Source #

Arguments

:: Editor

the concerned editor widget.

-> IO [Mark]

A list of text marks.

Gets the current marks from an editor widget.

Orphan instances