Ignore alpha 0 parts of button when clicked.

I`m trying to create buttons and images with alpha channel, these buttons and images can be clicked and interacted with in different ways but i dont want them to do anything if the part of the rect they where clicked on has a 0 alpha value.