26 lines
422 B
Go
26 lines
422 B
Go
package alui
|
|
|
|
import (
|
|
"opslag.de/schobers/allg5"
|
|
"opslag.de/schobers/geom"
|
|
)
|
|
|
|
type Context struct {
|
|
Display *allg5.Display
|
|
Fonts *Fonts
|
|
Cursor allg5.MouseCursor
|
|
Palette Palette
|
|
|
|
quit bool
|
|
}
|
|
|
|
func (c *Context) DisplayBounds() geom.RectangleF32 {
|
|
return geom.RectF32(0, 0, float32(c.Display.Width()), float32(c.Display.Height()))
|
|
}
|
|
|
|
func (c *Context) Quit() { c.quit = true }
|
|
|
|
type State struct {
|
|
Font string
|
|
}
|