48 int size, maxsize = 0, bwmaxsize = 0;
52 if (
area->winx > 30 &&
area->winy > 30) {
55 if (foundwin == 0 &&
size > bwmaxsize) {
127 bool area_was_image =
false;
180 area_was_image =
true;
190 if (
area ==
nullptr) {
199 if (
area ==
nullptr) {
240 if (area_was_image == 0) {
300 ot->
name =
"Cancel Render View";
302 ot->
idname =
"RENDER_OT_view_cancel";
329 (win == winshow && winshow != wincur)) {
338 if (
G.is_rendering ==
false) {
365 ot->
name =
"Show/Hide Render View";
struct ScrArea * CTX_wm_area(const bContext *C)
struct Scene * CTX_data_scene(const bContext *C)
struct wmWindowManager * CTX_wm_manager(const bContext *C)
struct bScreen * CTX_wm_screen(const bContext *C)
struct Main * CTX_data_main(const bContext *C)
struct wmWindow * CTX_wm_window(const bContext *C)
struct Image * BKE_image_ensure_viewer(struct Main *bmain, int type, const char *name)
void BKE_report(ReportList *reports, eReportType type, const char *message)
void BKE_render_resolution(const struct RenderData *r, const bool use_crop, int *r_width, int *r_height)
struct ARegion struct ARegion struct ScrArea struct ScrArea * BKE_screen_find_big_area(struct bScreen *screen, int spacetype, short min)
void void BLI_INLINE bool BLI_listbase_is_single(const struct ListBase *lb)
@ AREA_FLAG_STACKED_FULLSCREEN
@ SPACE_FLAG_TYPE_WAS_ACTIVE
@ SPACE_FLAG_TYPE_TEMPORARY
@ USER_RENDER_DISPLAY_NONE
@ USER_RENDER_DISPLAY_SCREEN
@ USER_RENDER_DISPLAY_WINDOW
void ED_screen_full_prevspace(struct bContext *C, ScrArea *area)
bool ED_operator_image_active(struct bContext *C)
bool ED_operator_screenactive(struct bContext *C)
void ED_area_prevspace(struct bContext *C, ScrArea *area)
ScrArea * ED_screen_full_newspace(struct bContext *C, ScrArea *area, int type)
struct ScrArea * ED_screen_state_toggle(struct bContext *C, struct wmWindow *win, struct ScrArea *area, short state)
void ED_area_newspace(struct bContext *C, ScrArea *area, int type, bool skip_region_exit)
@ WIN_ALIGN_LOCATION_CENTER
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
static void area(int d1, int d2, int e1, int e2, float weights[2])
ScrArea * render_view_open(bContext *C, int mx, int my, ReportList *reports)
void RENDER_OT_view_cancel(struct wmOperatorType *ot)
static ScrArea * find_area_image_empty(bContext *C)
void RENDER_OT_view_show(struct wmOperatorType *ot)
static ScrArea * find_area_showing_r_result(bContext *C, Scene *scene, wmWindow **win)
static ScrArea * biggest_non_image_area(bContext *C)
static int render_view_cancel_exec(bContext *C, wmOperator *UNUSED(op))
static int render_view_show_invoke(bContext *C, wmOperator *op, const wmEvent *event)
int(* invoke)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
bool(* poll)(struct bContext *) ATTR_WARN_UNUSED_RESULT
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports
void wm_window_raise(wmWindow *win)
void wm_window_close(bContext *C, wmWindowManager *wm, wmWindow *win)
bScreen * WM_window_get_active_screen(const wmWindow *win)
bool WM_window_is_temp_screen(const wmWindow *win)
wmWindow * WM_window_open(bContext *C, const char *title, int x, int y, int sizex, int sizey, int space_type, bool toplevel, bool dialog, bool temp, eWindowAlignment alignment)
Scene * WM_window_get_active_scene(const wmWindow *win)
void wm_window_lower(wmWindow *win)