diff --git a/collects/mrlib/image-core.rkt b/collects/mrlib/image-core.rkt index c81735f2..860d8914 100644 --- a/collects/mrlib/image-core.rkt +++ b/collects/mrlib/image-core.rkt @@ -1,8 +1,8 @@ -#lang scheme/base +#lang racket/base #| This library is the part of the 2htdp/image -teachpack that has to be shared between drscheme +teachpack that has to be shared between drracket and the user's program to make copy and paste work right. @@ -26,11 +26,11 @@ has been moved out). |# -(require scheme/class - scheme/gui/base - scheme/math +(require racket/class + racket/gui/base + racket/math "private/image-core-bitmap.ss" - (for-syntax scheme/base)) + (for-syntax racket/base)) (define-for-syntax id-constructor-pairs '()) (define-for-syntax (add-id-constructor-pair a b) @@ -317,7 +317,7 @@ has been moved out). (and (= (round (bb-right bb1)) (round (bb-right bb2))) (= (round (bb-bottom bb1)) (round (bb-bottom bb2))) (= (round (bb-baseline bb1)) (round (bb-baseline bb2))))) -(define scheme/base:read read) +(define racket/base:read read) (define image-snipclass% (class snip-class% @@ -331,7 +331,7 @@ has been moved out). (and str (with-handlers ((exn:fail:read? (λ (x) #f))) (parse - (scheme/base:read + (racket/base:read (open-input-string str)))))]) (if lst diff --git a/collects/mrlib/scribblings/image-core.scrbl b/collects/mrlib/scribblings/image-core.scrbl new file mode 100644 index 00000000..e798e08b --- /dev/null +++ b/collects/mrlib/scribblings/image-core.scrbl @@ -0,0 +1,24 @@ +#lang scribble/doc +@(require "common.ss") + +@title{Image Core} + +@defmodule[mrlib/image-core] + +This library is the core part of the @racketmodname[2htdp/image] library that DrRacket +links into the namespace of all languages that it runs. This ensures that minimal +support for these images are the same in all languages, specifically including +support for printing the images and constructing the core data structures making +up an image. + +@defproc[(render-image [image image?] + [dc (is-a?/c dc<%>)] + [dx number?] + [dy number?]) + void?]{ + Draws @racket[image] in @racket[dc] at the position (@racket[dx],@racket[dy]). +} + +@defproc[(image? [v any/c]) boolean?]{ + Recognizes the images that library handles. +} \ No newline at end of file diff --git a/collects/mrlib/scribblings/mrlib.scrbl b/collects/mrlib/scribblings/mrlib.scrbl index 7991b3d5..8d4e8eb8 100644 --- a/collects/mrlib/scribblings/mrlib.scrbl +++ b/collects/mrlib/scribblings/mrlib.scrbl @@ -18,6 +18,7 @@ @include-section["path-dialog.scrbl"] @include-section["plot.scrbl"] @include-section["switchable-button.scrbl"] +@include-section["image-core.scrbl"] @include-section["tex-table.scrbl"] @section{Acknowledgments} diff --git a/collects/scribblings/gui/canvas-class.scrbl b/collects/scribblings/gui/canvas-class.scrbl index 0550c2ea..16ee2c7c 100644 --- a/collects/scribblings/gui/canvas-class.scrbl +++ b/collects/scribblings/gui/canvas-class.scrbl @@ -184,7 +184,7 @@ See also @method[canvas% init-manual-scrollbars] for information about manual scrollbars. The horizontal and vertical scrollbars are always either both manual or both automatic, but they are independently enabled. Automatic scrollbars can be - re-initialized as manual, and vice-versa. + re-initialized as manual, and vice versa. If either @scheme[horiz-pixels] or @scheme[vert-pixels] is @scheme[#f], the scrollbar is not enabled in the corresponding @@ -224,7 +224,7 @@ See also @method[canvas% init-auto-scrollbars] for information about automatic scrollbars. The horizontal and vertical scrollbars are always either both manual or both automatic, but they are independently enabled. Automatic scrollbars can be re-initialized - as manual, and vice-versa. + as manual, and vice versa. The @scheme[h-length] and @scheme[v-length] arguments specify the length of each scrollbar in scroll steps (i.e., the maximum value of each diff --git a/collects/scribblings/gui/style-delta-class.scrbl b/collects/scribblings/gui/style-delta-class.scrbl index e75d0b34..c68afd01 100644 --- a/collects/scribblings/gui/style-delta-class.scrbl +++ b/collects/scribblings/gui/style-delta-class.scrbl @@ -404,8 +404,8 @@ the possible values are: @itemize[ @item{@scheme['change-nothing] --- reset all changes} @item{@scheme['change-normal] --- turn off all styles and resizings} -@item{@scheme['change-toggle-underline] --- underline regions that are currently not underlined, and vice-versa} -@item{@scheme['change-toggle-size-in-pixels] --- interpret sizes in pixels for regions that are currently interpreted in points, and vice-versa} +@item{@scheme['change-toggle-underline] --- underline regions that are currently not underlined, and vice versa} +@item{@scheme['change-toggle-size-in-pixels] --- interpret sizes in pixels for regions that are currently interpreted in points, and vice versa} @item{@scheme['change-normal-color] --- change the foreground and background to black and white, respectively} @item{@scheme['change-italic] --- change the style of the font to @italic{italic}} @item{@scheme['change-bold] --- change the weight of the font to @bold{bold}} diff --git a/doc/release-notes/gracket/HISTORY.txt b/doc/release-notes/gracket/HISTORY.txt index d5735994..96d440e9 100644 --- a/doc/release-notes/gracket/HISTORY.txt +++ b/doc/release-notes/gracket/HISTORY.txt @@ -1,3 +1,9 @@ +Version 5.0, May 2010 + +Changed the executable from MrEd to GRacket + +---------------------------------------------------------------------- + Version 4.2.5, March 2010 Changed radio-box% to allow #f as a selection so that no buttons are