doodle/render
Noah 602273aa16 Add ui.Supervisor for Widget Event Handling
The Buttons can now be managed by a ui.Supervisor and be notified when
the mouse enters or leaves their bounding box and handle click events.

Current event handlers supported:
* MouseOver
* MouseOut
* MouseDown
* MouseUp
* Click

Each of those events are only fired when the state of the event has
changed, i.e. the first time the mouse enters the widget MouseOver is
called and then when the mouse leaves later, MouseOut is called.

A completed click event (mouse was released while pressed and hovering
the button) triggers both MouseOut and Click, so the button can pop
itself out and also run the click handler.
2018-07-25 20:25:02 -07:00
..
sdl Add ui.Supervisor for Widget Event Handling 2018-07-25 20:25:02 -07:00
grid.go Refactor grid to use level.Pixel and clean up collision between Edit and Play 2018-07-24 17:44:32 -07:00
interface.go Add initial User Interface Toolkit 2018-07-25 09:03:49 -07:00
log.go Stabilize frame rate, add debug overlay 2018-06-16 19:59:23 -07:00