Safe Haskell | None |
---|---|
Language | Haskell98 |
This module provides access to text tags inside an editor widget.
- data TextTag
- createTextTag :: (HasIndex Editor i1 BaseIndex, HasIndex Editor i2 BaseIndex) => Editor -> i1 -> i2 -> [Config TextTag] -> IO TextTag
- addTextTag :: (HasIndex Editor i1 BaseIndex, HasIndex Editor i2 BaseIndex) => TextTag -> i1 -> i2 -> IO ()
- lowerTextTag :: TextTag -> IO ()
- raiseTextTag :: TextTag -> IO ()
- removeTextTag :: (HasIndex Editor i1 BaseIndex, HasIndex Editor i2 BaseIndex) => TextTag -> i1 -> i2 -> IO ()
- lmargin1 :: Distance -> Config TextTag
- getLmargin1 :: TextTag -> IO Distance
- lmargin2 :: Distance -> Config TextTag
- getLmargin2 :: TextTag -> IO Distance
- rmargin :: Distance -> Config TextTag
- getRmargin :: TextTag -> IO Distance
- offset :: Distance -> Config TextTag
- getOffset :: TextTag -> IO Distance
- overstrike :: Toggle -> Config TextTag
- getOverstrike :: TextTag -> IO Toggle
- underlined :: Toggle -> Config TextTag
- getUnderlined :: TextTag -> IO Toggle
- bgstipple :: BitMapHandle -> Config TextTag
- getBgstipple :: TextTag -> IO BitMapHandle
- fgstipple :: BitMapHandle -> Config TextTag
- getFgstipple :: TextTag -> IO BitMapHandle
Documentation
The TextTag
datatype.
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. |
:: (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.
:: (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.
:: (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.
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.
getRmargin :: TextTag -> IO Distance Source
Gets the right-hand margin.
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.