Commit Graph

46 Commits

Author SHA1 Message Date
Asumu Takikawa
14ef89c37d Fix documentation for gui, draw, and framework.
- General cleanup/consistency (e.g. void -> void?)
  - Fix misdocumented methods (found violations via contracts)
2011-04-22 11:27:08 -04:00
Matthew Flatt
52598af1c7 fix doc typo
Closes PR 11840
2011-04-09 17:12:23 -06:00
Robby Findler
d265231452 added some examples for pen cap and join styles 2011-03-30 09:44:54 -05:00
Matthew Flatt
0fda70b7ca fix region% problems
- fail gracefully with pre 1.4 Cairo
 - clip all drawing for an empty clipping region
 - disallow `is-empty?' on a region without a DC
   (since the test depends on the DC dimensions)
2011-03-28 15:15:57 -06:00
Matthew Flatt
ad922d545c document Unix lib dependencies for racket/draw' and racket/gui/base' 2011-03-28 06:23:14 -06:00
Matthew Flatt
84ad491837 fix docs to explain pen cap and join styles
--- in prose, but pictures would be good, if anyone wants to add them
2011-03-27 16:27:19 -06:00
Matthew Flatt
67b7c8f3f4 fix PS/PDF size
since a PS/PDF bounding box is an integer, take the ceiling
 of a requested width & height
2011-03-27 16:27:19 -06:00
Matthew Flatt
95f0d16761 clean up drawing with 0-width pens (hairline mode) 2011-03-27 14:21:21 -06:00
Matthew Flatt
e8cb27c08c add `get-device-scale' to dc<%> 2011-03-15 07:37:42 -06:00
Robby Findler
bd3a43db98 changed some nonnegative-real?'s into (and/c real? (not/c negative?))'s 2011-03-14 19:38:24 -05:00
Matthew Flatt
da3fd90256 doc repair
for PR 11734 follow-up
2011-02-14 07:11:45 -07:00
Matthew Flatt
2d7dfab9b9 fix docs for methods that accept a list of pairs as points 2011-02-11 06:07:09 -07:00
Matthew Flatt
784c3de563 fix port as PostScript/PDF/SVG destination
by putting port-calling work in a specific thread
2011-01-18 19:50:50 -07:00
Matthew Flatt
98822cf1f9 adjust `racket/gui' and dependencies to survive a locked preference file
- adds a `#:timeout-lock-there' argument to `get-preference'
 - fixes preference looup in `racket/gui'
 - make preference names consistently use `GRacket' and consistently
   fall back on `MrEd' names
 - fix Emacs-style undo mode while we're at it
2011-01-18 17:37:33 -07:00
Matthew Flatt
a9dd80110a restore doc & page checking for `post-script-dc%' et al.
and also fix up wiring of `printer-dc%' in `editor<%>' so
 that `is-a?' tests works as expected
2011-01-14 20:30:51 -07:00
Matthew Flatt
6afffb329c add `svg-dc%' 2011-01-10 16:41:16 -07:00
Matthew Flatt
4f56618c6d improve canvas-drawing docs 2011-01-06 07:43:26 -07:00
Matthew Flatt
577755630a disable brush gradient when the target is monochrome 2011-01-05 07:02:00 -07:00
Kevin Tew
c0ec320be0 Gradient doc fixes 2011-01-04 14:45:18 -07:00
Kevin Tew
e35603988a gradients get picture examples 2011-01-04 13:51:30 -07:00
Matthew Flatt
553723627c gradients: refine checking and docs to fit various conventions 2011-01-04 12:44:36 -07:00
Kevin Tew
b88ff89837 racket/draw gradient support 2011-01-04 11:37:06 -07:00
Robby Findler
b3a1d7860a added default value for alpha in color% 2010-12-31 09:58:50 -06:00
Matthew Flatt
eddae6749d clean up handling of not-ok?', bitmap-dc%'-selected, and mutated bitmaps 2010-12-30 08:35:56 -07:00
Matthew Flatt
8c7f829205 add make-font' to racket/draw' 2010-12-30 07:05:25 -07:00
Matthew Flatt
a974dad8bf add alpha value to `color%' 2010-12-30 07:05:25 -07:00
Matthew Flatt
d2fb0b8f7d further `draw-bitmap' doc improvements 2010-12-16 21:20:13 -07:00
Matthew Flatt
6f114b318b correct draw-bitmap docs 2010-12-16 20:41:54 -07:00
Matthew Flatt
37682242e5 docs: clarify effect of mask-bitmap alphas channel in dc<%> draw-bitmap 2010-12-16 19:36:13 -07:00
Sam Tobin-Hochstadt
dae1543255 Fix local file reference to water.png image. 2010-12-13 14:37:08 -05:00
Matthew Flatt
93126d1546 dc, pen, and brush doc corrections related to v5.1 changes 2010-12-01 15:48:55 -07:00
Matthew Flatt
68391fe2ea reorganize racket/gui docs and expand canvas-drawing overview 2010-11-27 20:05:20 -07:00
Matthew Flatt
af318c4501 move racket/draw overview back to the racket/draw manual
but keep expanded roadmap of drawing and GUI libraries
2010-11-27 17:48:09 -07:00
Matthew Flatt
8b3165d55b move racket/draw overview to the Guide and expand it
--- plus some minor collateral API improvements
2010-11-27 16:34:32 -07:00
Matthew Flatt
e97414b7bf bitmap% convertible to 'png-bytes; more Scribble Latex; pict in Slideshow docs 2010-11-27 07:36:12 -07:00
Matthew Flatt
abcaa1775c add width' and height' arguments to post-script-dc% and pdf-dc%
and document the change that the PS bounding box is no longer
 inferred from drawing operations
2010-11-26 20:40:43 -07:00
Matthew Flatt
7cb15899ae add `output' argument to post-script-dc% and pdf-dc% for a byte string
insteda of writing to a file
2010-11-26 11:47:24 -07:00
Matthew Flatt
f73e8c31e8 doc contract fix 2010-11-26 11:31:38 -07:00
Matthew Flatt
2edadd6113 add pdf-dc%; make slideshow/pict depend on racket/draw, not racket/gui 2010-11-26 10:35:05 -07:00
Matthew Flatt
8e8844641c fix `draw-bitmap-section-smooth' method of bitmap-dc<%> 2010-11-25 11:00:32 -07:00
Matthew Flatt
e9562a8ddc Revert "Fixing use and documentation of draw-bitmap-section-smooth"
because the implementation is wrong, not the documented contract

This reverts commit 68051f845a.
2010-11-25 10:40:06 -07:00
Jay McCarthy
68051f845a Fixing use and documentation of draw-bitmap-section-smooth 2010-11-25 11:47:02 -05:00
Matthew Flatt
f245b6ca29 fix bitmap% load-file' method and remove {get,set}-gl-config'
Closes PR 11460
2010-11-24 06:08:44 -07:00
Matthew Flatt
fe208c63bd add some missing bitmap% and dc<%> docs 2010-11-07 07:14:59 -07:00
Matthew Flatt
ba2ea79f12 fix and document failure handling of image reading in bitmap% 2010-11-07 06:50:52 -07:00
Matthew Flatt
694745e998 first cut at splitting draw and gui docs 2010-11-05 21:57:13 -06:00