elcritch / figuro

Experimental UI Library for Nim
62 stars 1 forks source link

Stateful button rework global current v4 #20

Closed elcritch closed 10 months ago

elcritch commented 10 months ago

This opened up a whole can of worms!

I essentially rewrote:

  1. how current and parent are handled
  2. connect for signals/slots (for the 3rd time)
  3. type descriptions for signals/slots (for the second time)
  4. first the hover event handling
  5. then mouse and button event handling
  6. stateful / generic widgets
  7. how postDraw are done (e.g. widget callbacks)

However, this now seems to enable fast and stable button events, stateful widgets, typed connect checks, among many other benefits.