Generic Function | Package: cg | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version

## device

Arguments: form

Returns class of a window or the class to instantiate when running a form (that is, it is the accessor/setter of the `class` slot of a form). A form (a special window used to design actual application windows) is always an instance of the `form` class, to provide its special widget-editing behavior. The class property indicates the intended class that should be instantiated for the application when the form is run or the window associated with the form is created. This function accesses the class slot (since `class` is a Common Lisp symbol, its name is not available to be the accessor/setter).

But note that it is uncommon to need to use that function programmatically (one typically sets the class slot upon creation of a window with make-window or using the `class` slot in an inspector window). The form (using Common Lisp functions) `(class-name (class-of object))` also serves as an accessor.

This function can also be applied to a window object which is not a form, in which case it returns what `(class-name (class-of object))` would return, the class of the window.

Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version