diff --git a/teachpack/htdp/Docs/world.thtml b/teachpack/htdp/Docs/world.thtml index 0b48c56d79..ab2d3cf97c 100644 --- a/teachpack/htdp/Docs/world.thtml +++ b/teachpack/htdp/Docs/world.thtml @@ -33,6 +33,27 @@ students to simulate a small world of animated drawings and games: or the events of releasing a key on the keypad. +
  • {(idx on-mouse-event)} : (World Number Number MouseEvent -> + World) -> true
    (on-mouse-event clack) means that + DrScheme must call clack on the current world, the current + x and y coordinates of the mouse, and and a + (representation of the) mouseevent for every action of the mouse the programmer + (user of the computer) makes; it uses the result as the next world + +
    +
    +  ;; A MouseEventType is one of:
    +  ;; - 'button-down
    +  ;; - 'button-up
    +  ;; - 'drag
    +  ;; - 'move
    +  ;; - 'enter
    +  ;; - 'leave
    +
    +   The symbols denote the appropriate action with the mouse and (any of)
    +   its button(s).
    +
    +
  • {(idx on-redraw)} : (World -> Image) -> true
    (on-tick-event world->image) means that DrScheme calls world->image whenever the canvas must be redrawn; the @@ -69,6 +90,8 @@ students to simulate a small world of animated drawings and games: shows the list of images in loi, time-delayed

    -

    Finally, the teachpack provides all the functions that image.ss provides.

    +

    Finally, the teachpack provides all the functions that image.ss provides +except add-line, which has a slightly different functionality.

    + {(include "foot.tinc")}