Method
GtkScaleadd_mark
Declaration [src]
void
gtk_scale_add_mark (
GtkScale* scale,
double value,
GtkPositionType position,
const char* markup
)
Description [src]
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 gtk_scale_clear_marks()
.
Parameters
value |
double |
The value at which the mark is placed, must be between the lower and upper limits of the scales’ adjustment. |
|
position |
GtkPositionType |
Where to draw the mark. For a horizontal scale, |
|
markup |
const char* |
Text to be shown at the mark, using Pango markup. |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
The value is a NUL terminated UTF-8 string. |