package stk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Stk.BoxSource

Stacker boxes.

Sourceval inter_padding : int Props.prop

Property "inter_padding" used to specify a space between packed children. Default is 0.

Sourceval css_inter_padding : int Css.P.prop
Sourceclass box : ?classes:string list option -> ?name:string option -> ?props:Props.t option -> ?wdata: Widget.wdata option -> unit -> object ... end

A box is a Container.container which stacks its children, giving each one more or less space according to its size and properties. Widgets can be stacked horizontally or vertically (depending on the Props.orientation property). The widget has class "vertical" or "horizontal" depending on orientation.

Sourcetype Widget.widget_type +=
  1. | Box of box
Sourceval box : orientation:Props.orientation -> ?classes:string list -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?inter_padding:int -> ?pack:(Widget.widget -> unit) -> unit -> box

Convenient function to create a box. See Widget arguments for other arguments.

Sourceval hbox : ?classes:string list -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?inter_padding:int -> ?pack:(Widget.widget -> unit) -> unit -> box

Same as box but orientation is already fixed to Horizontal.

Sourceval vbox : ?classes:string list -> ?name:string -> ?props:Props.t -> ?wdata:Widget.wdata -> ?inter_padding:int -> ?pack:(Widget.widget -> unit) -> unit -> box

Same as box but orientation is already fixed to Vertical.

OCaml

Innovation. Community. Security.