Blender  V3.3
Classes | Typedefs | Functions
screendump.c File Reference
#include <errno.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_image_format.h"
#include "BKE_main.h"
#include "BKE_report.h"
#include "BKE_screen.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_prototypes.h"
#include "UI_interface.h"
#include "WM_api.h"
#include "WM_types.h"
#include "screen_intern.h"

Go to the source code of this file.

Classes

struct  ScreenshotData
 

Typedefs

typedef struct ScreenshotData 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 *UNUSED(C), wmOperator *op)
 
static void screenshot_cancel (bContext *UNUSED(C), wmOperator *op)
 
static bool screenshot_draw_check_prop (PointerRNA *UNUSED(ptr), PropertyRNA *prop, void *UNUSED(user_data))
 
static void screenshot_draw (bContext *UNUSED(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.c.

Typedef Documentation

◆ ScreenshotData

Function Documentation

◆ SCREEN_OT_screenshot()

void SCREEN_OT_screenshot ( wmOperatorType ot)

◆ SCREEN_OT_screenshot_area()

void SCREEN_OT_screenshot_area ( wmOperatorType ot)

◆ screen_screenshot_impl()

static void screen_screenshot_impl ( wmOperatorType ot)
static

◆ screenshot_cancel()

static void screenshot_cancel ( bContext UNUSEDC,
wmOperator op 
)
static

Definition at line 188 of file screendump.c.

References screenshot_data_free().

Referenced by screen_screenshot_impl().

◆ screenshot_check()

static bool screenshot_check ( bContext UNUSEDC,
wmOperator op 
)
static

◆ screenshot_data_create()

static int screenshot_data_create ( bContext C,
wmOperator op,
ScrArea area 
)
static

◆ screenshot_data_free()

static void screenshot_data_free ( wmOperator op)
static

Definition at line 85 of file screendump.c.

References wmOperator::customdata, ScreenshotData::dumprect, MEM_freeN, and NULL.

Referenced by screenshot_cancel(), and screenshot_exec().

◆ screenshot_draw()

static void screenshot_draw ( bContext UNUSEDC,
wmOperator op 
)
static

◆ screenshot_draw_check_prop()

static bool screenshot_draw_check_prop ( PointerRNA UNUSEDptr,
PropertyRNA prop,
void UNUSEDuser_data 
)
static

Definition at line 193 of file screendump.c.

References RNA_property_identifier(), and STREQ.

Referenced by screenshot_draw().

◆ screenshot_exec()

static int screenshot_exec ( bContext C,
wmOperator op 
)
static

◆ screenshot_invoke()

static int screenshot_invoke ( bContext C,
wmOperator op,
const wmEvent event 
)
static

◆ screenshot_poll()

static bool screenshot_poll ( bContext C)
static

Definition at line 220 of file screendump.c.

References C, G, and WM_operator_winactive().

Referenced by screen_screenshot_impl().