package toffee

  1. Overview
  2. Docs
CSS layout engine for OCaml (Flexbox, Grid, Block)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mosaic-0.1.0.tbz
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9

doc/toffee.geometry/Geometry/index.html

Module GeometrySource

Geometric primitives useful for layout.

This module provides foundational types for representing dimensions, positions, and constraints used throughout the layout engine.

Axis types

Sourcemodule Absolute_axis : sig ... end

Absolute horizontal and vertical axis representation.

Sourcemodule Abstract_axis : sig ... end

CSS abstract axis types and operations.

Geometric types

Sourcemodule Size : sig ... end

2-dimensional size representation.

Sourcemodule Point : sig ... end

2-dimensional point representation.

Sourcemodule Line : sig ... end

An abstract line with start and end positions.

Sourcemodule Rect : sig ... end

Axis-aligned rectangles representing margins, padding, borders, or insets.

Sourcemodule Min_max : sig ... end

Generic container for minimum and maximum constraint values.

Sourcemodule In_both_abs_axis : sig ... end

Container that holds an item in each absolute axis.

Type aliases

Sourcetype absolute_axis = Absolute_axis.t

Alias for Absolute_axis.t.

Sourcetype abstract_axis = Abstract_axis.t

Alias for Abstract_axis.t.

Sourcetype 'a rect = 'a Rect.t

Alias for Rect.t.

Sourcetype 'a size = 'a Size.t

Alias for Size.t.

Sourcetype 'a point = 'a Point.t

Alias for Point.t.

Sourcetype 'a line = 'a Line.t

Alias for Line.t.

Sourcetype ('min, 'max) min_max = ('min, 'max) Min_max.t

Alias for Min_max.t.

Sourcetype 'a in_both_abs_axis = 'a In_both_abs_axis.t