| |||||
| |||||
Description | |||||
This storage object holds text to be displayed by one or more TextView widgets.
TODO
| |||||
Synopsis | |||||
Documentation | |||||
data TextBuffer | |||||
| |||||
class GObjectClass o => TextBufferClass o | |||||
| |||||
castToTextBuffer :: GObjectClass obj => obj -> TextBuffer | |||||
textBufferNew :: Maybe TextTagTable -> IO TextBuffer | |||||
Create a new text buffer, possibly taking a table of TextTag. | |||||
textBufferGetLineCount :: TextBufferClass tb => tb -> IO Int | |||||
Obtain the number of lines in the buffer. | |||||
textBufferGetCharCount :: TextBufferClass tb => tb -> IO Int | |||||
Obtain the number of characters in the buffer.
| |||||
textBufferGetTagTable :: TextBufferClass tb => tb -> IO TextTagTable | |||||
Extract the tag table that is associated with this text buffer. | |||||
textBufferInsert :: TextBufferClass tb => tb -> TextIter -> String -> IO () | |||||
Insert text at the position specified by the TextIter. | |||||
textBufferInsertAtCursor :: TextBufferClass tb => tb -> String -> IO () | |||||
Insert text at the cursor. | |||||
textBufferInsertInteractive :: TextBufferClass tb => tb -> TextIter -> String -> Bool -> IO Bool | |||||
Insert text at the TextIter only if a normal user would be able to do so as well.
| |||||
textBufferInsertInteractiveAtCursor :: TextBufferClass tb => tb -> String -> Bool -> IO Bool | |||||
Insert text at cursor only if a normal user would be able to do so as well. | |||||
textBufferInsertRange :: TextBufferClass tb => tb -> TextIter -> TextIter -> TextIter -> IO () | |||||
Copy text between the two TextIter start and end to another location ins. | |||||
textBufferInsertRangeInteractive :: TextBufferClass tb => tb -> TextIter -> TextIter -> TextIter -> Bool -> IO Bool | |||||
Copy text as textBufferInsertRange does, but obey editable and non-editable tags.
| |||||
textBufferDelete :: TextBufferClass tb => tb -> TextIter -> TextIter -> IO () | |||||
Delete some text. | |||||
textBufferDeleteInteractive :: TextBufferClass tb => tb -> TextIter -> TextIter -> Bool -> IO Bool | |||||
Delete some text but obey editable and non-editable tags. | |||||
textBufferSetText :: TextBufferClass tb => tb -> String -> IO () | |||||
Replace the text in the current TextBuffer. | |||||
textBufferGetText :: TextBufferClass tb => tb -> TextIter -> TextIter -> Bool -> IO String | |||||
Extract all the text between start and end from a TextBuffer.
| |||||
textBufferGetSlice :: TextBufferClass tb => tb -> TextIter -> TextIter -> Bool -> IO String | |||||
Extract text and special characters between start and end.
| |||||
textBufferInsertPixbuf :: TextBufferClass tb => tb -> TextIter -> Pixbuf -> IO () | |||||
Insert an image into the TextBuffer.
| |||||
textBufferCreateMark :: TextBufferClass tb => tb -> Maybe MarkName -> TextIter -> Bool -> IO TextMark | |||||
Create a TextMark from an iterator.
| |||||
textBufferMoveMark :: TextBufferClass tb => tb -> TextMark -> TextIter -> IO () | |||||
Move a mark.
| |||||
textBufferMoveMarkByName :: TextBufferClass tb => tb -> MarkName -> TextIter -> IO () | |||||
Move a named mark.
| |||||
textBufferDeleteMark :: TextBufferClass tb => tb -> TextMark -> IO () | |||||
Delete a mark.
| |||||
textBufferDeleteMarkByName :: TextBufferClass tb => tb -> MarkName -> IO () | |||||
Delete a mark by name.
| |||||
textBufferGetMark :: TextBufferClass tb => tb -> MarkName -> IO (Maybe TextMark) | |||||
Retrieve a TextMark by name. | |||||
textBufferGetInsert :: TextBufferClass tb => tb -> IO TextMark | |||||
Get the current cursor position.
| |||||
textBufferGetSelectionBound :: TextBufferClass tb => tb -> IO TextMark | |||||
Get a TextMark for the other side of a selection. | |||||
textBufferPlaceCursor :: TextBufferClass tb => tb -> TextIter -> IO () | |||||
Place the cursor.
| |||||
textBufferApplyTag :: TextBufferClass tb => tb -> TextTag -> TextIter -> TextIter -> IO () | |||||
Tag a range of text. | |||||
textBufferRemoveTag :: TextBufferClass tb => tb -> TextTag -> TextIter -> TextIter -> IO () | |||||
Remove a tag from a range of text. | |||||
textBufferApplyTagByName :: TextBufferClass tb => tb -> TagName -> TextIter -> TextIter -> IO () | |||||
Apply a tag that is specified by name. | |||||
textBufferRemoveTagByName :: TextBufferClass tb => tb -> TagName -> TextIter -> TextIter -> IO () | |||||
Remove a tag from a range of text. | |||||
textBufferRemoveAllTags :: TextBufferClass tb => tb -> TextIter -> TextIter -> IO () | |||||
Remove all tags within a range.
| |||||
textBufferGetIterAtLineOffset :: TextBufferClass tb => tb -> Int -> Int -> IO TextIter | |||||
Create an iterator at a specific line and offset.
| |||||
textBufferGetIterAtOffset :: TextBufferClass tb => tb -> Int -> IO TextIter | |||||
Create an iterator at a specific offset.
| |||||
textBufferGetIterAtLine :: TextBufferClass tb => Int -> tb -> IO TextIter | |||||
Create an iterator at a specific line.
| |||||
textBufferGetIterAtMark :: TextBufferClass tb => tb -> TextMark -> IO TextIter | |||||
Create an iterator from a mark. | |||||
textBufferGetStartIter :: TextBufferClass tb => tb -> IO TextIter | |||||
Create an iterator at the beginning of the buffer. | |||||
textBufferGetEndIter :: TextBufferClass tb => tb -> IO TextIter | |||||
Create an iterator at the end of the buffer.
| |||||
textBufferGetModified :: TextBufferClass tb => tb -> IO Bool | |||||
Query if the buffer was modified.
| |||||
textBufferSetModified :: TextBufferClass tb => tb -> Bool -> IO () | |||||
Set the "buffer-is-modified" flag. | |||||
textBufferDeleteSelection :: TextBufferClass tb => tb -> Bool -> Bool -> IO Bool | |||||
Delete the current selection.
| |||||
textBufferHasSelection :: TextBufferClass tb => tb -> IO Bool | |||||
Check if a selection exists. | |||||
textBufferBeginUserAction :: TextBufferClass tb => tb -> IO () | |||||
Start a new atomic user action.
| |||||
textBufferEndUserAction :: TextBufferClass tb => tb -> IO () | |||||
End an atomic user action. | |||||
onApplyTag :: TextBufferClass tb => tb -> (TextTag -> TextIter -> TextIter -> IO ()) -> IO (ConnectId tb) | |||||
A TextTag was applied to a region of text. | |||||
afterApplyTag :: TextBufferClass tb => tb -> (TextTag -> TextIter -> TextIter -> IO ()) -> IO (ConnectId tb) | |||||
onBeginUserAction :: TextBufferClass tb => tb -> IO () -> IO (ConnectId tb) | |||||
A new atomic user action is started.
| |||||
afterBeginUserAction :: TextBufferClass tb => tb -> IO () -> IO (ConnectId tb) | |||||
onBufferChanged :: TextBufferClass tb => tb -> IO () -> IO (ConnectId tb) | |||||
Emitted when the contents of the buffer change. | |||||
afterBufferChanged :: TextBufferClass tb => tb -> IO () -> IO (ConnectId tb) | |||||
onDeleteRange :: TextBufferClass tb => tb -> (TextIter -> TextIter -> IO ()) -> IO (ConnectId tb) | |||||
A range of text is about to be deleted. | |||||
afterDeleteRange :: TextBufferClass tb => tb -> (TextIter -> TextIter -> IO ()) -> IO (ConnectId tb) | |||||
onEndUserAction :: TextBufferClass tb => tb -> IO () -> IO (ConnectId tb) | |||||
An atomic action has ended.
| |||||
afterEndUserAction :: TextBufferClass tb => tb -> IO () -> IO (ConnectId tb) | |||||
onInsertPixbuf :: TextBufferClass tb => tb -> (TextIter -> Pixbuf -> IO ()) -> IO (ConnectId tb) | |||||
A widgets is inserted into the buffer. connectToInsertChildAnchor :: TextBufferClass tb => (TextIter -> TextChildAnchor -> IO ()) -> ConnectAfter -> tb -> IO (ConnectId tb) connectToInsertChildAnchor = connect_BOXED_OBJECT__NONE insert_child_anchor mkTextIter A Pixbuf is inserted into the buffer. | |||||
afterInsertPixbuf :: TextBufferClass tb => tb -> (TextIter -> Pixbuf -> IO ()) -> IO (ConnectId tb) | |||||
onInsertText :: TextBufferClass tb => tb -> (TextIter -> String -> IO ()) -> IO (ConnectId tb) | |||||
Some text was inserted. | |||||
afterInsertText :: TextBufferClass tb => tb -> (TextIter -> String -> IO ()) -> IO (ConnectId tb) | |||||
onMarkDeleted :: TextBufferClass tb => tb -> (TextMark -> IO ()) -> IO (ConnectId tb) | |||||
A TextMark within the buffer was deleted. | |||||
afterMarkDeleted :: TextBufferClass tb => tb -> (TextMark -> IO ()) -> IO (ConnectId tb) | |||||
onMarkSet :: TextBufferClass tb => tb -> (TextIter -> TextMark -> IO ()) -> IO (ConnectId tb) | |||||
A TextMark was inserted into the buffer. | |||||
afterMarkSet :: TextBufferClass tb => tb -> (TextIter -> TextMark -> IO ()) -> IO (ConnectId tb) | |||||
onModifiedChanged :: TextBufferClass tb => tb -> IO () -> IO (ConnectId tb) | |||||
The textbuffer has changed. | |||||
afterModifiedChanged :: TextBufferClass tb => tb -> IO () -> IO (ConnectId tb) | |||||
onRemoveTag :: TextBufferClass tb => tb -> (TextTag -> TextIter -> TextIter -> IO ()) -> IO (ConnectId tb) | |||||
A TextTag was removed. | |||||
afterRemoveTag :: TextBufferClass tb => tb -> (TextTag -> TextIter -> TextIter -> IO ()) -> IO (ConnectId tb) | |||||
Produced by Haddock version 0.6 |