aboutsummaryrefslogtreecommitdiffstats
path: root/style/style.go
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-03-02 17:38:55 -0500
committerSam Anthony <sam@samanthony.xyz>2026-03-02 17:38:55 -0500
commit8858a54b5ddb3a2d8a42ecb1a837c02800bc934f (patch)
tree2428c445936eb8865c0b7c8f52560e97a44082f3 /style/style.go
parentc6cd37a6b80d4e5ad1dbf8c8968b818811b8aa54 (diff)
downloadgui-8858a54b5ddb3a2d8a42ecb1a837c02800bc934f.zip
create lay/strain package
The lay/strain package uses the Cassowary algorithm to solve systems of layout constraints.
Diffstat (limited to 'style/style.go')
-rw-r--r--style/style.go22
1 files changed, 22 insertions, 0 deletions
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
+}