Module Stk.RangeSource

Range widget.

This widget allows selecting a float value between two bounds.

Properties

All properties are not inherited.

Sourceval value : float Props.prop

Property "range_value" to store the currnt value of the range.

Sourceval step : float Props.prop

Property "range_step" to specify a step. Used when some left/right or up/down arrows are pressed. Default is 0.1.

Sourceval bigstep : float Props.prop

Property "range_bigstep" to specify a step. Used when some page up/down keys are pressed. Default is 1..

Sourceval pole_size : int Props.prop

Property "pole_size" defines, in pixels, vertical or horizontal size of range poles. Default is 15.

Sourceval css_pole_size : int Css.P.prop
Sourceval pole_width : int Props.prop

Property "pole_width" defines, in pixels, the width of range poles. Default is 4.

Sourceval css_pole_width : int Css.P.prop
Sourceval pole_color_low : Color.t Props.prop

Property "pole_color_low" defines the color of the lower bound pole.

Sourceval css_pole_color_low : Color.t Css.P.prop
Sourceval pole_color_high : Color.t Props.prop

Property "pole_color_high" defines the color of the upper bound pole.

Sourceval css_pole_color_high : Color.t Css.P.prop
Sourceval line_width : int Props.prop

Property "range_line_width" defines the width, in pixels, of the line between the two poles. Default is 2.

Sourceval css_line_width : int Css.P.prop
Sourceval cursor_bg_color : Color.t Props.prop

Property "range_cursor_bg_color" defines the background color of range cursor.

Sourceval css_cursor_bg_color : Color.t Css.P.prop
Sourceval cursor_border_color : Color.t Props.prop

Property "range_cursor_border_color" defines the border color of range cursor.

Sourceval css_cursor_border_color : Color.t Css.P.prop

Range widget

Sourceclass range : ?classes:string list option -> ?name:string option -> ?props:Props.t option -> ?wdata: Widget.wdata option -> unit -> object ... end

The range widget.

Sourcetype Widget.widget_type +=
  1. | Range of range
Sourceval range : ?classes:string list -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?orientation:Props.orientation -> ?range:(float * float) -> ?step:float -> ?bigstep:float -> ?value:float -> ?pack:(Widget.widget -> unit) -> unit -> range

Convenient function to create a range. See Widget arguments for optional arguments classes, name, props and pack. Other arguments will set range properties.

Sourceval hrange : ?classes:string list -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?range:(float * float) -> ?step:float -> ?bigstep:float -> ?value:float -> ?pack:(Widget.widget -> unit) -> unit -> range
Sourceval vrange : ?classes:string list -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?range:(float * float) -> ?step:float -> ?bigstep:float -> ?value:float -> ?pack:(Widget.widget -> unit) -> unit -> range