add_mark
Description:
[ Version ( since = "2.16" ) ]
public void add_mark (double value, PositionType position, string? markup)
public void add_mark (double value, PositionType position, string? markup)
Adds a mark at value
.
A mark is indicated visually by drawing a tick mark next to the scale, and GTK+ makes it easy for the user to position the scale exactly at the marks value.
If markup
is not null, text is shown next to the tick mark.
To remove marks from a scale, use clear_marks.
Parameters:
this |
a Scale |
value |
the value at which the mark is placed, must be between the lower and upper limits of the scales’ adjustment |
position |
where to draw the mark. For a horizontal scale, TOP and gtk_pos_left are drawn above the scale, anything else below. For a vertical scale, LEFT and gtk_pos_top are drawn to the left of the scale, anything else to the right. |
markup |
Text to be shown at the mark, using Pango markup, or null |