christolliday / limn

Experimental cross platform GUI library
Other
404 stars 19 forks source link

Added MouseOver handling to button widget #5

Closed wendivoid closed 6 years ago

wendivoid commented 6 years ago

Simple handling of MouseOverEvent's in Button widgets.

christolliday commented 6 years ago

Hi, thanks for the PR! There's actually a helper method that can be used to replace button_handle_mouseover, since it's totally generic behavior, though it can be hard to find..

Use :

.enable_hover()

instead of

.add_handler_fn(button_handle_mouseover)

and remove button_handle_mouseover and I'll merge this

wendivoid commented 6 years ago

Oops i must have missed that, fixed.

Thanks for the awesome library! I was waiting for a Gui library build on WebRender.

christolliday commented 6 years ago

Thanks! looks good