SourceMark.this

Creates a text mark. Add it to a buffer using TextBuffer.addMark. If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved by name using TextBuffer.getMark. Normally marks are created using the utility function Source.bufferCreateSourceMark.

  1. this(GtkSourceMark* gtkSourceMark, bool ownedRef)
  2. this(string name, string category)
    class SourceMark
    this
    (
    string name
    ,
    string category
    )

Parameters

name string

Name of the gsv.SourceMark, can be NULL when not using a name

category string

is used to classify marks according to common characteristics (e.g. all the marks representing a bookmark could belong to the "bookmark" category, or all the marks representing a compilation error could belong to "error" category).

Return Value

a new gsv.SourceMark that can be added using TextBuffer.addMark.

Throws

ConstructionException GTK+ fails to create the object.

Meta