Blender V5.0
screendump.cc File Reference
#include <cerrno>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_path_utils.hh"
#include "BLI_string_utf8.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 "UI_interface_layout.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 wmOperatorStatus screenshot_exec (bContext *C, wmOperator *op)
static wmOperatorStatus 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 *C, 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()

void SCREEN_OT_screenshot ( wmOperatorType * ot)

Definition at line 260 of file screendump.cc.

References ot, and screen_screenshot_impl().

Referenced by ED_operatortypes_screen().

◆ SCREEN_OT_screenshot_area()

void SCREEN_OT_screenshot_area ( wmOperatorType * ot)

Definition at line 271 of file screendump.cc.

References OPTYPE_DEPENDS_ON_CURSOR, ot, and screen_screenshot_impl().

Referenced by ED_operatortypes_screen().

◆ screen_screenshot_impl()

◆ screenshot_cancel()

void screenshot_cancel ( bContext * ,
wmOperator * op )
static

Definition at line 197 of file screendump.cc.

References screenshot_data_free().

Referenced by screen_screenshot_impl().

◆ screenshot_check()

bool screenshot_check ( bContext * ,
wmOperator * op )
static

◆ screenshot_data_create()

◆ screenshot_data_free()

void screenshot_data_free ( wmOperator * op)
static

Definition at line 88 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()

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

Definition at line 202 of file screendump.cc.

References RNA_property_identifier(), and STREQ.

Referenced by screenshot_draw().

◆ screenshot_exec()

◆ screenshot_invoke()

◆ screenshot_poll()

bool screenshot_poll ( bContext * C)
static

Definition at line 233 of file screendump.cc.

References C, G, and WM_operator_winactive().

Referenced by screen_screenshot_impl().