This repository has been archived on 2024-06-02. You can view files and clone it, but cannot push or open issues or pull requests.
x/system.go
2023-07-02 02:52:14 -04:00

21 lines
338 B
Go

package x
import "git.tebibyte.media/tomo/tomo"
type anyBox interface {
tomo.Box
invalidateDraw ()
invalidateLayout ()
}
func (window *window) SetRoot (root tomo.Object) {
}
func (window *window) focus (bx anyBox) {
if window.focused == bx { return }
window.focused.invalidateDraw()
window.focused = bx
bx.invalidateDraw()
}