Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/area.c
| Show First 20 Lines • Show All 2,789 Lines • ▼ Show 20 Lines | void ED_region_panels_draw(const bContext *C, ARegion *region) | ||||
| const rcti *mask = NULL; | const rcti *mask = NULL; | ||||
| rcti mask_buf; | rcti mask_buf; | ||||
| if (region->runtime.category && | if (region->runtime.category && | ||||
| (RGN_ALIGN_ENUM_FROM_MASK(region->alignment) == RGN_ALIGN_RIGHT)) { | (RGN_ALIGN_ENUM_FROM_MASK(region->alignment) == RGN_ALIGN_RIGHT)) { | ||||
| UI_view2d_mask_from_win(v2d, &mask_buf); | UI_view2d_mask_from_win(v2d, &mask_buf); | ||||
| mask_buf.xmax -= UI_PANEL_CATEGORY_MARGIN_WIDTH; | mask_buf.xmax -= UI_PANEL_CATEGORY_MARGIN_WIDTH; | ||||
| mask = &mask_buf; | mask = &mask_buf; | ||||
| } | } | ||||
| View2DScrollers *scrollers = UI_view2d_scrollers_calc(v2d, mask); | UI_view2d_scrollers_draw(v2d, mask); | ||||
| UI_view2d_scrollers_draw(v2d, scrollers); | |||||
| UI_view2d_scrollers_free(scrollers); | |||||
| } | } | ||||
| void ED_region_panels_ex( | void ED_region_panels_ex( | ||||
| const bContext *C, ARegion *region, const char *contexts[], int contextnr, const bool vertical) | const bContext *C, ARegion *region, const char *contexts[], int contextnr, const bool vertical) | ||||
| { | { | ||||
| /* TODO: remove? */ | /* TODO: remove? */ | ||||
| ED_region_panels_layout_ex( | ED_region_panels_layout_ex( | ||||
| C, region, ®ion->type->paneltypes, contexts, contextnr, vertical, NULL); | C, region, ®ion->type->paneltypes, contexts, contextnr, vertical, NULL); | ||||
| ▲ Show 20 Lines • Show All 916 Lines • Show Last 20 Lines | |||||