From 8858a54b5ddb3a2d8a42ecb1a837c02800bc934f Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Mon, 2 Mar 2026 17:38:55 -0500 Subject: create lay/strain package The lay/strain package uses the Cassowary algorithm to solve systems of layout constraints. --- style/style.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 style/style.go (limited to 'style') diff --git a/style/style.go b/style/style.go new file mode 100644 index 0000000..5b74952 --- /dev/null +++ b/style/style.go @@ -0,0 +1,22 @@ +package style + +import ( + "golang.org/x/exp/shiny/unit" + "golang.org/x/image/math/fixed" +) + +// TODO +type Style struct { +} + +// Convert implements the golang.org/x/exp/shiny/unit.Converter +// interface. +func (s *Style) Convert(v unit.Value, to unit.Unit) unit.Value { + // TODO +} + +// Pixels implements the golang.org/x/exp/shiny/unit.Converter +// interface. +func (s *Style) Pixels(v unit.Value) fixed.Int26_6 { + // TODO +} -- cgit v1.2.3