2020-03-08 09:10:41 +00:00
|
|
|
package alui
|
|
|
|
|
|
|
|
import (
|
|
|
|
"opslag.de/schobers/allg5"
|
|
|
|
"opslag.de/schobers/geom"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Context struct {
|
|
|
|
Display *allg5.Display
|
|
|
|
Fonts *Fonts
|
|
|
|
Cursor allg5.MouseCursor
|
|
|
|
Palette Palette
|
2020-04-10 09:00:27 +00:00
|
|
|
|
|
|
|
quit bool
|
2020-03-08 09:10:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Context) DisplayBounds() geom.RectangleF32 {
|
|
|
|
return geom.RectF32(0, 0, float32(c.Display.Width()), float32(c.Display.Height()))
|
|
|
|
}
|
|
|
|
|
2020-04-10 09:00:27 +00:00
|
|
|
func (c *Context) Quit() { c.quit = true }
|
|
|
|
|
2020-03-08 09:10:41 +00:00
|
|
|
type State struct {
|
|
|
|
Font string
|
|
|
|
}
|