Mercurial > hg > xemacs-beta
diff lisp/device.el @ 1942:da8cdcec6dff
[xemacs-hg @ 2004-03-08 15:22:44 by james]
frame.el synch with Emacs 21.3.
author | james |
---|---|
date | Mon, 08 Mar 2004 15:23:03 +0000 |
parents | 0784d089fdc9 |
children | aa5ed11f473b |
line wrap: on
line diff
--- a/lisp/device.el Sun Mar 07 22:50:38 2004 +0000 +++ b/lisp/device.el Mon Mar 08 15:23:03 2004 +0000 @@ -104,6 +104,20 @@ "Return the number of color cells of DEVICE, or nil if unknown." (device-system-metric device 'num-color-cells)) +(defun device-num-screens (&optional device) + "Return the number of display screens available on DEVICE, or 1 if unknown." + (device-system-metric device 'num-screens 1)) + +(defun device-backing-store (&optional device) + "Return the backing store capability of DEVICE. +The value may be `always', `when-mapped', `not-useful', or nil if +the question is inapplicable to a certain kind of display." + (device-system-metric device 'backing-store)) + +(defun device-save-under (&optional device) + "Return non-nil if DEVICE supports the SaveUnder feature." + (device-system-metric device 'save-under)) + (defun make-gtk-device () "Create a new GTK device." (make-device 'gtk nil))