Package: gtk

Function gtk-text-view-scroll-to-mark

Lambda List

gtk-text-view-scroll-to-mark (view mark &key margin xalign yalign)

Arguments

view -- a gtk-text-view widget
mark -- a gtk-text-mark object
margin -- a double float margin as a [0.0, 0.5) fraction of screen size
xalign -- a double float with the horizontal alignment of the mark within visible area
yalign -- a double float with the vertical alignment of the mark within visible area

Details

Scrolls the text view so that the mark is on the screen in the position indicated by the xalign and yalign arguments. An alignment of 0.0 indicates left or top, 1.0 indicates right or bottom, 0.5 means center. If you do not pass a value for the xalign and yalign arguments, the text scrolls the minimal distance to get the mark onscreen, possibly not scrolling at all. The effective screen for purposes of this function is reduced by a margin of size margin.

Note

The double float arguments take any number, which is coerced to a double float.
 

See also

2021-10-16