29 if ((event_x < region->winrct.xmin) || (event_x > region->
winrct.
xmax)) {
43 if ((event_y < region->winrct.ymin) || (event_y > region->
winrct.
ymax)) {
59 if (!region->runtime->visible) {
73 *r_region_gutter = region->
winrct;
80 r_region_gutter->
xmax = r_region_gutter->
xmin + category_tabs_width;
83 r_region_gutter->
xmin = r_region_gutter->
xmax - category_tabs_width;
111 if ((event_x < region->winrct.xmin) || (event_x > region->
winrct.
xmax)) {
114 const int region_x = event_x - region->
winrct.
xmin;
128 if ((event_y < region->winrct.ymin) || (event_y > region->
winrct.
ymax)) {
131 const int region_y = event_y - region->
winrct.
ymin;
137 const int event_xy[2],
194 const int regiontype,
195 const int event_xy[2])
203 if (!region->overlap) {
214 if (region->overlap) {
#define BLI_assert_msg(a, msg)
#define LISTBASE_FOREACH(type, var, list)
MINLINE int round_fl_to_int(float a)
bool BLI_rcti_isect_pt_v(const struct rcti *rect, const int xy[2])
bool BLI_rctf_isect_x(const rctf *rect, float x)
void BLI_rcti_init_pt_radius(struct rcti *rect, const int xy[2], int size)
bool BLI_rctf_isect_y(const rctf *rect, float y)
#define RGN_ALIGN_ENUM_FROM_MASK(align)
bool ED_region_is_overlap(int spacetype, int regiontype)
#define UI_REGION_OVERLAP_MARGIN
uiBut * UI_region_but_find_rect_over(const ARegion *region, const rcti *rect_px)
bool UI_panel_category_is_visible(const ARegion *region)
#define UI_PANEL_CATEGORY_MARGIN_WIDTH
float UI_view2d_region_to_view_y(const View2D *v2d, float y)
float UI_view2d_region_to_view_x(const View2D *v2d, float x)
float UI_view2d_scale_get_x(const View2D *v2d)
bool ED_region_panel_category_gutter_isect_xy(const ARegion *region, const int event_xy[2])
ARegion * ED_area_find_region_xy_visual(const ScrArea *area, const int regiontype, const int event_xy[2])
bool ED_region_overlap_isect_any_xy(const ScrArea *area, const int event_xy[2])
bool ED_region_contains_xy(const ARegion *region, const int event_xy[2])
bool ED_region_overlap_isect_x_with_margin(const ARegion *region, const int event_x, const int margin)
bool ED_region_overlap_isect_y(const ARegion *region, const int event_y)
bool ED_region_overlap_isect_xy(const ARegion *region, const int event_xy[2])
bool ED_region_panel_category_gutter_calc_rect(const ARegion *region, rcti *r_region_gutter)
bool ED_region_overlap_isect_x(const ARegion *region, const int event_x)
bool ED_region_overlap_isect_y_with_margin(const ARegion *region, const int event_y, const int margin)
bool ED_region_overlap_isect_xy_with_margin(const ARegion *region, const int event_xy[2], const int margin)