widget: Use gsize/gssize in public API
widget: Add function to check for match at event coordinates

This saves the caller from translating from event coordinates to
grid coordinates himself.