Contents

CGEventSource

Defines an opaque type that represents the source of a Quartz event.

Declaration

class CGEventSource

Overview

A Quartz event source is an object that contains accumulated state related to event generation and event posting. Every event source has an associated global event state table called a source state. When you call init(stateID:) to create an event source, you specify which source state to use. For more information about source states, see CGEventSourceStateID.

A typical use of an event source would be to obtain the source from a Quartz event received by an event tap callback function, and then to use that source for any new events created as a result of the received event. This has the effect of marking the events as being related.

This opaque type is derived from CFType and inherits the properties that all Core Foundation types have in common. For more information, see CFTypeRef.

Topics

Initializers

Instance Properties

Type Properties

Instance Methods

Type Methods

See Also

Data Types