94 if (region !=
nullptr) {
124 PanelType *pt = MEM_cnew<PanelType>(__func__);
125 strcpy(pt->
idname,
"OPERATOR_PT_redo");
170 const int size_y = region->
sizey;
187 region->
winx = winx_new;
188 region->
winy = winy_new;
212 rcti reset_rect = {};
222 ARegionType *art = MEM_cnew<ARegionType>(__func__);
243 ARegion *region = MEM_cnew<ARegion>(__func__);
272 if (
area != area_keep) {
293 if (art ==
nullptr) {
306 const bool was_hidden = region ==
nullptr || region->
visible ==
false;
317 if (region ==
nullptr) {
338 if (hrd ==
nullptr) {
339 hrd = MEM_cnew<HudRegionData>(__func__);
360 rctf reset_rect = {};
struct ScrArea * CTX_wm_area(const bContext *C)
void CTX_wm_region_set(bContext *C, struct ARegion *region)
struct wmWindowManager * CTX_wm_manager(const bContext *C)
struct ARegion * CTX_wm_region(const bContext *C)
struct wmWindow * CTX_wm_window(const bContext *C)
struct ARegion * BKE_area_find_region_type(const struct ScrArea *area, int type)
@ PANEL_TYPE_DEFAULT_CLOSED
struct ARegionType * BKE_regiontype_from_id(const struct SpaceType *st, int regionid)
#define LISTBASE_FOREACH(type, var, list)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void BLI_insertlinkbefore(struct ListBase *listbase, void *vnextlink, void *vnewlink) ATTR_NONNULL(1)
void BLI_rcti_init(struct rcti *rect, int xmin, int xmax, int ymin, int ymax)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
#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_area_update_region_sizes(struct wmWindowManager *wm, struct wmWindow *win, struct ScrArea *area)
void ED_region_panels_draw(const struct bContext *C, struct ARegion *region)
void ED_region_floating_init(struct ARegion *region)
void ED_region_panels_init(struct wmWindowManager *wm, struct ARegion *region)
void ED_region_tag_redraw(struct ARegion *region)
void ED_region_panels_layout(const struct bContext *C, struct ARegion *region)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
Read Guarded memory(de)allocation.
void uiLayoutSetEnabled(uiLayout *layout, bool enabled)
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
void uiTemplateOperatorRedoProperties(uiLayout *layout, const struct bContext *C)
void UI_region_handlers_add(struct ListBase *handlers)
void UI_view2d_region_reinit(struct View2D *v2d, short type, int winx, int winy)
void UI_view2d_view_restore(const struct bContext *C)
void UI_view2d_view_ortho(const struct View2D *v2d)
void UI_view2d_scroller_size_get(const struct View2D *v2d, bool mapped, float *r_x, float *r_y)
void GPU_clear_color(float red, float green, float blue, float alpha)
void ui_draw_menu_back(struct uiStyle *style, uiBlock *block, rcti *rect)
static void hud_region_draw(const bContext *C, ARegion *region)
static void hud_panels_register(ARegionType *art, int space_type, int region_type)
static ARegion * hud_region_add(ScrArea *area)
static void hud_region_layout(const bContext *C, ARegion *region)
static void hud_region_free(ARegion *region)
static bool hud_panel_operator_redo_poll(const bContext *C, PanelType *UNUSED(pt))
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)
ARegionType * ED_area_type_hud(int space_type)
static void hud_panel_operator_redo_draw_header(const bContext *C, Panel *panel)
static bool last_redo_poll(const bContext *C, short region_type)
static void hud_panel_operator_redo_draw(const bContext *C, Panel *panel)
void ED_area_type_hud_ensure(bContext *C, ScrArea *area)
static void area(int d1, int d2, int e1, int e2, float weights[2])
void(* draw)(const struct bContext *C, struct ARegion *region)
void(* free)(struct ARegion *)
void(* layout)(const struct bContext *C, struct ARegion *region)
void(* init)(struct wmWindowManager *wm, struct ARegion *region)
struct ARegionType * type
void(* draw)(const struct bContext *C, struct Panel *panel)
bool(* poll)(const struct bContext *C, struct PanelType *pt)
void(* draw_header)(const struct bContext *C, struct Panel *panel)
char idname[BKE_ST_MAXNAME]
char translation_context[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
struct wmOperatorType * type
bool WM_operator_poll(bContext *C, wmOperatorType *ot)
bool WM_operator_check_ui_empty(wmOperatorType *ot)
bool WM_operator_repeat_check(const bContext *UNUSED(C), wmOperator *op)
const char * WM_operatortype_name(struct wmOperatorType *ot, struct 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)