move racket/draw overview back to the racket/draw manual

but keep expanded roadmap of drawing and GUI libraries
This commit is contained in:
Matthew Flatt 2010-11-27 17:47:30 -07:00
parent c92a6b0e3d
commit af318c4501
7 changed files with 30 additions and 21 deletions

View File

@ -11,13 +11,11 @@
@racketmodname[racket/draw] library provides all of the class, @racketmodname[racket/draw] library provides all of the class,
interface, and procedure bindings defined in this manual.} interface, and procedure bindings defined in this manual.}
For an overview of the drawing library, see @secref["draw" #:doc
'(lib "scribblings/guide/guide.scrbl")].
@table-of-contents[] @table-of-contents[]
@;------------------------------------------------------------------------ @;------------------------------------------------------------------------
@include-section["guide.scrbl"]
@include-section["bitmap-class.scrbl"] @include-section["bitmap-class.scrbl"]
@include-section["bitmap-dc-class.scrbl"] @include-section["bitmap-dc-class.scrbl"]
@include-section["brush-class.scrbl"] @include-section["brush-class.scrbl"]

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@ -1,12 +1,10 @@
#lang scribble/doc #lang scribble/doc
@(require scribble/manual @(require scribble/manual
"guide-utils.ss" "common.ss"
scribble/eval scribble/eval
scribble/racket scribble/racket
(for-syntax racket/base) (for-syntax racket/base)
(for-label racket/draw (for-label racket/math))
racket/math
racket/gui))
@(define draw-eval (make-base-eval)) @(define draw-eval (make-base-eval))
@interaction-eval[#:eval draw-eval (require racket/class @interaction-eval[#:eval draw-eval (require racket/class
@ -74,14 +72,15 @@
@(define-linked-method rotate dc<%>) @(define-linked-method rotate dc<%>)
@(define-linked-method set-path region%) @(define-linked-method set-path region%)
@title[#:tag "draw"]{Drawing} @title[#:tag "overview"]{Overview}
The @racketmodname[racket/draw] library provides a drawing API that is The @racketmodname[racket/draw] library provides a drawing API that is
based on the PostScript drawing model. It supports line drawing, shape based on the PostScript drawing model. It supports line drawing, shape
filling, bitmap copying, alpha blending, and affine transformations filling, bitmap copying, alpha blending, and affine transformations
(i.e., scale, rotation, and translation). (i.e., scale, rotation, and translation).
@guideother{See @secref["classes"] for an introduction to classes and @margin-note{See @secref["classes" #:doc '(lib
"scribblings/guide/guide.scrbl")] for an introduction to classes and
interfaces in Racket.} interfaces in Racket.}
Drawing with @racketmodname[racket/draw] requires a @deftech{drawing context} Drawing with @racketmodname[racket/draw] requires a @deftech{drawing context}

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -2,7 +2,7 @@
@(require scribble/manual @(require scribble/manual
"guide-utils.ss") "guide-utils.ss")
@title[#:tag "graphics" #:style 'toc]{Graphics and GUIs} @title[#:tag "graphics"]{Graphics and GUIs}
Racket provides many libraries for graphics and graphical user Racket provides many libraries for graphics and graphical user
interfaces (GUIs): interfaces (GUIs):
@ -10,15 +10,19 @@ interfaces (GUIs):
@itemlist[ @itemlist[
@item{The @racketmodname[racket/draw] library provides basic drawing @item{The @racketmodname[racket/draw] library provides basic drawing
tools, including @tech{drawing contexts} such as bitmaps and tools, including drawing contexts such as bitmaps and
PostScript files. PostScript files.
See @secref["draw"] for an overview.} See @other-doc['(lib "scribblings/draw/draw.scrbl")]
for more information.}
@item{The @racketmodname[racket/gui] library provides GUI widgets @item{The @racketmodname[racket/gui] library provides GUI widgets
such as windows, buttons, checkboxes, and text fields. The such as windows, buttons, checkboxes, and text fields. The
library also includes a sophisticated and extensible text library also includes a sophisticated and extensible text
editor.} editor.
See @other-doc['(lib "scribblings/gui/gui.scrbl")]
for more information.}
@item{The @racketmodname[slideshow/pict] library provides a more @item{The @racketmodname[slideshow/pict] library provides a more
functional abstraction layer over @racketmodname[racket/draw]. functional abstraction layer over @racketmodname[racket/draw].
@ -29,7 +33,7 @@ interfaces (GUIs):
"scribblings/scribble/scribble.scrbl") "top"]{Scribble} "scribblings/scribble/scribble.scrbl") "top"]{Scribble}
documents or other drawing tasks. Pictures created with the documents or other drawing tasks. Pictures created with the
@racketmodname[slideshow/pict] library can be rendered to any @racketmodname[slideshow/pict] library can be rendered to any
@tech{drawing context}. drawing context.
See @other-doc['(lib "scribblings/slideshow/slideshow.scrbl")] See @other-doc['(lib "scribblings/slideshow/slideshow.scrbl")]
for more information.} for more information.}
@ -49,5 +53,3 @@ interfaces (GUIs):
information.} information.}
] ]
@include-section["draw.scrbl"]

View File

@ -52,8 +52,6 @@ precise details to @|Racket| and other reference manuals.
@include-section["languages.scrbl"] @include-section["languages.scrbl"]
@include-section["graphics.scrbl"]
@include-section["performance.scrbl"] @include-section["performance.scrbl"]
@include-section["running.scrbl"] @include-section["running.scrbl"]

View File

@ -4,14 +4,26 @@
@title{More Libraries} @title{More Libraries}
@other-manual['(lib "scribblings/foreign/foreign.scrbl")] describes This guide covers only the Racket language and libraries that are
tools for using Racket to access libraries that are normally used by C documented in @|Racket|. The Racket distribution includes many
programs. additional libraries.
@include-section["graphics.scrbl"]
@section{The Web Server}
@other-manual['(lib "web-server/scribblings/web-server.scrbl")] @other-manual['(lib "web-server/scribblings/web-server.scrbl")]
describes the Racket web server, which supports servlets implemented describes the Racket web server, which supports servlets implemented
in Racket. in Racket.
@section{Using Foreign Libraries}
@other-manual['(lib "scribblings/foreign/foreign.scrbl")] describes
tools for using Racket to access libraries that are normally used by C
programs.
@section{And More}
@link["../index.html"]{Racket Documentation} lists documentation for @link["../index.html"]{Racket Documentation} lists documentation for
many other installed libraries. Run @exec{raco docs} to find many other installed libraries. Run @exec{raco docs} to find
documentation for libraries that are installed on your system and documentation for libraries that are installed on your system and