Blender V4.3
screendump.cc File Reference
#include <cerrno>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_image.hh"
#include "BKE_image_format.hh"
#include "BKE_main.hh"
#include "BKE_report.hh"
#include "BKE_screen.hh"
#include "BLT_translation.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "UI_interface.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "screen_intern.hh"

Go to the source code of this file.

Classes

struct  ScreenshotData
 

Functions

static int screenshot_data_create (bContext *C, wmOperator *op, ScrArea *area)
 
static void screenshot_data_free (wmOperator *op)
 
static int screenshot_exec (bContext *C, wmOperator *op)
 
static int screenshot_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static bool screenshot_check (bContext *, wmOperator *op)
 
static void screenshot_cancel (bContext *, wmOperator *op)
 
static bool screenshot_draw_check_prop (PointerRNA *, PropertyRNA *prop, void *)
 
static void screenshot_draw (bContext *, wmOperator *op)
 
static bool screenshot_poll (bContext *C)
 
static void screen_screenshot_impl (wmOperatorType *ot)
 
void SCREEN_OT_screenshot (wmOperatorType *ot)
 
void SCREEN_OT_screenshot_area (wmOperatorType *ot)
 

Detailed Description

Making screenshots of the entire window or sub-regions.

Definition in file screendump.cc.

Function Documentation

◆ SCREEN_OT_screenshot()

◆ SCREEN_OT_screenshot_area()

◆ screen_screenshot_impl()

◆ screenshot_cancel()

static void screenshot_cancel ( bContext * ,
wmOperator * op )
static

Definition at line 196 of file screendump.cc.

References screenshot_data_free().

Referenced by screen_screenshot_impl().

◆ screenshot_check()

static bool screenshot_check ( bContext * ,
wmOperator * op )
static

◆ screenshot_data_create()

◆ screenshot_data_free()

static void screenshot_data_free ( wmOperator * op)
static

Definition at line 87 of file screendump.cc.

References wmOperator::customdata, ScreenshotData::dumprect, and MEM_freeN().

Referenced by screenshot_cancel(), and screenshot_exec().

◆ screenshot_draw()

◆ screenshot_draw_check_prop()

static bool screenshot_draw_check_prop ( PointerRNA * ,
PropertyRNA * prop,
void *  )
static

Definition at line 201 of file screendump.cc.

References RNA_property_identifier(), and STREQ.

Referenced by screenshot_draw().

◆ screenshot_exec()

◆ screenshot_invoke()

◆ screenshot_poll()

static bool screenshot_poll ( bContext * C)
static

Definition at line 232 of file screendump.cc.

References G, and WM_operator_winactive().

Referenced by screen_screenshot_impl().