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

Safe HaskellNone
LanguageHaskell98

HTk.Textitems.TextTag

Description

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

Synopsis

Documentation

data TextTag Source

The TextTag datatype.

Instances

Eq TextTag

Internal.

Destroyable TextTag

A text tag can be destroyed.

Synchronized TextTag

You can synchronize on a text tag object.

GUIObject TextTag

Internal.

HasJustify TextTag

A text tag has a configureable text justification.

HasFont TextTag

A text tag has a configureable font.

HasBorder TextTag

A text tag has a configureable border.

HasColour TextTag

A text tag has a configureable foregroud and background colour.

HasLineSpacing TextTag

A text tag has a configureable line spacing.

HasTabulators TextTag

A text tag has adjustable tab stops.

HasIndex Editor (TextTag, Last) BaseIndex

Internal.

HasIndex Editor (TextTag, First) BaseIndex

Internal.

createTextTag Source

Arguments

:: (HasIndex Editor i1 BaseIndex, HasIndex Editor i2 BaseIndex) 
=> Editor

the concerned editor widget.

-> i1

the start index.

-> i2

the end index.

-> [Config TextTag]

the list of configuration options for this text tag.

-> IO TextTag

A text tag.

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

addTextTag Source

Arguments

:: (HasIndex Editor i1 BaseIndex, HasIndex Editor i2 BaseIndex) 
=> TextTag

the concerned text tag.

-> i1

the start index.

-> i2

the end index.

-> IO ()

None.

Adds the specified text range to a text tag.

lowerTextTag Source

Arguments

:: TextTag

the concerned text tag.

-> IO ()

None.

Lowers the text tag.

raiseTextTag Source

Arguments

:: TextTag

the concerned text tag.

-> IO ()

None.

Raises the given text tag.

removeTextTag Source

Arguments

:: (HasIndex Editor i1 BaseIndex, HasIndex Editor i2 BaseIndex) 
=> TextTag

the concerned text tag.

-> i1

the start index.

-> i2

the end index.

-> IO ()

None.

Removes the specified text range from a text tag.

lmargin1 :: Distance -> Config TextTag Source

Sets the normal left intend for a line.

getLmargin1 :: TextTag -> IO Distance Source

Gets the normal left intend for a line.

lmargin2 :: Distance -> Config TextTag Source

Sets the intend for a part of a line that gets wrapped.

getLmargin2 :: TextTag -> IO Distance Source

Gets the intend for a part of a line that gets wrapped.

rmargin :: Distance -> Config TextTag Source

Sets the right-hand margin.

getRmargin :: TextTag -> IO Distance Source

Gets the right-hand margin.

offset :: Distance -> Config TextTag Source

Sets the baseline offset (positive for superscripts).

getOffset :: TextTag -> IO Distance Source

Gets the baseline offset.

overstrike :: Toggle -> Config TextTag Source

If True, the text is drawn with a horizontal line through it.

getOverstrike :: TextTag -> IO Toggle Source

Gets the current overstrike setting.

underlined :: Toggle -> Config TextTag Source

If True, the text is underlined.

getUnderlined :: TextTag -> IO Toggle Source

Gets the current underline setting.

bgstipple :: BitMapHandle -> Config TextTag Source

Sets a stipple pattern for the background colour.

getBgstipple :: TextTag -> IO BitMapHandle Source

Gets the stipple pattern for the background colour.

fgstipple :: BitMapHandle -> Config TextTag Source

Sets a stipple pattern for the foreground colour.

getFgstipple :: TextTag -> IO BitMapHandle Source

Gets the stipple pattern for the foreground colour.