Important: The information in this document is obsolete and should not be used for new development.
Determining Whether a Point or Rectangle Is Within an IconYou can use several Icon Utilities routines to perform hit-testing for points or rectangles against a specified icon. You specify a destination rectangle and alignment of the icon within the rectangle as parameters to these functions. The functions use this information to determine whether a specified point or rectangle is within the icon as it appears in the destination rectangle.
PtInIconIDfunctions hit-test a specified point against the appropriate icon mask from an icon suite or icon family. The
PtInIconMethodfunction hit-tests a specified point against an icon mask obtained with the aid of your icon getter function.
RectInIconIDfunctions hit-test a specified rectangle against the appropriate icon mask from an icon suite or icon family. The
RectInIconMethodfunction hit-tests a specified rectangle against an icon mask obtained with the aid of your icon getter function.