MacroPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version