package toffee

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

Module Style.Size_dimSource

Sourceval px : w:float -> h:float -> dimension Geometry.size

px ~w ~h constructs a size in pixels using Dimension.length.

Sourceval pct : w:float -> h:float -> dimension Geometry.size

pct ~w ~h constructs a percentage size from 0–100 inputs using Dimension.pct.

For example, pct ~w:50. ~h:100. is equivalent to a size where width is 50% and height is 100%.