|
Blender V4.3
|
#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) |
Making screenshots of the entire window or sub-regions.
Definition in file screendump.cc.
| void SCREEN_OT_screenshot | ( | wmOperatorType * | ot | ) |
Definition at line 259 of file screendump.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, ot, and screen_screenshot_impl().
Referenced by ED_operatortypes_screen().
| void SCREEN_OT_screenshot_area | ( | wmOperatorType * | ot | ) |
Definition at line 270 of file screendump.cc.
References wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_DEPENDS_ON_CURSOR, ot, and screen_screenshot_impl().
Referenced by ED_operatortypes_screen().
|
static |
Definition at line 241 of file screendump.cc.
References wmOperatorType::cancel, wmOperatorType::check, wmOperatorType::exec, FILE_DEFAULTDISPLAY, FILE_SAVE, FILE_SORT_DEFAULT, FILE_SPECIAL, FILE_TYPE_FOLDER, FILE_TYPE_IMAGE, wmOperatorType::invoke, ot, wmOperatorType::poll, screenshot_cancel(), screenshot_check(), screenshot_draw(), screenshot_exec(), screenshot_invoke(), screenshot_poll(), wmOperatorType::ui, WM_FILESEL_FILEPATH, and WM_operator_properties_filesel().
Referenced by SCREEN_OT_screenshot(), and SCREEN_OT_screenshot_area().
|
static |
Definition at line 196 of file screendump.cc.
References screenshot_data_free().
Referenced by screen_screenshot_impl().
|
static |
Definition at line 190 of file screendump.cc.
References wmOperator::customdata, ScreenshotData::im_format, and WM_operator_filesel_ensure_ext_imtype().
Referenced by screen_screenshot_impl().
|
static |
Definition at line 55 of file screendump.cc.
References BKE_image_format_init(), ScreenshotData::crop, CTX_wm_window(), wmOperator::customdata, ScreenshotData::dumprect, ScreenshotData::dumpsx, ScreenshotData::dumpsy, ScreenshotData::im_format, MEM_callocN, WM_redraw_windows(), and WM_window_pixels_read().
Referenced by screenshot_exec(), and screenshot_invoke().
|
static |
Definition at line 87 of file screendump.cc.
References wmOperator::customdata, ScreenshotData::dumprect, and MEM_freeN().
Referenced by screenshot_cancel(), and screenshot_exec().
|
static |
Definition at line 210 of file screendump.cc.
References wmOperator::customdata, ScreenshotData::im_format, wmOperator::layout, ptr, wmOperator::ptr, RNA_pointer_create(), screenshot_draw_check_prop(), UI_BUT_LABEL_ALIGN_NONE, uiDefAutoButsRNA(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateImageSettings().
Referenced by screen_screenshot_impl().
|
static |
Definition at line 201 of file screendump.cc.
References RNA_property_identifier(), and STREQ.
Referenced by screenshot_draw().
|
static |
Definition at line 100 of file screendump.cc.
References BKE_imbuf_write(), BKE_main_blendfile_path_from_global(), BKE_reportf(), BLI_path_abs(), ImBuf::byte_buffer, ScreenshotData::crop, CTX_wm_area(), wmOperator::customdata, ImBufByteBuffer::data, ScreenshotData::dumprect, ScreenshotData::dumpsx, ScreenshotData::dumpsy, FILE_MAX, IB_DO_NOT_TAKE_OWNERSHIP, wmOperator::idname, ScreenshotData::im_format, IMB_allocImBuf(), IMB_assign_byte_buffer(), IMB_color_to_bw(), IMB_freeImBuf(), IMB_rect_crop(), ImageFormatData::imtype, OPERATOR_CANCELLED, OPERATOR_FINISHED, ImageFormatData::planes, wmOperator::ptr, R_IMF_IMTYPE_MULTILAYER, R_IMF_PLANES_BW, wmOperator::reports, RNA_string_get(), RPT_ERROR, screenshot_data_create(), screenshot_data_free(), and STREQ.
Referenced by screen_screenshot_impl(), and screenshot_invoke().
|
static |
Definition at line 152 of file screendump.cc.
References BKE_main_blendfile_path_from_global(), BKE_screen_find_area_xy(), BLI_path_extension_strip(), CTX_wm_area(), CTX_wm_screen(), DATA_, FILE_MAX, wmOperator::idname, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_string_set(), RNA_struct_property_is_set(), screenshot_data_create(), screenshot_exec(), SPACE_TYPE_ANY, STREQ, STRNCPY, WM_event_add_fileselect(), and wmEvent::xy.
Referenced by screen_screenshot_impl().
|
static |
Definition at line 232 of file screendump.cc.
References G, and WM_operator_winactive().
Referenced by screen_screenshot_impl().