<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_linkrect_idx(self, pos):
 """ Determine if cursor is inside one of the link hot spots."""

        for i, r in enumerate(self.link_rects):
            if r.Contains(pos):
                return i
        return -1