A function identified as deprecated has been superseded and may become unsupported in the future.
(Deprecated in Mac OS X v10.4. Use HIViewChangeTrackingArea
instead.)
OSStatus ChangeMouseTrackingRegion ( MouseTrackingRef inMouseRef, RgnHandle inRegion, RgnHandle inClip );
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
(Deprecated in Mac OS X v10.4. No replacement function. Use HIView-based mouse tracking areas instead.)
OSStatus ClipMouseTrackingRegion ( MouseTrackingRef inMouseRef, RgnHandle inRegion );
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. You generally don’t need to modify the clipping of a tracking area. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
(Deprecated in Mac OS X v10.4. No replacement function. Use HIView-based tracking areas instead.)
OSStatus ClipWindowMouseTrackingRegions ( WindowRef inWindow, OSType inSignature, RgnHandle inClip );
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. You generally don’t need to modify the clipping of a tracking area. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
Creates a mouse tracking region. (Deprecated in Mac OS X v10.4. Use the HIView function HIViewNewTrackingArea
instead.)
OSStatus CreateMouseTrackingRegion ( WindowRef inWindow, RgnHandle inRegion, RgnHandle inClip, MouseTrackingOptions inOptions, MouseTrackingRegionID inID, void *inRefCon, EventTargetRef inTargetToNotify, MouseTrackingRef *outTrackingRef );
The window to contain the tracking region.
The region for which you want to receive mouse entered/exited events.
The clip region for the inRegion
region (can be NULL
).
Tracking options that define whether the inRegion
region is in local or global coordinates.
A signature and ID to uniquely define this tracking region. See MouseTrackingRegionID
for information about the structure of this ID.
A pointer to an application-defined value. You can obtain this value by calling GetMouseTrackingRegionRefCon
.
The event target to send the mouse tracking event. If you pass NULL
, the event target is the owning window specified in inWindow
.
On return, a pointer to the new mouse tracking region.
A result code. See “Carbon Event Manager Result Codes.”
CreateMouseTrackingRegion
allows you to define regions in your window, and the specified event target is notified (using kEventMouseEntered
or kEventMouseExited
events) when the mouse cursor interacts with the region. Your application can define any number of regions as long as each has a unique ID. This function is especially useful for creating rollover effects without having to constantly poll the mouse.
If you need to keep track of the state of the mouse (down or up) in a region, you should use TrackMouseRegion
, either instead of, or in conjunction with, mouse tracking regions.
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
(Deprecated in Mac OS X v10.4. Use HIViewGetTrackingAreaID
instead.)
OSStatus GetMouseTrackingRegionID ( MouseTrackingRef inMouseRef, MouseTrackingRegionID *outID );
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
Obtains the reference constant for a mouse tracking region. (Deprecated in Mac OS X v10.4. No replacement function. Use HIView-based mouse tracking areas instead.)
OSStatus GetMouseTrackingRegionRefCon ( MouseTrackingRef inMouseRef, void **outRefCon );
The mouse tracking region whose reference count you want to obtain.
On return, a handler for the mouse tracking region.
A result code. See “Carbon Event Manager Result Codes.”
You use this function to obtain the reference constant you set in the CreateMouseTrackingRegion
function.
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. Mouse tracking areas do not support a reference constant. Instead, you can obtain the tracking area ID (using HIViewGetTrackingAreaID
) and use that as a key to look up extended data in your own tables. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
(Deprecated in Mac OS X v10.4. No replacement function. Use HIView-based tracking areas instead.)
OSStatus MoveMouseTrackingRegion ( MouseTrackingRef inMouseRef, SInt16 deltaH, SInt16 deltaV, RgnHandle inClip );
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. HIView-based mouse tracking areas move automatically when the HIView moves. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
(Deprecated in Mac OS X v10.4. No replacement function. Use HIView-based tracking areas instead.)
OSStatus MoveWindowMouseTrackingRegions ( WindowRef inWindow, OSType inSignature, SInt16 deltaH, SInt16 deltaV, RgnHandle inClip );
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. HIView-based mouse tracking areas move automatically when the HIView moves. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
Registers events to be associated with a toolbox object. (Deprecated in Mac OS X v10.4. Use the HIObject function HIObjectRegisterSubclass
instead.)
OSStatus RegisterToolboxObjectClass ( CFStringRef inClassID, ToolboxObjectClassRef inBaseClass, ItemCount inNumEvents, const EventTypeSpec *inEventList, EventHandlerUPP inEventHandler, void *inEventHandlerData, ToolboxObjectClassRef *outClassRef );
The class ID of the toolbox object you want to register. This value should be a Core Foundation string in the form com.myCorp.myApp.myWidget
.
The class reference of this toolbox object’s base class. Pass NULL
if there is no base class.
The number of events to register for this object class.
An array of events you want to register for this object class. You define these events just as you would for any other Carbon event handler.
A universal procedure pointer to the event handler for this object class.
Any application-specific data you want passed to your event handler when it is called.
On return, outClassRef
contains a reference to the new object class. You use this value in your custom definition specification (such as a ControlDefSpec
or WindowDefSpec
) to define your new object class.
A result code. See “Carbon Event Manager Result Codes.”
You use this function to register event handlers to implement what were formerly called defproc messages; that is, you can use toolbox objects in place of older custom window, menu, and control definitions.
HIObject allows you to create subclasses that you can use for creating custom HIViews. HIViews support compositing and Quartz and provide an easier way to handle user elements in windows. Use HIObjectRegisterSubclass
to create custom HIObjects and HIViews. See HIView Programming Guide for more details.
CarbonEvents.h
Releases a mouse tracking region. (Deprecated in Mac OS X v10.4. Use HIViewDisposeTrackingArea
instead.)
OSStatus ReleaseMouseTrackingRegion ( MouseTrackingRef inMouseRef );
The mouse tracking region to release.
A result code. See “Carbon Event Manager Result Codes.”
ReleaseMouseTrackingRegion
decreases the reference count for the region. If the reference count drops to zero, the mouse tracking region is disposed.
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
(Deprecated in Mac OS X v10.4. No replacement function. Use HIView-based tracking areas instead.)
OSStatus ReleaseWindowMouseTrackingRegions ( WindowRef inWindow, OSType inSignature );
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. If you need to release multiple tracking areas at once, you should keep track of them in your own data structures and release each one. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
Retains a mouse tracking region. (Deprecated in Mac OS X v10.4. No replacement function. Use HIView-based tracking areas instead.)
OSStatus RetainMouseTrackingRegion ( MouseTrackingRef inMouseRef );
The mouse tracking region to retain.
A result code. See “Carbon Event Manager Result Codes.”
RetainMouseTrackingRegion
increases the reference count for the region.
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. Mouse tracking areas do not have a retain/release semantic, so there is no direct replacement for RetainMouseTrackingRegion
. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
(Deprecated in Mac OS X v10.4. No replacement function. Use HIView-based tracking areas instead.)
OSStatus SetMouseTrackingRegionEnabled ( MouseTrackingRef inMouseRef, Boolean inEnabled );
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. To disable tracking areas, you can either delete the tracking area or ignore kEventControlTrackingAreaEntered events. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
(Deprecated in Mac OS X v10.4. Use HIView-based tracking areas instead.)
OSStatus SetWindowMouseTrackingRegionsEnabled ( WindowRef inWindow, OSType inSignature, Boolean inEnabled );
Tracking areas are HIView-based rather than window-based. HIViews support compositing and Quartz, and provide a much easier way to handle user elements in windows. To disable tracking areas, you can either delete the tracking area or ignore kEventControlTrackingAreaEntered events. For more details about tracking areas, see the mouse tracking region section in Carbon Event Manager Programming Guide. For details about HIViews, see HIView Programming Guide.
CarbonEvents.h
Unregisters events for a given toolbox object class (Deprecated in Mac OS X v10.4. Use the HIObject function HIObjectUnregisterClass
instead.)
OSStatus UnregisterToolboxObjectClass ( ToolboxObjectClassRef inClassRef );
A reference to the toolbox object class you want to unregister.
A result code. See “Carbon Event Manager Result Codes.”
HIObject allows you to create subclasses that you can use for creating custom HIViews. HIViews support compositing and Quartz and provide an easier way to handle user elements in windows. Use HIObjectUnregisterClass
to unregister custom HIObjects and HIViews. See HIView Programming Guide for more details.
CarbonEvents.h
© 2003, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-10-31)