Details of the Mac OS X window flinger driver are provided here for completeness. It does not relate to the Leap Motion per se, but it does provide a useful and interesting illustration of the layer of platform-specific details and implementation. Skip ahead if you don't care about the gruesome details of manipulating OS X windows.
Regrettably, OS X does not provide an API for directly accessing the attributes of windows not owned by the current application, which sort of throws a wrench into our plan to fling windows. It does, however, furnish developers with a library for generic property setters and accessors of UI elements for the purposes of accessibility, enabling applications to provide alternative methods of interface feedback for vision- or hearing-impaired users. Examples of this could be an application that speaks the current window title, or changing button labels to be large and high-contrast.
The AX API, as it is known, allows...