MATLAB Programming/Psychtoolbox/Screen Commands/WindowKind

Usage:

kind=Screen(windowPtr,'WindowKind')

Returns the type of windowPtr: 0 if it's invalid, -1 for offscreen, 1 for onscreen, 2 MATLAB's onscreen.