UI: ignore events in empty region overlap areas

- Resizable areas use 2D view bounds.
- Header uses the button bounds.
- A margin is added to avoid clicking between buttons.
- Region resize edges clamp to the 2D view bounds.

Resovles T61554
This commit is contained in:
2019-04-23 16:43:50 +10:00
parent 310f288bb0
commit be3adb51de
12 changed files with 319 additions and 22 deletions

View File

@@ -7692,6 +7692,11 @@ uiBut *UI_region_active_but_get(ARegion *ar)
return ui_context_button_active(ar, NULL);
}
uiBut *UI_region_but_find_rect_over(const ARegion *ar, const rcti *rect_px)
{
return ui_but_find_rect_over(ar, rect_px);
}
/**
* Version of #UI_context_active_but_get that also returns RNA property info.
* Helper function for insert keyframe, reset to default, etc operators.