25 if (region->v2d.mask.xmin == region->v2d.mask.xmax) {
36 if (region->v2d.mask.ymin == region->v2d.mask.ymax) {
63 *r_region_gutter = region->winrct;
70 r_region_gutter->
xmax = r_region_gutter->
xmin + category_tabs_width;
73 r_region_gutter->
xmin = r_region_gutter->
xmax - category_tabs_width;
98 if (region->v2d.mask.xmin == region->v2d.mask.xmax) {
101 int region_x = event_x - region->winrct.xmin;
112 if (region->v2d.mask.ymin == region->v2d.mask.ymax) {
115 int region_y = event_y - region->winrct.ymin;
121 const int event_xy[2],
132 if (region->overlap) {
178 const int regiontype,
179 const int event_xy[2])
187 if (!region->overlap) {
198 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)