---
title: CGWindowListOption
framework: coregraphics
role: symbol
role_heading: Structure
path: coregraphics/cgwindowlistoption
---

# CGWindowListOption

The data type used to specify the options for gathering a list of windows.

## Declaration

```swift
struct CGWindowListOption
```

## Overview

Overview This type is used in conjunction with the constants described in Window List Option Constants.

## Topics

### Initializers

- [init(rawValue:)](coregraphics/cgwindowlistoption/init(rawvalue:).md)

### Type Properties

- [excludeDesktopElements](coregraphics/cgwindowlistoption/excludedesktopelements.md)
- [optionAll](coregraphics/cgwindowlistoption/optionall.md)
- [optionIncludingWindow](coregraphics/cgwindowlistoption/optionincludingwindow.md)
- [optionOnScreenAboveWindow](coregraphics/cgwindowlistoption/optiononscreenabovewindow.md)
- [optionOnScreenBelowWindow](coregraphics/cgwindowlistoption/optiononscreenbelowwindow.md)
- [optionOnScreenOnly](coregraphics/cgwindowlistoption/optiononscreenonly.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Enumerations

- [CGCaptureOptions](coregraphics/cgcaptureoptions.md)
- [CGColorConversionInfoTransformType](coregraphics/cgcolorconversioninfotransformtype.md)
- [CGColorRenderingIntent](coregraphics/cgcolorrenderingintent.md)
- [CGConfigureOption](coregraphics/cgconfigureoption.md)
- [CGDisplayChangeSummaryFlags](coregraphics/cgdisplaychangesummaryflags.md)
- [CGDisplayStreamFrameStatus](coregraphics/cgdisplaystreamframestatus.md)
- [CGDisplayStreamUpdateRectType](coregraphics/cgdisplaystreamupdaterecttype.md)
- [CGError](coregraphics/cgerror.md)
- [CGEventField](coregraphics/cgeventfield.md)
- [CGEventFilterMask](coregraphics/cgeventfiltermask.md)
- [CGEventFlags](coregraphics/cgeventflags.md)
- [CGEventMouseSubtype](coregraphics/cgeventmousesubtype.md)
- [CGEventSourceStateID](coregraphics/cgeventsourcestateid.md)
- [CGEventSuppressionState](coregraphics/cgeventsuppressionstate.md)
- [CGEventTapLocation](coregraphics/cgeventtaplocation.md)
