Blender  V2.93
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_main.h"
#include "BKE_report.h"
#include "RNA_access.h"
#include "RNA_define.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)
 
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 *UNUSED(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 *C, wmOperator *op)
 
static bool screenshot_poll (bContext *C)
 
void SCREEN_OT_screenshot (wmOperatorType *ot)
 

Typedef Documentation

◆ ScreenshotData

Function Documentation

◆ SCREEN_OT_screenshot()

void SCREEN_OT_screenshot ( wmOperatorType ot)

◆ 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_OT_screenshot().

◆ screenshot_check()

static bool screenshot_check ( bContext UNUSEDC,
wmOperator op 
)
static

◆ screenshot_data_create()

static int screenshot_data_create ( bContext C,
wmOperator op 
)
static

◆ screenshot_data_free()

static void screenshot_data_free ( wmOperator op)
static

Definition at line 98 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 C,
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 UNUSEDevent 
)
static

◆ screenshot_poll()

static bool screenshot_poll ( bContext C)
static

Definition at line 222 of file screendump.c.

References C, G, and WM_operator_winactive().

Referenced by SCREEN_OT_screenshot().