View

constructor()

Creates a new GtkSourceView.

By default, an empty class@Buffer will be lazily created and can be retrieved with method@Gtk.TextView.get_buffer.

If you want to specify your own buffer, either override the vfunc@Gtk.TextView.create_buffer factory method, or use ctor@View.new_with_buffer.

Return

a new #GtkSourceView.


constructor(buffer: Buffer)

Creates a new #GtkSourceView widget displaying the buffer @buffer.

One buffer can be shared among many widgets.

Return

a new #GtkSourceView.

Parameters

buffer

a #GtkSourceBuffer.


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