Matthew Flatt
1800680c6b
racket/gui: fix access of scrollbar values for canvas without a scrollbar
2012-08-12 20:17:29 -06:00
Matthew Flatt
3a9f8eea4f
racket/gui cocoa: fix internal ObjC class names
...
"My" -> "Racket". The "My" prefix was from initial experiments,
of course, and I just never got around to changing it before.
I think these names go into a global namespace, though, at the
ObjC level, so they need to have a distinct and Racket-specific
prefix.
2012-05-16 09:43:23 -06:00
Matthew Flatt
68e005fb2c
racket/draw: make-immutable-{color,brush,pen} => make-{color,brush,pen}
...
Also, use keywords for `make-pen' and `make-brush'.
Adding `make-pen' and `make-color' creates many conflicts among
teaching libraries, such as `2htdp/image'. These are easy to fix
up in the tree, but adding such obvious names to `racket/draw'
may create other compatibility problems, so we might have to reconsider
the names.
In consultation with Asumu.
2012-05-01 21:04:40 -06:00
Asumu Takikawa
8db45eb557
Add immutable constructors for color%, brush%, pen%
...
- Make set-immutable a local method and document
is-immutable? as a public method
- Add some racket/draw tests
2012-05-01 21:20:52 -04:00
Asumu Takikawa
d7fefc848b
Fix requires to avoid circular dependencies.
2012-03-30 23:34:34 -04:00
Robby Findler
1945ff2709
add make-platform-bitmap
...
also: use it in pict's rendering and
remove redex's platform-specific font choice
(going back to using 'modern on all platforms)
closes PR 12554
2012-02-21 16:19:45 -06:00
Matthew Flatt
4bbb2d41aa
cocoa: fix some GL problems
2011-11-03 09:12:13 -06:00
Matthew Flatt
461af202c5
implement 'border style for `panel%'
2011-08-13 07:00:51 -06:00
Matthew Flatt
456e9befd3
fix refresh' on
window<%>'s other than `canvas%'s
2011-08-12 17:03:28 -06:00
Matthew Flatt
93e1467b8b
racket/gui: scrollbar support panels
2011-02-24 13:23:51 -07:00
Matthew Flatt
85951bf665
gtk: smoother editor-canvas resize
...
- call `on-size' on setting the canvas size, like Win32 and Cocoa,
which mainly shows/hides auto-shown scrollbars more on time
(e.g., DrRacket doesn't start with horizontal scrollbars that
immediately disappear)
- switch mouse tracking to "hint" mode, instead of catching every
single mouse position
- when queueing `on-size' methos in response to client-size changes,
cancel and queued but undelivered calls; in the case of editor
canvases, this doesn't really have an effect, due to the other
`on-size' call
Closes PR 11369, hopefully
2011-02-19 16:10:00 -07:00
Matthew Flatt
8cbc701671
cocoa: fix problems with live-resize
...
that were created by the queue-sync change
2011-01-26 12:57:01 -07:00
Matthew Flatt
ae5093a134
more consistent on-size' and
on-move'
2011-01-05 10:00:07 -07:00
Matthew Flatt
a3adf07fd2
clean up pre-drawing of canvases for a frame to show
2010-12-24 20:09:16 -06:00
Matthew Flatt
975c2400a1
cocoa: fix interaction of combo-field% popup and canvas refresh
...
and also reduce work on redundant show/hide of canvas
Closes PR 11557
2010-12-19 18:58:27 -07:00
Matthew Flatt
0c4d2e332c
fix transparent-canvas detection
2010-12-17 10:46:06 -07:00
Matthew Flatt
c9e778c541
cocoa and gtk: make combo-field% `on-popup' work better
2010-12-16 10:48:28 -07:00
Matthew Flatt
37d16cf8f8
cocoa: fix race condition on window enabling
2010-11-30 09:32:58 -07:00
Matthew Flatt
262531e231
cocoa: fix enable & disable of windows
2010-11-28 08:01:06 -07:00
Matthew Flatt
510c3f8a33
cocoa: try to fix problem with drifting gc-blit window
2010-11-23 10:02:45 -07:00
Matthew Flatt
1c6f745ac1
adjust canvas refresh strategy yet again
...
- there seems to be no need to auto-resume flushes on a canvas,
which can create flicker if the auto-resume timeout turns out
to be too short
2010-11-12 20:39:58 -07:00
Matthew Flatt
53febbeb6c
cocoa: fix a double vs. float mismatch in getting scroll positions
2010-11-06 21:22:52 -06:00
Matthew Flatt
39596efef5
cocoa and gtk: fix combo% `on-popup' method
2010-11-05 15:54:56 -06:00
Matthew Flatt
72a19d2ab3
gtk: periodic canvas flushing
2010-11-05 15:54:54 -06:00
Matthew Flatt
e033d9edf1
cocoa & gtk: fix some test failures
2010-11-05 15:54:54 -06:00
Matthew Flatt
d7f1d12ea1
clean up
2010-11-05 15:54:49 -06:00
Matthew Flatt
4f2e59e7a6
some fixes prompted by the test suite
2010-11-05 15:54:48 -06:00
Matthew Flatt
2cebc60eca
ppc cocoa
2010-11-05 15:54:45 -06:00
Matthew Flatt
27f18efa88
gtk: make gl support optional and also clean up some unneeded unimplementeds
2010-11-05 15:54:41 -06:00
Matthew Flatt
0a47a81aba
`make-gl-bitmap' for cocoa and maybe gtk
2010-11-05 15:54:38 -06:00
Matthew Flatt
b9e6ffe18c
win32: canvas gl, almost
2010-11-05 15:54:38 -06:00
Matthew Flatt
1bddb120f9
cocoa: opengl canvases
2010-11-05 15:54:37 -06:00
Matthew Flatt
5dd568050b
move collecting-blit helper to common code
2010-11-05 15:54:35 -06:00
Matthew Flatt
682355def4
move gtk+cocoa canvas autoscroll support to common mixin
2010-11-05 15:54:34 -06:00
Matthew Flatt
631f0a6e34
cocoa: control-border in canvas%
2010-11-05 15:54:33 -06:00
Matthew Flatt
f40e7edae8
unify cocoa & gtk canvas-painting implementation
2010-11-05 15:54:27 -06:00
Matthew Flatt
51aacfe949
add make-screen-bitmap and canvas% make-bitmap; specialize for X11
2010-11-05 15:54:26 -06:00
Matthew Flatt
af499e3039
fix focus and frame-modified problems
2010-11-05 15:54:25 -06:00
Matthew Flatt
e72cf85175
toward better refresh for gtk & other bug fixes
2010-11-05 15:54:23 -06:00
Matthew Flatt
0691f0491e
collecting-blit for cocoa
2010-11-05 15:54:23 -06:00
Matthew Flatt
748115fe91
still again yet another refinement to cocoa refresh
2010-11-05 15:54:22 -06:00
Matthew Flatt
6d8bb2cab4
fix yet another refresh problem
2010-11-05 15:54:22 -06:00
Matthew Flatt
0e64be35b7
fix text-drawing performance
2010-11-05 15:54:21 -06:00
Matthew Flatt
f13b569b75
more attempts to avoid flicker
2010-11-05 15:54:21 -06:00
Matthew Flatt
f1e2db412f
new queue level for refresh events
2010-11-05 15:54:20 -06:00
Matthew Flatt
31e46eb8b3
more cocoa refresh refinements
2010-11-05 15:54:20 -06:00
Matthew Flatt
8ed2fba67d
fix various cocoa problems
2010-11-05 15:54:20 -06:00
Matthew Flatt
15a7a2a006
cocoa tab-panel in no-border mode uses PSMTabBarControl
2010-11-05 15:54:17 -06:00
Matthew Flatt
40c1c2ffef
cocoa cursors
2010-11-05 15:54:16 -06:00
Matthew Flatt
0114b7a4a5
misc repairs
2010-11-05 15:54:15 -06:00