package stk

  1. Overview
  2. Docs
SDL-based GUI toolkit

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-stk-0.5.0.tar.bz2
md5=beeed5752ff67b3abeb1bcf8fb6b9098
sha512=c1603ae66956a674864ad875212fdbfc8d8016983202108d492b0d8722106b1e982e9fdc04b20d1b7adf5013343252fc5173851751906271731bc81d70dc789c

doc/stk/Stk/Container/index.html

Module Stk.ContainerSource

Container widget.

Sourcetype child_data = ..

Type of data which can be associated to child widgets.

Sourcetype child = {
  1. widget : Widget.widget;
  2. mutable data : child_data option;
}

A container child, with optional data associated.

Sourceclass virtual 'pos container : ?classes:string list option -> ?name:string option -> ?props:Props.t option -> ?wdata: Widget.wdata option -> unit -> object ... end

A container widget is a widget which can contain other widgets. The type parameter is the type of the position of a widget in the container. This class must be inherited, as it is for example by container_list, which specialises this class by using a list to store children widgets.

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

Innovation. Community. Security.