TextView

constructor()

Creates a new GtkTextView.

If you don’t call method@Gtk.TextView.set_buffer before using the text view, an empty default buffer will be created for you. Get the buffer with method@Gtk.TextView.get_buffer. If you want to specify your own buffer, consider ctor@Gtk.TextView.new_with_buffer.

Return

a new GtkTextView


constructor(buffer: TextBuffer)

Creates a new GtkTextView widget displaying the buffer @buffer.

One buffer can be shared among many widgets. @buffer may be null to create a default buffer, in which case this function is equivalent to ctor@Gtk.TextView.new. The text view adds its own reference count to the buffer; it does not take over an existing reference.

Return

a new GtkTextView.

Parameters

buffer

a GtkTextBuffer


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)