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 typeWindowRef
kEventWindowHidden kEventParamDirectObject typeWindowRef

Table C-10. Parameter Names and Types for Window Cursor Change Event Kinds

Event kindParameter nameParameter type
kEventWindowCursorChange kEventParamDirectObject typeWindowRef
  kEventParamMouseLocation typeQDPoint
  kEventParamKeyModifiers typeUInt32

Table C-11. Parameter Names and Types for Window Action Event Kinds

Event kindParameter nameParameter type
kEventWindowCollapse kEventParamDirectObject typeWindowRef
kEventWindowCollapsed kEventParamDirectObject typeWindowRef
kEventWindowCollapseAll kEventParamDirectObject typeWindowRef
kEventWindowExpand kEventParamDirectObject typeWindowRef
kEventWindowExpanded kEventParamDirectObject typeWindowRef
kEventWindowExpandAll kEventParamDirectObject typeWindowRef
kEventWindowClose kEventParamDirectObject typeWindowRef
kEventWindowClosed kEventParamDirectObject typeWindowRef
kEventWindowCloseAll kEventParamDirectObject typeWindowRef
kEventWindowZoom kEventParamDirectObject typeWindowRef
kEventWindowZoomed kEventParamDirectObject typeWindowRef
kEventWindowZoomAll kEventParamDirectObject typeWindowRef
kEventWindowContextualMenuSelect kEventParamDirectObject typeWindowRef
kEventWindowPathSelect kEventParamDirectObject typeWindowRef
kEventWindowGetIdealSize kEventParamDirectObject typeWindowRef
  kEventParamDimensions typeQDPoint
kEventWindowGetMinimumSize kEventParamDirectObject typeWindowRef
  kEventParamDimensions typeQDPoint
kEventWindowGetMaximumSize kEventParamDirectObject typeWindowRef
  kEventParamDimensions typeQDPoint
kEventWindowProxyBeginDrag kEventParamDirectObject typeWindowRef
kEventWindowProxyEndDrag kEventParamDirectObject typeWindowRef

Table C-12. Parameter Names and Types for Window Focus Event Kinds

Event kindParameter nameParameter type
kEventWindowFocusAcquire kEventParamDirectObject typeWindowRef
kEventWindowFocusRelinquish kEventParamDirectObject typeWindowRef

Table C-13. Parameter Names and Types for Window Definition Event Kinds

Event kindParameter nameParameter type
kEventWindowDrawFrame kEventParamDirectObject typeWindowRef
kEventWindowDrawPart kEventParamDirectObject typeWindowRef
  kEventParamWindowDefPart typeWindowDefPartCode
kEventWindowGetRegion kEventParamDirectObject typeWindowRef
  kEventParamWindowRegionCode typeWindowRegionCode
  kEventParamRgnHandle typeQDRgnHandle
kEventWindowHitTest kEventParamDirectObject typeWindowRef
  kEventParamMouseLocation typeQDPoint
  kEventParamWindowDefPart typeWindowDefPartCode
kEventWindowInit kEventParamDirectObject typeWindowRef
  kEventParamWindowFeatures typeUInt32
kEventWindowDispose kEventParamDirectObject typeWindowRef
kEventWindowDragHilite kEventParamDirectObject typeWindowRef
  kEventParamWindowDragHiliteFlag typeBoolean
kEventWindowModified kEventParamDirectObject typeWindowRef
  kEventParamWindowModifiedFlag typeBoolean

kEventWindowSetupProxyDragImage

kEventParamDirectObject typeWindowRef
  kEventParamWindowProxyImageRgn typeQDRgnHandle
  kEventParamWindowProxyOutlineRgn typeQDRgnHandle
  kEventParamWindowProxyGWorlPtr typeGWorldPtr
kEventWindowStateChanged kEventParamDirectObject typeWindowRef
  kEventParamWindowStateChangedFlags typeUInt32
kEventWindowMeasureTitle kEventParamDirectObject typeWindowRef
  kEventParamWindowTitleFullWidth typeSInt16
  kEventParamWindowTitleTextWidth typeSInt16
kEventWindowDrawGrowBox kEventParamDirectObject typeWindowRef

kEventWindowGetGrowImageRegion

kEventParamDirectObject typeWindowRef
  kEventParamWindowGrowRect typeQDRectangle
  kEventParamRgnHandle typeQDRectangle
kEventWindowPaint kEventParamDirectObject typeWindowRef
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.181.57