#| -*-Scheme-*-
-$Id: os2graph.scm,v 1.18 2001/03/21 05:39:53 cph Exp $
+$Id: os2graph.scm,v 1.19 2002/06/26 03:28:26 cph Exp $
-Copyright (c) 1995-2001 Massachusetts Institute of Technology
+Copyright (c) 1995-2002 Massachusetts Institute of Technology
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
(minimize-window ,os2-graphics/minimize-window)
(move-cursor ,os2-graphics/move-cursor)
(open ,os2-graphics/open)
+ (open? ,os2-graphics/open-window?)
(raise-window ,os2-graphics/raise-window)
(read-button ,os2-graphics/read-button)
(read-user-event ,os2-graphics/read-user-event)
(set-window/device! window device)
device))))
+(define (os2-graphics/open-window? device)
+ (if (os2-graphics-device/wid device) #t #f))
+
(define (os2-graphics/close device)
(let ((window (graphics-device/descriptor device)))
(without-interrupts
#| -*-Scheme-*-
-$Id: x11graph.scm,v 1.51 2001/02/11 00:09:07 cph Exp $
+$Id: x11graph.scm,v 1.52 2002/06/26 03:26:53 cph Exp $
-Copyright (c) 1989-2001 Massachusetts Institute of Technology
+Copyright (c) 1989-2002 Massachusetts Institute of Technology
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
|#
;;;; X Graphics Interface
(move-cursor ,x-graphics/move-cursor)
(move-window ,x-graphics/move-window)
(open ,x-graphics/open)
+ (open? ,x-graphics/open-window?)
(query-pointer ,x-graphics/query-pointer)
(raise-window ,x-graphics/raise-window)
(reset-clip-rectangle ,x-graphics/reset-clip-rectangle)
(remove-all-from-gc-finalizer! (x-display/window-finalizer display))
(remove-from-gc-finalizer! display-finalizer display)
(set-x-display/xd! display #f))))))
+
+(define (x-graphics/open-display? display)
+ (if (x-display/xd display) #t #f))
\f
(define (make-event-previewer display)
(let ((registration))
(define-integrable (x-graphics-device/visibility device)
(x-window/visibility (graphics-device/descriptor device)))
+(define (x-graphics/open-window? device)
+ (if (x-graphics-device/xw device) #t #f))
+
(define (x-graphics/close-window device)
(without-interrupts
(lambda ()