51 if (region_iter->regiontype != region_type) {
54 if (region_iter == region) {
70 const short region_type,
73 ARegion *region_match_type =
nullptr;
75 index_hint = std::max(0, index_hint);
78 if (region->regiontype != region_type) {
81 if (index == index_hint) {
82 region_match_type = region;
85 if (region_match_type ==
nullptr) {
86 region_match_type = region;
90 return region_match_type;
113 bool success =
false;
121 area, region_type, region_index_hint) :
152 if (region !=
nullptr) {
154 if (hrd !=
nullptr) {
229 const int size_y = region->
sizey;
247 region->
winx = winx_new;
248 region->
winy = winy_new;
272 rcti reset_rect = {};
339 if (area != area_keep) {
360 if (art ==
nullptr) {
373 const bool was_hidden = region ==
nullptr || region->
runtime->visible ==
false;
385 if (region ==
nullptr) {
406 if (hrd ==
nullptr) {
440 rctf reset_rect = {};
451 if (region->
runtime->visible) {
ScrArea * CTX_wm_area(const bContext *C)
wmWindow * CTX_wm_window(const bContext *C)
void CTX_wm_region_set(bContext *C, ARegion *region)
ARegion * CTX_wm_region(const bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
ARegion * BKE_area_region_new()
ARegionType * BKE_regiontype_from_id(const SpaceType *st, int regionid)
@ PANEL_TYPE_DEFAULT_CLOSED
ARegion * BKE_area_find_region_type(const ScrArea *area, int region_type)
#define BLI_assert_unreachable()
#define LISTBASE_FOREACH(type, var, list)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_insertlinkbefore(ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
void BLI_rcti_init(struct rcti *rect, int xmin, int xmax, int ymin, int ymax)
#define STRNCPY_UTF8(dst, src)
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
@ AREA_FLAG_REGION_SIZE_UPDATE
@ RGN_FLAG_TEMP_REGIONDATA
@ RGN_FLAG_HIDDEN_BY_USER
void ED_area_tag_redraw(ScrArea *area)
void ED_region_floating_init(ARegion *region)
void ED_area_tag_region_size_update(ScrArea *area, ARegion *changed_region)
void ED_area_update_region_sizes(wmWindowManager *wm, wmWindow *win, ScrArea *area)
void ED_region_panels_layout(const bContext *C, ARegion *region)
void ED_region_panels_init(wmWindowManager *wm, ARegion *region)
void ED_region_tag_redraw(ARegion *region)
void ED_region_panels_draw(const bContext *C, ARegion *region)
void GPU_clear_color(float red, float green, float blue, float alpha)
Read Guarded memory(de)allocation.
void UI_panel_drawname_set(Panel *panel, blender::StringRef name)
void uiTemplateOperatorRedoProperties(uiLayout *layout, const bContext *C)
void UI_region_handlers_add(ListBase *handlers)
void UI_view2d_view_restore(const bContext *C)
void UI_view2d_region_reinit(View2D *v2d, short type, int winx, int winy)
void UI_view2d_view_ortho(const View2D *v2d)
void UI_view2d_scroller_size_get(const View2D *v2d, bool mapped, float *r_x, float *r_y)
void ui_draw_menu_back(uiStyle *style, uiBlock *block, const rcti *rect)
ARegionType * ED_area_type_hud(int space_type)
static void hud_region_draw(const bContext *C, ARegion *region)
ARegion * ED_area_type_hud_redo_region_find(const ScrArea *area, const ARegion *hud_region)
static void hud_panels_register(ARegionType *art, int space_type, int region_type)
static ARegion * area_find_region_by_type_and_index_hint(const ScrArea *area, const short region_type, int index_hint)
static int area_calc_region_type_index(const ScrArea *area, const ARegion *region)
static void hud_region_listener(const wmRegionListenerParams *params)
static ARegion * hud_region_add(ScrArea *area)
static void hud_region_layout(const bContext *C, ARegion *region)
static bool hud_panel_operator_redo_poll(const bContext *C, PanelType *)
static bool last_redo_poll(const bContext *C, short region_type, int region_index_hint)
static void hud_region_free(ARegion *region)
static void hud_region_hide(ARegion *region)
static void hud_region_init(wmWindowManager *wm, ARegion *region)
void ED_area_type_hud_clear(wmWindowManager *wm, ScrArea *area_keep)
static void hud_panel_operator_redo_draw_header(const bContext *C, Panel *panel)
static void hud_panel_operator_redo_draw(const bContext *C, Panel *panel)
void ED_area_type_hud_ensure(bContext *C, ScrArea *area)
void * MEM_callocN(size_t len, const char *str)
static void init(bNodeTree *, bNode *node)
void(* listener)(const wmRegionListenerParams *params)
void(* draw)(const bContext *C, ARegion *region)
void(* layout)(const bContext *C, ARegion *region)
void(* init)(wmWindowManager *wm, ARegion *region)
ARegionRuntimeHandle * runtime
void(* draw)(const bContext *C, Panel *panel)
char idname[BKE_ST_MAXNAME]
bool(* poll)(const bContext *C, PanelType *pt)
char translation_context[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
void(* draw_header)(const bContext *C, Panel *panel)
uiLayout & column(bool align)
void enabled_set(bool enabled)
struct wmOperatorType * type
bool WM_operator_ui_poll(wmOperatorType *ot, PointerRNA *ptr)
bool WM_operator_poll(bContext *C, wmOperatorType *ot)
bool WM_operator_repeat_check(const bContext *, wmOperator *op)
std::string WM_operatortype_name(wmOperatorType *ot, PointerRNA *properties)
bool WM_operator_check_ui_enabled(const bContext *C, const char *idname)
wmOperator * WM_operator_last_redo(const bContext *C)
void wmOrtho2_region_pixelspace(const ARegion *region)
bScreen * WM_window_get_active_screen(const wmWindow *win)