MacroPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
This page is new in 9.0.

with-cg-bindings

Arguments: &body body

This macro allows establishing the Common Graphics variable bindings in an existing process where it is not feasible to pass *default-cg-bindings* at process creation time.

The following example should work in an arbitrary process that was not created with the *default-cg-bindings*. This form will return only when the user closes the window that it creates.

(with-cg-bindings
  (let* ((window (make-window :foo :title "Close Me")))
    (event-loop :window window)))

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page is new in the 9.0 release.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
This page is new in 9.0.