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.