original commit: 4f0ee2013d380d14f10278b53a1c2b151586a147
This commit is contained in:
Matthew Flatt 2001-04-06 15:10:06 +00:00
parent e0e2f03c47
commit b9aeba9a0c
2 changed files with 14 additions and 2 deletions

View File

@ -3670,9 +3670,18 @@
(sequence
(let ([cwho '(constructor canvas)])
(check-container-parent cwho parent)
(check-style cwho #f '(border hscroll vscroll) style)
(check-container-ready cwho parent)))
(check-style cwho #f '(border hscroll vscroll gl) style)
(check-container-ready cwho parent)
(when (memq 'gl style)
(unless (eq? (system-type) 'windows)
(raise-mismatch-error (who->name cwho)
"the 'gl style flag is not supported on this platform: "
style)))))
(public
[swap-gl-buffers (lambda () (send wx swap-buffers))]
[grab-gl-context (lambda () (send wx this-context-current))]
[restore-gl-context (lambda () (send wx previous-context-current))]
[accept-tab-focus (entry-point
(case-lambda
[() (send wx get-tab-focus)]

View File

@ -333,6 +333,9 @@
on-size
on-set-focus
on-kill-focus
previous-context-current
this-context-current
swap-buffers
on-scroll
set-scroll-page
set-scroll-range