fleshing out the design
This commit is contained in:
parent
5514bf2715
commit
f35a1c1c78
|
@ -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.
|
|||
</html>
|
||||
|
||||
|
||||
|
||||
#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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user