type
TextCharPredicate |
type
TextCharPredicateCB |
newtype
TextIter |
textIterBackwardChar:: TextIter -> IO Bool |
textIterBackwardChars:: TextIter -> Int -> IO Bool |
textIterBackwardCursorPosition:: TextIter -> IO Bool |
textIterBackwardCursorPositions:: TextIter -> Int -> IO Bool |
textIterBackwardFindChar:: TextIter -> (Char -> Bool) -> Maybe TextIter -> IO Bool |
textIterBackwardLine:: TextIter -> IO Bool |
textIterBackwardLines:: TextIter -> Int -> IO Bool |
textIterBackwardSearch:: TextIter -> String -> [TextSearchFlags] -> Maybe TextIter -> IO (Maybe (TextIter,TextIter)) |
textIterBackwardSentenceStart:: TextIter -> IO Bool |
textIterBackwardSentenceStarts:: TextIter -> Int -> IO Bool |
textIterBackwardToTagToggle:: TextIter -> Maybe TextTag -> IO Bool |
textIterBackwardWordStart:: TextIter -> IO Bool |
textIterBackwardWordStarts:: TextIter -> Int -> IO Bool |
textIterBeginsTag:: TextIter -> TextTag -> IO Bool |
textIterCanInsert:: TextIter -> Bool -> IO Bool |
textIterCompare:: TextIter -> TextIter -> IO Ordering |
textIterCopy:: TextIter -> IO TextIter |
textIterEditable:: TextIter -> Bool -> IO Bool |
textIterEndsLine:: TextIter -> IO Bool |
textIterEndsSentence:: TextIter -> IO Bool |
textIterEndsTag:: TextIter -> TextTag -> IO Bool |
textIterEndsWord:: TextIter -> IO Bool |
textIterEqual:: TextIter -> TextIter -> IO Bool |
textIterForwardChar:: TextIter -> IO Bool |
textIterForwardChars:: TextIter -> Int -> IO Bool |
textIterForwardCursorPosition:: TextIter -> IO Bool |
textIterForwardCursorPositions:: TextIter -> Int -> IO Bool |
textIterForwardFindChar:: TextIter -> (Char -> Bool) -> Maybe TextIter -> IO Bool |
textIterForwardLine:: TextIter -> IO Bool |
textIterForwardLines:: TextIter -> Int -> IO Bool |
textIterForwardSearch:: TextIter -> String -> [TextSearchFlags] -> Maybe TextIter -> IO (Maybe (TextIter,TextIter)) |
textIterForwardSentenceEnd:: TextIter -> IO Bool |
textIterForwardSentenceEnds:: TextIter -> Int -> IO Bool |
textIterForwardToEnd:: TextIter -> IO () |
textIterForwardToLineEnd:: TextIter -> IO Bool |
textIterForwardToTagToggle:: TextIter -> Maybe TextTag -> IO Bool |
textIterForwardWordEnd:: TextIter -> IO Bool |
textIterForwardWordEnds:: TextIter -> Int -> IO Bool |
textIterGetAttributes <no type information> |
textIterGetBuffer:: TextIter -> IO TextBuffer |
textIterGetChar:: TextIter -> IO (Maybe Char) |
textIterGetCharsInLine:: TextIter -> IO Int |
textIterGetLine:: TextIter -> IO Int |
textIterGetLineOffset:: TextIter -> IO Int |
textIterGetOffset:: TextIter -> IO Int |
textIterGetPixbuf:: TextIter -> IO (Maybe Pixbuf) |
textIterGetSlice:: TextIter -> TextIter -> IO String |
textIterGetText:: TextIter -> TextIter -> IO String |
textIterGetVisibleLineOffset:: TextIter -> IO Int |
textIterGetVisibleSlice:: TextIter -> TextIter -> IO String |
textIterGetVisibleText:: TextIter -> TextIter -> IO String |
textIterHasTag:: TextIter -> TextTag -> IO Bool |
textIterInsideSentence:: TextIter -> IO Bool |
textIterInsideWord:: TextIter -> IO Bool |
textIterIsCursorPosition:: TextIter -> IO Bool |
textIterIsEnd:: TextIter -> IO Bool |
textIterIsStart:: TextIter -> IO Bool |
textIterSetLine:: TextIter -> Int -> IO () |
textIterSetLineOffset:: TextIter -> Int -> IO () |
textIterSetOffset:: TextIter -> Int -> IO () |
textIterSetVisibleLineOffset:: TextIter -> Int -> IO () |
textIterStartsLine:: TextIter -> IO Bool |
textIterStartsSentence:: TextIter -> IO Bool |
textIterStartsWord:: TextIter -> IO Bool |
textIterTogglesTag:: TextIter -> TextTag -> IO Bool |
The following functions do not make sense due to Haskell's wide character representation of Unicode: gtk_text_iter_get_line_index gtk_text_iter_get_visible_line_index gtk_text_iter_get_bytes_in_line gtk_text_iter_set_line_index gtk_text_iter_set_visible_line_index
The functions gtk_text_iter_in_range and gtk_text_iter_order are not bound because they are only convenience functions which can replaced by calls to textIterCompare.
All offsets are counted from 0.
Bind the following function when GSList is bound: gtk_text_iter_get_marks gtk_text_iter_get_toggled_tags gtk_text_iter_get_tags
Bind the following functions when we are sure about anchors (see TextBuffer): gtk_text_iter_get_anchor
Bind TextAttribute functions when I am clear how to model them. gtk_text_iter_get_attribute
Forward exceptions in the two callback functions.
Move TextIter backwards.
| textIterBackwardChar | :: TextIter | :: IO Bool |
| ti |
Retuns True if the movement was possible.
Move TextIter backwards by n characters.
| textIterBackwardChars | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Retuns True if the iterator is pointing to a new character (and False if the iterator points to a picture or has not moved).
Move TextIter backwards to the next cursor position.
| textIterBackwardCursorPosition | :: TextIter | :: IO Bool |
| ti |
Some characters are composed of two Unicode codes. This function ensures that TextIter does not point inbetween such double characters.
Returns True if TextIter moved and points to a character (not to an object).
Move TextIter backwards by n cursor positions.
| textIterBackwardCursorPositions | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Returns True if TextIter moved and points to a character (not to an object).
Move TextIter backward until a predicate function returns True.
| textIterBackwardFindChar | :: TextIter | :: (Char -> Bool) | :: Maybe TextIter | :: IO Bool |
| ti | pred | limit |
If pred returns True before limit is reached, the search is stopped and the return value is True.
If limit is Nothing, the search stops at the end of the buffer.
Move TextIter backwards.
| textIterBackwardLine | :: TextIter | :: IO Bool |
| ti |
Retuns True if the iterator is pointing to a new line (and False if the iterator points to a picture or has not moved).
If TextIter is on the first line, it will be moved to the end of the buffer.
Move TextIter backwards by n lines.
| textIterBackwardLines | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Retuns True if the iterator is pointing to a new line (and False if the iterator points to a picture or has not moved).
If TextIter is on the first line, it will be moved to the end of the buffer.
n can be negative.
Search backward for a specific string.
| textIterBackwardSearch | :: TextIter | :: String | :: [TextSearchFlags] | :: Maybe TextIter | :: IO (Maybe (TextIter,TextIter)) |
| ti | str | flags | limit |
If specified, the last character which is tested against that start of the search pattern will be limit.
TextSearchFlags my be empty.
Returns the start and end position of the string found.
Move TextIter backwards to the next sentence beginning.
| textIterBackwardSentenceStart | :: TextIter | :: IO Bool |
| ti |
Retuns True if the iterator has moved to a new sentence beginning.
Move TextIter backwards by n sentence beginnings.
| textIterBackwardSentenceStarts | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Retuns True if the iterator is pointing to a new sentence start.
Moves TextIter backward to the next change of a TextTag.
| textIterBackwardToTagToggle | :: TextIter | :: Maybe TextTag | :: IO Bool |
| ti | tt |
If Nothing is supplied, any TextTag will be matched.
Returns True if there was a tag toggle before TextIter.
Move TextIter backwards to the next word beginning.
| textIterBackwardWordStart | :: TextIter | :: IO Bool |
| ti |
Retuns True if the iterator has moved to a new word beginning.
Move TextIter backwards by n word beginnings.
| textIterBackwardWordStarts | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Retuns True if the iterator is pointing to a new word start.
Query whether a TextIter is at the start of a TextTag.
| textIterBeginsTag | :: TextIter | :: TextTag | :: IO Bool |
| ti | tt |
Check if new text can be inserted at TextIter.
| textIterCanInsert | :: TextIter | :: Bool | :: IO Bool |
| ti | def |
Use textBufferInsertInteractive if you want to insert text depending on the current editable status.
Compare two TextIter.
| textIterCompare | :: TextIter | :: TextIter | :: IO Ordering |
| ti2 | ti1 |
TextIter could be in class Eq and Ord if there is a guarantee that each iterator is copied before it is modified in place. This could be done the next abstraction layer.
Check if TextIter is within an editable region.
| textIterEditable | :: TextIter | :: Bool | :: IO Bool |
| ti | def |
If no tags that affect editability are attached to the current position def will be returned.
This function cannot be used to decide whether text can be inserted at TextIter. Use the textIterCanInsert function for this purpose.
Determine if TextIter point to the beginning of a line delimiter.
| textIterEndsLine | :: TextIter | :: IO Bool |
| ti |
Returns False if TextIter points to the \n in a \r\n sequence.
Determine if TextIter ends a sentence.
| textIterEndsSentence | :: TextIter | :: IO Bool |
| ti |
Query whether a TextIter is at the end of a TextTag.
| textIterEndsTag | :: TextIter | :: TextTag | :: IO Bool |
| ti | tt |
Determine if TextIter ends a new natural-language word.
| textIterEndsWord | :: TextIter | :: IO Bool |
| ti |
Compare two TextIter for equality.
| textIterEqual | :: TextIter | :: TextIter | :: IO Bool |
| ti2 | ti1 |
TextIter could be in class Eq and Ord if there is a guarantee that each iterator is copied before it is modified in place. This is done the next abstraction layer.
Move TextIter forwards.
| textIterForwardChar | :: TextIter | :: IO Bool |
| ti |
Retuns True if the iterator is pointing to a character.
Move TextIter forwards by n characters.
| textIterForwardChars | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Retuns True if the iterator is pointing to a new character (and False if the iterator points to a picture or has not moved).
Move TextIter forwards to the next cursor position.
| textIterForwardCursorPosition | :: TextIter | :: IO Bool |
| ti |
Some characters are composed of two Unicode codes. This function ensures that TextIter does not point inbetween such double characters.
Returns True if TextIter moved and points to a character (not to an object).
Move TextIter forwards by n cursor positions.
| textIterForwardCursorPositions | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Returns True if TextIter moved and points to a character (not to an object).
Move TextIter forward until a predicate function returns True.
| textIterForwardFindChar | :: TextIter | :: (Char -> Bool) | :: Maybe TextIter | :: IO Bool |
| ti | pred | limit |
If pred returns True before limit is reached, the search is stopped and the return value is True.
If limit is Nothing, the search stops at the end of the buffer.
Move TextIter forwards.
| textIterForwardLine | :: TextIter | :: IO Bool |
| ti |
Retuns True if the iterator is pointing to a new line (and False if the iterator points to a picture or has not moved).
If TextIter is on the first line, it will be moved to the beginning of the buffer.
Move TextIter forwards by n lines.
| textIterForwardLines | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Retuns True if the iterator is pointing to a new line (and False if the iterator points to a picture or has not moved).
If TextIter is on the first line, it will be moved to the beginning of the buffer.
n can be negative.
Search forward for a specific string.
| textIterForwardSearch | :: TextIter | :: String | :: [TextSearchFlags] | :: Maybe TextIter | :: IO (Maybe (TextIter,TextIter)) |
| ti | str | flags | limit |
If specified, the last character which is tested against that start of the search pattern will be limit.
TextSearchFlags may be empty.
Returns the start and end position of the string found.
Move TextIter forwards to the next sentence end.
| textIterForwardSentenceEnd | :: TextIter | :: IO Bool |
| ti |
Retuns True if the iterator has moved to a new sentence end.
Move TextIter forwards by n sentence ends.
| textIterForwardSentenceEnds | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Retuns True if the iterator is pointing to a new sentence end.
Moves TextIter to the end of the buffer.
| textIterForwardToEnd | :: TextIter | :: IO () |
| ti |
Moves TextIter to the end of the line.
| textIterForwardToLineEnd | :: TextIter | :: IO Bool |
| ti |
Returns True if TextIter moved to a new location which is not the buffer end iterator.
Moves TextIter forward to the next change of a TextTag.
| textIterForwardToTagToggle | :: TextIter | :: Maybe TextTag | :: IO Bool |
| ti | tt |
If Nothing is supplied, any TextTag will be matched.
Returns True if there was a tag toggle after TextIter.
Move TextIter forwards to the next word end.
| textIterForwardWordEnd | :: TextIter | :: IO Bool |
| ti |
Retuns True if the iterator has moved to a new word end.
Move TextIter forwards by n word ends.
| textIterForwardWordEnds | :: TextIter | :: Int | :: IO Bool |
| ti | n |
Retuns True if the iterator is pointing to a new word end.
Return the TextBuffer this iterator is associated with.
| textIterGetBuffer | :: TextIter | :: IO TextBuffer |
| ti |
Return number of characters in this line.
| textIterGetCharsInLine | :: TextIter | :: IO Int |
| ti |
The return value includes delimiters.
Extract the offset relative to the beginning of the line.
| textIterGetLineOffset | :: TextIter | :: IO Int |
| ti |
Extract the offset relative to the beginning of the buffer.
| textIterGetOffset | :: TextIter | :: IO Int |
| ti |
Get the Pixbuf under the iterator.
| textIterGetPixbuf | :: TextIter | :: IO (Maybe Pixbuf) |
| it |
Return the text in a given range.
| textIterGetSlice | :: TextIter | :: TextIter | :: IO String |
| end | start |
Pictures (and other objects) are represented by 0xFFFC.
Return the text in a given range.
| textIterGetText | :: TextIter | :: TextIter | :: IO String |
| start | end |
Pictures (and other objects) are stripped form the output.
Extract the offset relative to the beginning of the line skipping invisible parts of the line.
| textIterGetVisibleLineOffset | :: TextIter | :: IO Int |
| ti |
Return the visible text in a given range.
| textIterGetVisibleSlice | :: TextIter | :: TextIter | :: IO String |
| start | end |
Pictures (and other objects) are represented by 0xFFFC.
Return the visible text in a given range.
| textIterGetVisibleText | :: TextIter | :: TextIter | :: IO String |
| start | end |
Pictures (and other objects) are stripped form the output.
Check if TextIter is within a range tagged with tag.
| textIterHasTag | :: TextIter | :: TextTag | :: IO Bool |
| ti | tt |
Determine if TextIter is inside a sentence.
| textIterInsideSentence | :: TextIter | :: IO Bool |
| ti |
Determine if TextIter is at a cursor position.
| textIterIsCursorPosition | :: TextIter | :: IO Bool |
| ti |
Determine if TextIter is at the beginning of the buffer.
| textIterIsStart | :: TextIter | :: IO Bool |
| ti |
Set TextIter to an offset within the line.
| textIterSetLineOffset | :: TextIter | :: Int | :: IO () |
| ti | n |
Set TextIter to an offset within the buffer.
| textIterSetOffset | :: TextIter | :: Int | :: IO () |
| ti | n |
Set TextIter to an visible character within the line.
| textIterSetVisibleLineOffset | :: TextIter | :: Int | :: IO () |
| ti | n |
Determine if TextIter starts a sentence.
| textIterStartsSentence | :: TextIter | :: IO Bool |
| ti |
Determine if TextIter begins a new natural-language word.
| textIterStartsWord | :: TextIter | :: IO Bool |
| ti |