Detect coordinates within a shape?

Theres 2 parts to my problem and they are related. I have a weird shape on my interface illustrated below, I am tryi...