Saturday, May 14, 2022

Glimmer DSL for LibUI 0.5.10 - Shape Listeners

Glimmer DSL for LibUI 0.5.10 (Fukuoka Award Winning Ruby Desktop Development GUI Library) has just been released with the following changes: 

  • Support nesting area mouse listeners underneath shapes directly given the newly added support for the include?(x, y) method, which can be used to detect if a mouse event fired for a specific shape
  • examples/shape_coloring.rb
In summary, you can now use area mouse listeners within shapes directly and Glimmer DSL for LibUI will ensure that they do not fire unless the mouse x,y coordinates land within the shape regions (it does so by leveraging the Perfect Shape gem)

In fact, that has been demonstrated in the new example: Shape Coloring




Happy Glimmering!

No comments: