[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.2" ) ]
public SourceMark (string name, string category)
Creates a text mark.
Add it to a buffer using [method@Gtk.TextBuffer.add_mark]. If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved by name using [method@Gtk.TextBuffer.get_mark]. Normally marks are created using the utility function [method@Buffer.create_source_mark].
| name |
Name of the SourceMark or null |
| category |
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). |
|
a new SourceMark that can be added using [method@Gtk.TextBuffer.add_mark]. |