mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
app,io/system,layout: [API] move FrameEvent and Insets to package app
In the early days of Gio, FrameEvent was part of package app. It was moved to package system to enable layout.NewContext be a convenient short-hand for constructing a layout. However, it seems the better design to leave FrameEvent (and Insets) in package app, and move layout.NewContext there as well. More importantly, the move allows us to replace the event.Queue interface with a concrete type. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -994,7 +994,7 @@ func (w *Window) fallbackDecorate() bool {
|
||||
}
|
||||
|
||||
// decorate the window if enabled and returns the corresponding Insets.
|
||||
func (w *Window) decorate(d driver, e system.FrameEvent, o *op.Ops) (size, offset image.Point) {
|
||||
func (w *Window) decorate(d driver, e FrameEvent, o *op.Ops) (size, offset image.Point) {
|
||||
if !w.fallbackDecorate() {
|
||||
return e.Size, image.Pt(0, 0)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user