add function to get clip rectangle

gtk3 doesn't use expose events with invalidated region attached. Instead
it sends draw event with cairo context configured to clip to invalid
region only. So now user can use clip rectangle to skip unnecessary
drawing calls.