Module Stk.ObjectSource

Objects.

Class o is the base class for widget and other classes which can trigger events and hold properties Props.props.

Sourcetype Events.ev +=
  1. | Prop_changed : 'a Props.prop -> (prev:'a option -> now:'a -> unit) Events.ev

Introduce the Prop_changed property to register callbacks called when the value of a given property changed. Previous and current values of the property are passed to the callback.

Sourcetype id = Oid.t

Object id. Each object of o is given a unique id.

Sourceval transition_step_delay : int

Transition step minimum delay, in milliseconds.

Sourceclass o : ?props:Props.t option -> unit -> object ... end

An object. See Widget arguments for props arguments.