Package: gtk

Function gtk:text-mark-new

Lambda List

gtk:text-mark-new (name &optional gravity)

Arguments

name -- a string with the name of the text mark or nil
gravity -- an optional boolean whether the text mark should have left gravity, the default is false

Return Value

The new gtk:text-mark object.

Details

Creates a text mark. Add the text mark to a text buffer using the gtk:text-buffer-add-mark function. If the name argument is nil, the text mark is anonymous. Otherwise, the text mark can be retrieved by name using the gtk:text-buffer-mark function. If a text mark has left gravity, and text is inserted at the text current location of the text mark, the text mark will be moved to the left of the newly inserted text. If the text mark has right gravity, gravity is false, the text mark will end up on the right of newly inserted text. The standard left-to-right cursor is a text mark with right gravity, when you type, the cursor stays on the right side of the text you are typing.
 

See also

2024-7-2