Commit Graph

76 Commits

Author SHA1 Message Date
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
Matthew Flatt
a09543772a gtk: no freeze/thaw before/after unmap
Merge to 5.2
2011-10-17 15:53:07 -06:00
Matthew Flatt
9d5f45a9d1 gtk: fix border (when requested) for canvas% with scrollbars 2011-09-01 07:14:05 -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
37c43c23d6 gtk: fix refresh freeze/thaw and reparent interaction
Closes PR 11947
2011-08-02 20:00:56 -06:00
Matthew Flatt
5edc0c70af change GDK_POINTER_MOTION_HINT_MASK back to GDK_POINTER_MOTION_MASK
because HINT doesn't works as expected, and the problem it
 seemed to solve at one time (slow resize in DrRacket) seems
 to have been fixed some other way. GDK_MOUSE_MOTION_MASK
 isn't needed, since GDK_POINTER_MOTION_MASK covers it.

 Merge to 5.1.2
2011-07-16 14:30:08 -06:00
Matthew Flatt
546faf8b34 fix gl canvas created after parent is shown
Merge to 5.1.1
2011-04-16 13:24:58 -06:00
Matthew Flatt
cd4d3e3d95 gtk: fix dragging events
Closes PR 11786
2011-03-08 07:55:53 -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
d8e123753c gtk: enable input-method (e.g., Chinese) support 2011-01-17 18:28:31 -07:00
Matthew Flatt
ae5093a134 more consistent on-size' and on-move' 2011-01-05 10:00:07 -07:00
Matthew Flatt
15fa34b091 gtk: tolerate absence of a minor combo_box function 2010-08-12 19:52:37 -04:00
Matthew Flatt
5ea0c93e0f gtk: combo-field% fixes
Closes PR 11569
2010-12-28 14:58:22 -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
39596efef5 cocoa and gtk: fix combo% `on-popup' method 2010-11-05 15:54:56 -06:00
Matthew Flatt
b9f3957a76 gtk and cocoa: add flush method to canvas% and fix periodic flush 2010-11-05 15:54:55 -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
27f18efa88 gtk: make gl support optional and also clean up some unneeded unimplementeds 2010-11-05 15:54:41 -06:00
Matthew Flatt
18c99e52a5 cocoa & gtk: color dialog 2010-11-05 15:54:39 -06:00
Matthew Flatt
bc509c86cd gtk: fix gl canvas painting 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
b2981f05b2 gtk: more gl 2010-11-05 15:54:37 -06:00
Matthew Flatt
1a2ffacbbe gtk: first cut at gl support 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
b459fcf91c win32: canvas autoscroll 2010-11-05 15:54:34 -06:00
Matthew Flatt
682355def4 move gtk+cocoa canvas autoscroll support to common mixin 2010-11-05 15:54:34 -06:00
Matthew Flatt
bdc9538244 gtk: fix scroll change to not generate callback 2010-11-05 15:54:30 -06:00
Matthew Flatt
f40e7edae8 unify cocoa & gtk canvas-painting implementation 2010-11-05 15:54:27 -06:00
Matthew Flatt
5ebfa781bd screen dc corrections and clarifications 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
bff39a1832 fix gtk collecting blit to revert immediately when gc ends 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
a2f02f6f39 collecting blit for gtk 2010-11-05 15:54:24 -06:00
Matthew Flatt
e72cf85175 toward better refresh for gtk & other bug fixes 2010-11-05 15:54:23 -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
8c9e239798 key release events 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
ae05eddf14 generalize editor selection mechanism to support Windows style 2010-11-05 15:54:19 -06:00
Matthew Flatt
6772afbd2e fix problems with gtk canvas client size and with checkable menus 2010-11-05 15:54:18 -06:00