chickadee » libui » new-area-handler

new-area-handler DRAW-HANDLER MOUSE-EVENT-HANDLER MOUSE-CROSSED-HANDLER DRAG-BROKEN-HANDLER KEY-EVENT-HANDLERprocedure

Creates a handler suitable for creating an area widget. The arguments to this procedure are procedures with the following signatures:

(draw-handler AREA-HANDLER AREA DRAW-PARAMS)
Run when the area widget is redrawn. DRAW-PARAMS contains the current drawing parameters.
(mouse-event-handler AREA-HANDLER AREA MOUSE-EVENT)
Run on mouse events with MOUSE-EVENT as argument.
(mouse-crossed-handler AREA-HANDLER AREA LEFT?)
Run when the mouse enters or leaves the area widget. LEFT? is #t if the mouse left it, otherwise #f.
(drag-broken-handler AREA-HANDLER AREA)
Run when dragging has been cancelled by the system.
(key-event-handler AREA-HANDLER AREA KEY-EVENT)
Run on key events with KEY-EVENT as argument.