scx/scheme/xlib/extension.scm

18 lines
475 B
Scheme
Raw Normal View History

2001-08-29 10:44:15 -04:00
(define (list-extensions display)
(vector->list (%list-extensions (display-Xdisplay display))))
(import-lambda-definition %list-extensions (Xdisplay)
"scx_List_Extensions")
(define (query-extension display name)
(let ((res (%query-extension (display-Xdisplay display)
(if (symbol? name)
(string->symbol name)
name))))
(if res
(vector->list res)
res)))
(import-lambda-definition %query-extension (Xdisplay name)
"scx_Query_Extension")