Recursive rectangles

From Organic Design wiki
Revision as of 20:10, 24 November 2006 by Nad (talk | contribs) (Process)

This is the first step towards widgets for the nodal interface. This very basic milestone involves a mouse-click event initiating a workflow to resolve the recipient of the click. This recipient then creates a sprite within its own bounds.


Recursive-rectangles.jpg


This example image of the recursive rectangles output based on the current peerd.c/interface.c shows the kind of sprites and their layout configuration as they're created. The current version of interface.c does not resolve a recipient, rather all sprites are created in the background (desktop) layer, the image above was made to show the recursive aspect with photoshop, but should be outputting this kind of structure natively very soon.

Process

  • Mouse click event is detected in interface.c environment
  • New click-node created containing click-type, time info and a spriteInfo struct for click metrics
  • click-node would be hooked in to current time-tree loop here if record needed
  • click-node/nodeCODE is set to &click (later all function references read from nodal function structure, see execution)
  • when &click resolves a recipient node,
    • create new sprite-node (using &spriteInit)
    • hook the sprite-node into time-tree wco click-node
  • aggregate click-node info and destroy (node is merged in to parent)