You may wish to begin by reading the text widget conceptual overview
which gives an overview of all the objects and data types related to the text widget and how they work together.
Fluent builder for gtk.text_mark.TextMark
Fluent builder implementation template for gtk.text_mark.TextMark
Module for TextMark class