doodle/render/sdl
Noah Petherbridge 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
..
canvas.go Better Collision Detection (Bouncy Jumps Up Hills) 2018-07-24 20:57:22 -07:00
fps.go Abstract away all SDL logic into isolated package 2018-07-21 17:12:22 -07:00
log.go Implement Developer Console with Initial Commands 2018-07-21 20:43:01 -07:00
sdl.go Add ui.Supervisor for Widget Event Handling 2018-07-25 20:25:02 -07:00
text.go Add initial User Interface Toolkit 2018-07-25 09:03:49 -07:00
utils.go Add ui.Supervisor for Widget Event Handling 2018-07-25 20:25:02 -07:00