From 8b78d1650637b78b25001c169934fbbb4ce0c3ed Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sun, 2 Jul 2023 00:31:05 -0400 Subject: [PATCH] Add window behavior to box --- object.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/object.go b/object.go index 65a2492..078a425 100644 --- a/object.go +++ b/object.go @@ -104,6 +104,8 @@ type Object interface { type Box interface { Object + + Window () Window Bounds () image.Rectangle InnerBounds () image.Rectangle SetBounds (image.Rectangle) @@ -118,8 +120,8 @@ type Box interface { SetFocusable (bool) Focused () bool - Modifiers (func ()) input.Modifiers - MousePosition (func ()) image.Point + Modifiers () input.Modifiers + MousePosition () image.Point OnFocusEnter (func ()) event.Cookie OnFocusLeave (func ()) event.Cookie