Compare commits

..

1 Commits

Author SHA1 Message Date
8b78d16506 Add window behavior to box 2023-07-02 00:31:05 -04:00

View File

@@ -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