package stk

  1. Overview
  2. Docs

Container widget.

type 'a child = {
  1. widget : Widget.widget;
  2. mutable data : 'a;
}

A container child, parametrized by the type of the associated data.

class virtual 'a container : ?class_:string option -> ?name:string option -> ?props:Props.t option -> unit -> object ... end

A container widget is a widget which can contain a list of widgets. Each widget can be associated to additional data 'a, so each container has type ['a] container. This class must be inherited (as it is for example by Pack.box or Pack.paned).

OCaml

Innovation. Community. Security.