Blender V4.3
render_view.cc File Reference
#include <cstddef>
#include <cstring>
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "DNA_scene_types.h"
#include "DNA_userdef_types.h"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_image.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "BKE_screen.hh"
#include "BLT_translation.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_screen.hh"
#include "wm_window.hh"
#include "render_intern.hh"

Go to the source code of this file.

Functions

Utilities for Finding Areas
static ScrAreabiggest_non_image_area (bContext *C)
 
static ScrAreafind_area_showing_render_result (bContext *C, Scene *scene, wmWindow **r_win)
 
static ScrAreafind_area_image_empty (bContext *C)
 
Open Image Editor for Render
ScrArearender_view_open (bContext *C, int mx, int my, ReportList *reports)
 
Cancel Render Viewer Operator
static int render_view_cancel_exec (bContext *C, wmOperator *)
 
void RENDER_OT_view_cancel (wmOperatorType *ot)
 
Show Render Viewer Operator
static int render_view_show_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void RENDER_OT_view_show (wmOperatorType *ot)
 

Function Documentation

◆ biggest_non_image_area()

static ScrArea * biggest_non_image_area ( bContext * C)
static

Returns biggest area that is not uv/image editor. Note that it uses buttons window as the last possible alternative. would use #BKE_screen_find_big_area(...) but this is too specific.

Definition at line 45 of file render_view.cc.

References CTX_wm_screen(), LISTBASE_FOREACH, size(), SPACE_IMAGE, SPACE_PROPERTIES, and ScrArea::winx.

Referenced by render_view_open().

◆ find_area_image_empty()

static ScrArea * find_area_image_empty ( bContext * C)
static

Definition at line 104 of file render_view.cc.

References CTX_wm_screen(), SpaceImage::image, SpaceImage::mode, SI_MODE_VIEW, and SPACE_IMAGE.

Referenced by render_view_open().

◆ find_area_showing_render_result()

◆ RENDER_OT_view_cancel()

◆ RENDER_OT_view_show()

◆ render_view_cancel_exec()

◆ render_view_open()

◆ render_view_show_invoke()