Various typo, spelling, and punctuation fixes in scribblings.
Signed-off-by: David Van Horn <dvanhorn@ccs.neu.edu> original commit: 22e2f3061f5f120ad51678c96024363aac95095e
This commit is contained in:
commit
75260076b3
|
@ -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
|
||||
|
|
24
collects/mrlib/scribblings/image-core.scrbl
Normal file
24
collects/mrlib/scribblings/image-core.scrbl
Normal file
|
@ -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.
|
||||
}
|
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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}}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user