Window Events

Windows generate a wide variety of events. This section is organized into separate tables for window refresh, activation, state change, cursor change, action, focus, and definition event kinds.

Table C-7. Parameter Names and Types for Window Refresh Event Kinds

Event kindParameter nameParameter type
kEventWindowUpdate kEventParamDirectObject typeWindowRef
kEventWindowDrawContent kEventParamDirectObject typeWindowRef

Table C-8. Parameter Names and Types for Window Activation Event Kinds

Event kindParameter nameParameter type

kEventWindowActivated

kEventParamDirectObject typeWindowRef

kEventWindowDeactivated

kEventParamDirectObject typeWindowRef

kEventWindowGetClickActivation

kEventParamDirectObject typeWindowRef
  kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32
  kEventParamClickActivation typeClickActivationResult

Table C-9. Parameter Names and Types for Window State Change Event Kinds

Event kindParameter nameParameter type
kEventWindowBoundsChanging kEventParamDirectObject typeWindowRef
  kEventParamAttributes typeUInt32
  kEventParamOriginalBounds typeQDRectangle
  kEventParamPreviousBounds typeQDRectangle
  kEventParamCurrentBounds typeQDRectangle
kEventWindowBoundsChanged kEventParamDirectObject typeWindowRef
  kEventParamAttributes typeUInt32
  kEventParamOriginalBounds typeQDRectangle
  kEventParamPreviousBounds typeQDRectangle
  kEventParamCurrentBounds typeQDRectangle
kEventWindowShown kEventParamDirectObject ...

Get Learning Carbon now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.