sig
  val cast : 'Gobject.obj -> GtkSourceView2_types.source_view Gobject.obj
  module P = GtkSourceView2Props.SourceView.P
  module S = GtkSourceView2Props.SourceView.S
  val create :
    GtkSourceView2_types.source_view Gobject.param list ->
    GtkSourceView2_types.source_view Gobject.obj
  external get_completion :
    [> `sourceview ] Gobject.obj ->
    GtkSourceView2_types.source_completion Gobject.obj
    = "ml_gtk_source_view_get_completion"
  external get_draw_spaces :
    [> `sourceview ] Gobject.obj ->
    SourceView2Enums.source_draw_spaces_flags list
    = "ml_gtk_source_view_get_draw_spaces"
  external set_draw_spaces :
    [> `sourceview ] Gobject.obj ->
    SourceView2Enums.source_draw_spaces_flags list -> unit
    = "ml_gtk_source_view_set_draw_spaces"
  external get_mark_category_priority :
    [> `sourceview ] Gobject.obj -> category:string -> int
    = "ml_gtk_source_view_get_mark_category_priority"
  external set_mark_category_priority :
    [> `sourceview ] Gobject.obj -> category:string -> int -> unit
    = "ml_gtk_source_view_set_mark_category_priority"
  external get_mark_category_background :
    [> `sourceview ] Gobject.obj -> category:string -> Gdk.color option
    = "ml_gtk_source_view_get_mark_category_background"
  external set_mark_category_background :
    [> `sourceview ] Gobject.obj ->
    category:string -> Gdk.color option -> unit
    = "ml_gtk_source_view_set_mark_category_background"
  val make_params :
    cont:(([> `sourceview ] as 'a) Gobject.param list -> 'b) ->
    'Gobject.param list ->
    ?auto_indent:bool ->
    ?highlight_current_line:bool ->
    ?indent_on_tab:bool ->
    ?indent_width:int ->
    ?insert_spaces_instead_of_tabs:bool ->
    ?right_margin_position:int ->
    ?show_line_marks:bool ->
    ?show_line_numbers:bool ->
    ?show_right_margin:bool ->
    ?smart_home_end:SourceView2Enums.source_smart_home_end_type ->
    ?tab_width:int -> 'b
  external new_ : unit -> GtkSourceView2_types.source_view Gtk.obj
    = "ml_gtk_source_view_new"
  external new_with_buffer :
    [> `sourcebuffer ] Gtk.obj -> GtkSourceView2_types.source_view Gtk.obj
    = "ml_gtk_source_view_new_with_buffer"
  external set_mark_category_pixbuf :
    [> `sourceview ] Gtk.obj -> string -> GdkPixbuf.pixbuf option -> unit
    = "ml_gtk_source_view_set_mark_category_pixbuf"
  external get_mark_category_pixbuf :
    [> `sourceview ] Gtk.obj -> string -> GdkPixbuf.pixbuf option
    = "ml_gtk_source_view_get_mark_category_pixbuf"
  external set_cursor_color : [> `sourceview ] Gtk.obj -> Gdk.color -> unit
    = "ml_gtk_modify_cursor_color"
end