Author: | tubs |
---|---|
Mode: | factor |
Date: | Tue, 3 Nov 2009 11:24:52 |
TUPLE: counter-gadget < gadget { count integer } ; : counter-gadget-down ( gadget -- ) [ 1 + ] change-count drop ; counter-gadget H{ { button-down [ counter-gadget-down ] } } set-gestures counter-gadget new '[ _ "test" open-window ] with-ui