From f35a1c1c783d0f1196db8b7159e83d92e97e1ec3 Mon Sep 17 00:00:00 2001 From: dyoo Date: Wed, 17 Aug 2011 14:35:14 -0400 Subject: [PATCH] fleshing out the design --- web-world/DESIGN | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/web-world/DESIGN b/web-world/DESIGN index 5d2096b..9375e39 100644 --- a/web-world/DESIGN +++ b/web-world/DESIGN @@ -148,8 +148,7 @@ then the program will be: - - +---------------------------------------------------------------------- Example 3 @@ -173,6 +172,7 @@ handler takes, not only the world, but the current view. + #lang planet dyoo/whalesong (define-resource index.html "index.html") @@ -199,12 +199,14 @@ handler takes, not only the world, but the current view. "click" on-click)) - (big-bang "Jane Doe" (initial-view my-view) (to-draw draw)) +---------------------------------------------------------------------- + + @@ -286,6 +288,13 @@ The content of a view may be functionally queried or updated: Grab at the text of the currently focused nodes. + view-css: view string string -> view + Update the CSS style value of the currently focused nodes. + + view-css: view string -> view + Get at the CSS style value of the currently focused nodes. + + view-replace: view view -> view @@ -304,6 +313,13 @@ The content of a view may be functionally queried or updated: focused elements of the first view. + view-count: view -> number + + Count how many nodes are currently focused. + + + + We need to be able to bind events to elements of the view.