package stk

  1. Overview
  2. Docs

Objects.

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

type 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.

type id = Oid.t

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

class o : string -> ?name:string option -> ?props:Props.t option -> unit -> object ... end

An object. See widget_arguments for class_, name and props arguments.

OCaml

Innovation. Community. Security.