
1 CAPI Reference Entries
quit-interface function closes the top level interface containing a specified pane.
quit-interface pane &key force
confirm-destroy-function. If it is okay to close the interface, it then callsdestroy to do so. If force is specified, then neither theconfirm-destroy-function or thedestroy-callback are called, and the window is just closed immediately.
quit-interface with thedestroy-callback and theconfirm-destroy-function.
(setq interface (capi:display
(make-instance
'capi:interface
:title "Test Interface"
:destroy-callback
#'(lambda (interface)
(capi:display-message
"Quitting ~S" interface)))))
(capi:quit-interface interface)
(setq interface (capi:display
(make-instance
'capi:interface
:title "Test Interface"
:confirm-destroy-function
#'(lambda (interface)
(capi:confirm-yes-or-no
"Really quit ~S"
interface)))))
CL-USER 4> (capi:quit-interface interface)
destroydisplayinterface

Generated with Harlequin WebMaker