21 lines
338 B
Go
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()
|
|
}
|