Add window behavior to box
This commit is contained in:
parent
ac1fe7a75a
commit
8b78d16506
|
@ -104,6 +104,8 @@ type Object interface {
|
||||||
|
|
||||||
type Box interface {
|
type Box interface {
|
||||||
Object
|
Object
|
||||||
|
|
||||||
|
Window () Window
|
||||||
Bounds () image.Rectangle
|
Bounds () image.Rectangle
|
||||||
InnerBounds () image.Rectangle
|
InnerBounds () image.Rectangle
|
||||||
SetBounds (image.Rectangle)
|
SetBounds (image.Rectangle)
|
||||||
|
@ -118,8 +120,8 @@ type Box interface {
|
||||||
SetFocusable (bool)
|
SetFocusable (bool)
|
||||||
|
|
||||||
Focused () bool
|
Focused () bool
|
||||||
Modifiers (func ()) input.Modifiers
|
Modifiers () input.Modifiers
|
||||||
MousePosition (func ()) image.Point
|
MousePosition () image.Point
|
||||||
|
|
||||||
OnFocusEnter (func ()) event.Cookie
|
OnFocusEnter (func ()) event.Cookie
|
||||||
OnFocusLeave (func ()) event.Cookie
|
OnFocusLeave (func ()) event.Cookie
|
||||||
|
|
Loading…
Reference in New Issue