LevelBar.addOffsetValue

void addOffsetValue(string name, double value)

Adds a new offset marker on self at the position specified by value. When the bar value is in the interval topped by value (or between value and #GtkLevelBar:max-value in case the offset is the last one on the bar) a style class named level-name will be applied when rendering the level bar fill. If another offset marker named name exists, its value will be replaced by value.

Parameters

namethe name of the new offset
valuethe value for the new offset