Module Bogue.Slider

module Slider: sig .. end

Slider widget.

Dependency graph

type t 
type kind = 
| Horizontal
| HBar
| Vertical
| Circular

Creating a Slider widget

Use Widget.slider or Widget.slider_with_action.

val triggers : Trigger.t list

The list of events that a Slider can react to. Currently this is the concatenation of Trigger.[buttons_down; buttons_up; pointer_motion] plus Sdl.Event.key_down.

Getting information

val size : t -> int * int
val value : t -> int

Get current value.

val get_max : t -> int

Modifying

val set : t -> int -> unit

Set a new value.