64 *r_region_gutter = region->
winrct;
71 r_region_gutter->
xmax = r_region_gutter->
xmin + category_tabs_width;
74 r_region_gutter->
xmin = r_region_gutter->
xmax - category_tabs_width;
122 const int event_xy[2],
179 const int regiontype,
180 const int event_xy[2])
188 if (!region->overlap) {
199 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
#define UI_PANEL_CATEGORY_MARGIN_WIDTH
bool UI_panel_category_is_visible(const struct ARegion *region)
uiBut * UI_region_but_find_rect_over(const struct ARegion *region, const struct rcti *rect_px)
float UI_view2d_region_to_view_x(const struct View2D *v2d, float x)
float UI_view2d_scale_get_x(const struct View2D *v2d)
float UI_view2d_region_to_view_y(const struct View2D *v2d, float y)
bool ED_region_panel_category_gutter_isect_xy(const ARegion *region, const int event_xy[2])
bool ED_region_overlap_isect_any_xy(const ScrArea *area, 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_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)
static void area(int d1, int d2, int e1, int e2, float weights[2])