Module dui.TextBuffer
| Methods Summary | |
|---|---|
| static GType |
getType() Gets this class type |
| protected alias |
SignalHandler!(TextBuffer ) |
| alias |
SignalHandler!(TextBuffer , TextIter , String , int ) |
| alias |
SignalHandler!(TextBuffer , TextIter , TextIter ) |
| alias |
voiddelegate(TextIter , String , int ) |
| public void |
addOnChanged(void delegate()) |
| public void |
addOnInsert(void delegate(TextIter, String , int) dlg) |
| public static void |
onInsertCallback() |
| public void |
setText(char text) Sets the text for this text view |
| void |
setText(String text) |
| GtkTextBuffer* |
gtkO() Gets the GtkTextBuffer |
| gint |
getLineCount() getLineCount |
| gint |
getCharCount() getCharCount |
| TextTagTable |
getTagTable() getTagTable |
| void |
insert(TextIter iter, char text) /* Delete whole buffer, then insert /* Insert into the buffer Insert test at the iter |
| void |
insert(TextIter iter, String text) |
| void |
insertAtCursor(String text) Insert test at the cursor position |
| bit |
insertInteractive(TextIter iter, String text, bit defaultEditable) Insert test at the iter interactively ??? |
| bit |
insertInteractiveAtCursor(String text, bit defaultEditable) insertInteractiveAtCursor |
| void |
insertRange(TextIter iter, TextIter start, TextIter end) insertRange |
| bit |
insertRangeInteractive(TextIter iter, TextIter start, TextIter end, bit defaultEditable) insertRangeInteractive |
| void |
insertWithTags(TextIter iter, String text, TextTag firstTag) insertWithTags |
| void |
insertWithTagsByName(TextIter iter, char text, char tagName) insertWithTagsByName |
| void |
insertWithTagsByName(TextIter iter, String text, String tagName) |
| void |
insertWithTagsByName(TextIter iter, char text, char tagName, char tagName2) insertWithTagsByName |
| void |
insertWithTagsByName(TextIter iter, String text, String tagName, String tagName2) |
| void |
insertWithTagsByName(TextIter iter, char text, char tagName, char tagName2, char tagName3) insertWithTagsByName |
| void |
insertWithTagsByName(TextIter iter, String text, String tagName, String tagName2, String tagName3) |
| void |
insertWithTagsByName(TextIter iter, char text, char tagName, char tagName2, char tagName3, char tagName4) insertWithTagsByName |
| void |
insertWithTagsByName(TextIter iter, String text, String tagName, String tagName2, String tagName3, String tagName4) |
| void |
insertWithTagsByName(TextIter iter, char text, char tagName, char tagName2, char tagName3, char tagName4, char tagName5) insertWithTagsByName |
| void |
insertWithTagsByName(TextIter iter, String text, String tagName, String tagName2, String tagName3, String tagName4, String tagName5) |
| void |
deleteText(TextIter start, TextIter end) /* Delete from the buffer deleteText |
| bit |
deleteInteractive(TextIter start, TextIter end, bit defaultEditable) deleteInteractive |
| String |
getText(TextIter start, TextIter end, bit includeHiddenChars) /* Obtain strings from the buffer Obtain strings from the buffer |
| String |
getSlice(TextIter start, TextIter end, bit includeHiddenChars) Obtain strings from the buffer |
| String |
getText() Obtain the entire text |
| void |
insertPixbuf(TextIter iter, Pixbuf pixbuf) Insert a pixbuf |
| void |
insertChildAnchor(TextIter iter, TextChildAnchor anchor) Insert a child anchor |
| TextChildAnchor |
createChildAnchor(TextIter iter) Convenience, create and insert a child anchor |
| TextMark |
createMark(String mark_name, TextIter where, bit left_gravity) /* Mark manipulation Creates a mark at position where If mark_name is NULL (bug: cannot be null), the mark is anonymous; otherwise, the mark can be retrieved by name using gtk_text_buffer_get_mark(). |
| void |
moveMark(TextMark mark, TextIter where) Moves mark to the new location where. |
| void |
deleteMark(TextMark mark) Deletes mark, so that it's no longer located anywhere in the buffer. |
| TextMark |
getMark(char name) Returns the mark named name in buffer buffer. |
| TextMark |
getMark(String name) |
| void |
moveMark(String name, TextIter where) move the mark by name |
| void |
moveMarkByName(String name, TextIter where) move the mark by name using gtk function name. |
| void |
deleteMark(String name) Deletes mark by name. |
| void |
deleteMarkByName(String name) Deletes mark by name using the GTK functino name. |
| TextMark |
getInsert() Returns the mark that represents the cursor (insertion point). |
| TextMark |
getSelectionBound() Returns the mark that represents the selection bound. |
| void |
placeCursor(TextIter where) /* efficiently move insert and selection_bound to same location placeCursor |
| void |
applyTag(TextTag tag, TextIter start, TextIter end) /* Tag manipulation applyTag |
| void |
removeTag(TextTag tag, TextIter start, TextIter end) removeTag |
| void |
applyTagByName(char name, TextIter start, TextIter end) applyTagByName |
| void |
applyTagByName(String name, TextIter start, TextIter end) |
| void |
removeTag(String name, TextIter start, TextIter end) removeTag |
| void |
removeAllTags(TextIter start, TextIter end) removeAllTags |
| TextTag |
createTag(char tagName, char propertyName, char propertyValue, char propertyName1, int propertyValue1) Create a new tag for this buffer |
| TextTag |
createTag(String tagName, String propertyName, String propertyValue, String propertyName1, int propertyValue1) |
| TextTag |
createTag(char tagName, char propertyName, int propertyValue, char propertyName1, char propertyValue1) Create a new tag for this buffer |
| TextTag |
createTag(String tagName, String propertyName, int propertyValue, String propertyName1, String propertyValue1) |
| TextTag |
createTag(char tagName, char propertyName, int propertyValue) Create a new tag for this buffer |
| TextTag |
createTag(String tagName, String propertyName, int propertyValue) |
| TextTag |
createTag(char tagName, char propertyName, double propertyValue) Create a new tag for this buffer |
| TextTag |
createTag(String tagName, String propertyName, double propertyValue) |
| TextTag |
createTag(char tagName, char propertyName, int propertyValue, char propertyName2, int propertyValue2) Create a new tag for this buffer |
| TextTag |
createTag(String tagName, String propertyName, int propertyValue, String propertyName2, int propertyValue2) |
| TextTag |
createTag(char tagName, char propertyName, int propertyValue, char propertyName2, int propertyValue2, char propertyName3, int propertyValue3, char propertyName4, int propertyValue4, char propertyName5, int propertyValue5) |
| TextTag |
createTag(String tagName, String propertyName, int propertyValue, String propertyName2, int propertyValue2, String propertyName3, int propertyValue3, String propertyName4, int propertyValue4, String propertyName5, int propertyValue5) |
| TextTag |
createTag(char tagName, char propertyName, char propertyValue) Create a new tag for this buffer |
| TextTag |
createTag(String tagName, String propertyName, String propertyValue) |
| TextTag |
createTag(char tagName, char propertyName, Bitmap propertyValue) Create a new tag for this buffer |
| TextTag |
createTag(String tagName, String propertyName, Bitmap propertyValue) |
| void |
getIterAtLineOffset(TextIter iter, gint lineNumber, gint charOffset) /* Obtain iterators pointed at various places, then you can move the iterator around using the GtkTextIter operators |
| void |
getIterAtLineIndex(TextIter iter, gint line_number, gint byte_index) getIterAtLineIndex |
| void |
getIterAtOffset(TextIter iter, gint char_offset) getIterAtOffset |
| void |
getIterAtLine(TextIter iter, gint line_number) getIterAtLine |
| void |
getStartIter(TextIter iter) getStartIter |
| void |
getEndIter(TextIter iter) getEndIter |
| void |
getBounds(TextIter start, TextIter end) getBounds |
| void |
getIterAtMark(TextIter iter, TextMark mark) Sets an iter to the mark |
| void |
getIterAtChildAnchor(TextIter iter, TextChildAnchor anchor) Set an iter to the child anchor |
| bit |
getModified() /* There's no get_first_iter because you just get the iter for line or char 0 /* Used to keep track of whether the buffer needs saving; anytime the buffer contents change, the modified flag is turned on. |
| void |
setModified(bit setting) Used to keep track of whether the buffer has been modified since the last time it was saved. |
| void |
addSelectionClipboard(Clipboard clipboard) addSelectionClipboard |
| void |
removeSelectionClipboard(Clipboard clipboard) removeSelectionClipboard |
| void |
cutClipboard(Clipboard clipboard, bit default_editable) cutClipboard |
| void |
copyClipboard(Clipboard clipboard) copyClipboard |
| void |
pastClipboard(Clipboard clipboard, TextIter override_location, bit default_editable) pastClipboard |
| bit |
getSelectionBounds(TextIter start, TextIter end) getSelectionBounds |
| bit |
deleteSelection(bit interactive, bit defaultEditable) deleteSelection |
| void |
beginUserAction() /* Called to specify atomic user actions, used to implement undo beginUserAction |
| void |
endUserAction() endUserAction |