Method

Gtk.LevelBar.add_offset_value

Declaration [src]

void
gtk_level_bar_add_offset_value (
  GtkLevelBar* self,
  const char* name,
  double value
)

Description [src]

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

name const char*
 

the name of the new offset

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
value double
 

the value for the new offset