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 Icon
You 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.The
PtInIconSuite
andPtInIconID
functions hit-test a specified point against the appropriate icon mask from an icon suite or icon family. ThePtInIconMethod
function hit-tests a specified point against an icon mask obtained with the aid of your icon getter function.The
RectInIconSuite
andRectInIconID
functions hit-test a specified rectangle against the appropriate icon mask from an icon suite or icon family. TheRectInIconMethod
function hit-tests a specified rectangle against an icon mask obtained with the aid of your icon getter function.
Subtopics
- PtInIconSuite
- PtInIconID
- PtInIconMethod
- RectInIconSuite
- RectInIconID
- RectInIconMethod