View


Description:

[ CCode ( has_construct_function = false , type = "GtkWidget*" ) ]
public View ()

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].

Returns:

a new View.