- ConfigEvent: ONLY from app.ConfigEvent, sets width/height in State - FrameEvent: gets scale from gtx.Metric.PxPerDp, sends ScaleEvent only if changed - ScaleEvent: updates State.Scale - Renderer reads windowW/windowH from State (SetWindowSize), not gtx.Constraints - Renderer reads scale from State (SetScale), not gtx.Metric.PxPerDp - main.go: ConfigEvent calls SetWindowSize, FrameEvent calls SetScale |
||
|---|---|---|
| .. | ||
| main.go | ||
| pad | ||