Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

Ink-Related Carbon Events

Table A-1 lists the Carbon event kinds and event parameters associated with the Carbon event class kEventClassInk. These constants are part of the Carbon Event Manager. See Handling Carbon Events for more information on using the Carbon Event Manger. See Using Ink Services in Your Application for information on obtaining Ink-related Carbon events and the associated event parameters.

Table A-1  Event kinds and parameters for the event class kEventClassInk

Carbon event kind

Event parameters

Type

kEventInkPoint

kEventParamEventRef

typeEventRef

kEventInkGesture

kEventParamInkGestureKind

typeUInt32

kEventParamInkGestureBounds

typeHIRect

kEventParamInkGestureHotspot

typeHIPoint

kEventInkText

kEventParamInkTextRef

typePtr

kEventParamInkKeyboardShortcut

typeBoolean

Descriptions for each event parameters are as follows:

Table A-2 lists the event parameters for the Carbon event kind kEventAppIsEventInInstantMouser which is of class kEventClassApplication. This event is sent to your application when the system needs to determine if the global mouse location of the given event coincides with an instant-mousing area. An instant-mousing area is an area where a mouse-down event should only be interpreted as a mousing action; the event should not generate Ink.

The instant-mousing event is dispatched only when a stylus is initially pressed to a tablet, at the beginning of a phrase, before Ink Services has determined whether the user is writing or not. Once the user has begun writing, stylus-down actions do not generate instant-mousing events. How your application responds to this event determines whether Ink Services treats the stylus-down action as Ink or not. The instant-mousing status of all standard Carbon and Cocoa controls is determined automatically. You need only install an instant-mouse event handler if your application defines custom controls you want to designate as instant mousing areas.

Table A-2  Event parameters and types for the event kind kEventAppIsEventInInstantMouser

Event parameters

Type

kEventParamEventRef

typeEventRef

kEventParamIsInInstantMouser

typeBoolean

Descriptions for each event parameter are as follows:



< Previous PageNext Page > Hide TOC


Last updated: 2006-01-10




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice