O'Reilly logo

Learning Carbon by Apple Computer Inc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required