package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Level_bar/index.html
Module Wrappers.Level_bar
type t = [ `level_bar | `widget | `initially_unowned | `object_ ] Gobject.objval new_ : unit -> tCreate a new LevelBar
val new_for_interval : float -> float -> tCreate a new LevelBar
val set_value : t -> float -> unitSets the value of the `GtkLevelBar`.
val set_mode : t -> Gtk_enums.levelbarmode -> unitSets the `mode` of the `GtkLevelBar`.
val set_min_value : t -> float -> unitSets the `min-value` of the `GtkLevelBar`.
You probably want to update preexisting level offsets after calling this function.
val set_max_value : t -> float -> unitSets the `max-value` of the `GtkLevelBar`.
You probably want to update preexisting level offsets after calling this function.
val set_inverted : t -> bool -> unitSets whether the `GtkLevelBar` is inverted.
val remove_offset_value : t -> string option -> unitRemoves an offset marker from a `GtkLevelBar`.
The marker must have been previously added with method@Gtk.LevelBar.add_offset_value.
val get_value : t -> floatReturns the `value` of the `GtkLevelBar`.
val get_offset_value : t -> string option -> bool * floatFetches the value specified for the offset marker @name in @self.
val get_mode : t -> Gtk_enums.levelbarmodeReturns the `mode` of the `GtkLevelBar`.
val get_min_value : t -> floatReturns the `min-value` of the `GtkLevelBar`.
val get_max_value : t -> floatReturns the `max-value` of the `GtkLevelBar`.
val get_inverted : t -> boolReturns whether the levelbar is inverted.
val add_offset_value : t -> string -> float -> unitAdds 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 property@Gtk.LevelBar: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.
val on_offset_changed :
?after:bool ->
t ->
callback:(name:string -> unit) ->
Gobject.Signal.handler_id