Pad/internal/ui
Greg Pomerantz 68437c32a7 Store scale in State, use it everywhere instead of gtx.Metric.PxPerDp
- State.Scale stores the scale factor (default 1.0)
- ScaleEvent applies SetScale() which updates State.Scale
- Logic.Scale() accessor returns current scale
- Renderer.SetScale() updates renderer's scale from State
- main.go: uses logic.Scale() to get scale, calls renderer.SetScale()
- No more references to gtx.Metric.PxPerDp in render.go or main.go
2026-05-09 20:23:02 -04:00
..
element.go Introduce distinct Dp/Px types to prevent coordinate mixing at compile time 2026-05-09 18:40:47 -04:00
layout.go Introduce distinct Dp/Px types to prevent coordinate mixing at compile time 2026-05-09 18:40:47 -04:00
render.go Store scale in State, use it everywhere instead of gtx.Metric.PxPerDp 2026-05-09 20:23:02 -04:00
unit.go Introduce distinct Dp/Px types to prevent coordinate mixing at compile time 2026-05-09 18:40:47 -04:00