TextBuffer.insertInteractiveAtCursor

Calls gtk_text_buffer_insert_interactive() at the cursor position. default_editable indicates the editability of text that doesn't have a tag affecting editability applied to it. Typically the result of gtk_text_view_get_editable() is appropriate here.

  1. int insertInteractiveAtCursor(string text, int defaultEditable)
  2. int insertInteractiveAtCursor(string text, int len, int defaultEditable)
    class TextBuffer
    int
    insertInteractiveAtCursor
    (
    string text
    ,
    int len
    ,)

Parameters

text string

text in UTF-8 format

len int

length of text in bytes, or -1

defaultEditable int

default editability of buffer

Return Value

Type: int

whether text was actually inserted

Meta