Checkpoint

This commit is contained in:
maze authored and maze committed 2026-10-29 17:29:41 +01:00
1 parent 85a9ec684c
commit c5d6137fab
160 files changed
+76293 -387

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
package widget
import (
"image"
"image/draw"
"github.com/BeatGlow/beatglow/ui"
"github.com/BeatGlow/display"
)
type base struct {
display display.Display
style ui.Style
position image.Point
buffer draw.Image
changed bool
}
func makeBase(display display.Display, at image.Point, width, height int) base {
m := display.ColorModel()
return base{
display: display,
style: ui.StylesFor(m).Default,
position: at,
buffer: ui.BufferFor(m, width, height),
}
}
func (w *base) SetStyle(style ui.Style) {
w.style = style
w.changed = true
}