Gtk.LevelBar.prototype.add_offset_value

function add_offset_value(name:String, value:Number):void {
    // Gjs wrapper for gtk_level_bar_add_offset_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 Gtk.max-value in case the offset is the last one on the bar) a style class named <literal>level-</literal>name will be applied when rendering the level bar fill. If another offset marker named name exists, its value will be replaced by value.

Since 3.6

name

the name of the new offset

value

the value for the new offset