Blender V5.3
wm_operators.cc File Reference
#include "UI_interface_c.hh"
#include <algorithm>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <cstddef>
#include <cstdio>
#include <cstring>
#include <sstream>
#include <fmt/format.h>
#include "MEM_guardedalloc.h"
#include "CLG_log.h"
#include "DNA_ID.h"
#include "DNA_armature_types.h"
#include "DNA_brush_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "DNA_windowmanager_types.h"
#include "BLT_translation.hh"
#include "BLI_dial_2d.hh"
#include "BLI_listbase.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.hh"
#include "BLI_string_utf8.hh"
#include "BLI_time.hh"
#include "BLI_utildefines.hh"
#include "BKE_anim_data.hh"
#include "BKE_brush.hh"
#include "BKE_colortools.hh"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_idprop.hh"
#include "BKE_image.hh"
#include "BKE_image_format.hh"
#include "BKE_lib_id.hh"
#include "BKE_lib_query.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_material.hh"
#include "BKE_paint.hh"
#include "BKE_preview_image.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "BKE_screen.hh"
#include "BKE_wm_runtime.hh"
#include "BKE_idtype.hh"
#include "BLF_api.hh"
#include "GPU_immediate.hh"
#include "GPU_immediate_util.hh"
#include "GPU_matrix.hh"
#include "GPU_state.hh"
#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "ED_fileselect.hh"
#include "ED_gpencil_legacy.hh"
#include "ED_grease_pencil.hh"
#include "ED_numinput.hh"
#include "ED_screen.hh"
#include "ED_undo.hh"
#include "ED_view3d.hh"
#include "DEG_depsgraph_query.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_path.hh"
#include "RNA_prototypes.hh"
#include "UI_interface.hh"
#include "UI_interface_icons.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "WM_api.hh"
#include "WM_keymap.hh"
#include "WM_types.hh"
#include "wm.hh"
#include "wm_draw.hh"
#include "wm_event_system.hh"
#include "wm_event_types.hh"
#include "wm_files.hh"
#include "wm_window.hh"

Go to the source code of this file.

Classes

struct  blender::EnumSearchMenu
struct  blender::wmOpPopUp
struct  blender::SearchPopupInit_Data
struct  blender::RadialControl
struct  blender::PreviewsIDEnsureData

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define UNDOCUMENTED_OPERATOR_TIP   N_("(undocumented operator)")
#define CTX_TEST_PTR_ID(C, member, idptr)
#define CTX_TEST_PTR_ID_CAST(C, member, member_full, cast, idptr)
#define TEST_PTR_DATA_TYPE(member, rna_type, rna_ptr, dataptr_cmp)
#define TEST_PTR_DATA_TYPE_FROM_CONTEXT(member, rna_type, rna_ptr)
#define ID_CAST_OBDATA(id_pt)
#define ID_CAST_OBMATACT(id_pt)
#define ID_CAST_SCENEWORLD(id_pt)

Functions

Operator Last Properties API
static bool blender::operator_last_properties_init_impl (wmOperator *op, IDProperty *last_properties)
bool blender::WM_operator_last_properties_init (wmOperator *op)
bool blender::WM_operator_last_properties_store (wmOperator *op)
Default Operator Callbacks
wmOperatorStatus blender::WM_generic_select_modal (bContext *C, wmOperator *op, const wmEvent *event)
wmOperatorStatus blender::WM_generic_select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::WM_operator_view3d_unit_defaults (bContext *C, wmOperator *op)
int blender::WM_operator_smooth_viewtx_get (const wmOperator *op)
wmOperatorStatus blender::WM_menu_invoke_ex (bContext *C, wmOperator *op, wm::OpCallContext opcontext)
wmOperatorStatus blender::WM_menu_invoke (bContext *C, wmOperator *op, const wmEvent *)
static ui::Block * blender::wm_enum_search_menu (bContext *C, ARegion *region, void *arg)
wmOperatorStatus blender::WM_enum_search_invoke (bContext *C, wmOperator *op, const wmEvent *)
wmOperatorStatus blender::WM_operator_confirm_message_ex (bContext *C, wmOperator *op, const char *title, const int icon, const char *message, const wm::OpCallContext)
wmOperatorStatus blender::WM_operator_confirm_message (bContext *C, wmOperator *op, const char *message)
wmOperatorStatus blender::WM_operator_confirm (bContext *C, wmOperator *op, const wmEvent *)
wmOperatorStatus blender::WM_operator_confirm_or_exec (bContext *C, wmOperator *op, const wmEvent *)
wmOperatorStatus blender::WM_operator_filesel (bContext *C, wmOperator *op, const wmEvent *)
bool blender::WM_operator_filesel_ensure_ext_imtype (wmOperator *op, const ImageFormatData *im_format)
bool blender::WM_operator_winactive (bContext *C)
bool blender::WM_operator_check_ui_enabled (const bContext *C, const char *idname)
wmOperator * blender::WM_operator_last_redo (const bContext *C)
IDProperty * blender::WM_operator_last_properties_ensure_idprops (wmOperatorType *ot)
void blender::WM_operator_last_properties_ensure (wmOperatorType *ot, PointerRNA *ptr)
ID * blender::WM_operator_drop_load_path (bContext *C, wmOperator *op, const short idcode)
static void blender::wm_block_redo_cb (bContext *C, void *arg_op, int)
static void blender::wm_block_redo_cancel_cb (bContext *C, void *arg_op)
static ui::Block * blender::wm_block_create_redo (bContext *C, ARegion *region, void *arg_op)
static void blender::dialog_exec_cb (bContext *C, wmOpPopUp *data, ui::Block *block)
static void blender::wm_operator_ui_popup_cancel (bContext *C, void *user_data)
static void blender::dialog_cancel_cb (bContext *C, wmOpPopUp *data, ui::Block *block)
static ui::Block * blender::wm_block_dialog_create (bContext *C, ARegion *region, void *user_data)
static ui::Block * blender::wm_operator_ui_create (bContext *C, ARegion *region, void *user_data)
static void blender::wm_operator_ui_popup_ok (bContext *C, void *arg, int retval)
wmOperatorStatus blender::WM_operator_confirm_ex (bContext *C, wmOperator *op, const char *title, const char *message, const char *confirm_text, ui::AlertIcon icon, bool cancel_default)
wmOperatorStatus blender::WM_operator_ui_popup (bContext *C, wmOperator *op, int width, const bool use_numselect)
static wmOperatorStatus blender::wm_operator_props_popup_ex (bContext *C, wmOperator *op, const bool do_call, const bool do_redo, std::optional< std::string > title=std::nullopt, std::optional< std::string > confirm_text=std::nullopt, const bool cancel_default=false, std::optional< std::string > message=std::nullopt)
wmOperatorStatus blender::WM_operator_props_popup_confirm_ex (bContext *C, wmOperator *op, const wmEvent *, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message)
wmOperatorStatus blender::WM_operator_props_popup_confirm (bContext *C, wmOperator *op, const wmEvent *)
wmOperatorStatus blender::WM_operator_props_popup_call (bContext *C, wmOperator *op, const wmEvent *)
wmOperatorStatus blender::WM_operator_props_popup (bContext *C, wmOperator *op, const wmEvent *)
wmOperatorStatus blender::WM_operator_props_dialog_popup (bContext *C, wmOperator *op, int width, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message, const bool show_icon)
wmOperatorStatus blender::WM_operator_redo_popup (bContext *C, wmOperator *op)
Debug Menu Operator

Set internal debug value, mainly for developers.

static wmOperatorStatus blender::wm_debug_menu_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::wm_debug_menu_invoke (bContext *C, wmOperator *op, const wmEvent *)
static void blender::WM_OT_debug_menu (wmOperatorType *ot)
Reset Defaults Operator
static wmOperatorStatus blender::wm_operator_defaults_exec (bContext *C, wmOperator *op)
static void blender::WM_OT_operator_defaults (wmOperatorType *ot)
Window/Screen Operators
static bool blender::wm_operator_winactive_normal (bContext *C)
static bool blender::wm_operator_winactive_not_full (bContext *C)
static void blender::WM_OT_window_close (wmOperatorType *ot)
static void blender::WM_OT_window_new (wmOperatorType *ot)
static void blender::WM_OT_window_new_main (wmOperatorType *ot)
static void blender::WM_OT_window_fullscreen_toggle (wmOperatorType *ot)
static wmOperatorStatus blender::wm_exit_blender_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::wm_exit_blender_invoke (bContext *C, wmOperator *, const wmEvent *)
static void blender::WM_OT_quit_blender (wmOperatorType *ot)
default paint cursors, draw always around cursor
  • Returns handler to free.
  • poll(bContext): returns 1 if draw should happen.
  • draw(bContext): drawing callback for paint cursor.
wmPaintCursor * blender::WM_paint_cursor_activate (short space_type, short region_type, wmPaintCursorPoll poll, wmPaintCursorDraw draw, void *customdata)
bool blender::WM_paint_cursor_end (wmPaintCursor *handle)
void blender::WM_paint_cursor_remove_by_type (wmWindowManager *wm, wmPaintCursorDraw draw_fn, void(*free)(void *))
Report Memory Statistics

Use for testing/debugging.

static wmOperatorStatus blender::memory_statistics_exec (bContext *, wmOperator *)
static void blender::WM_OT_memory_statistics (wmOperatorType *ot)
Data-Block Preview Generation Operator

Use for material/texture/light ... etc.

static void blender::previews_id_ensure (bContext *C, Scene *scene, ID *id)
static int blender::previews_id_ensure_callback (LibraryIDLinkCallbackData *cb_data)
static wmOperatorStatus blender::previews_ensure_exec (bContext *C, wmOperator *)
static void blender::WM_OT_previews_ensure (wmOperatorType *ot)
Doc from UI Operator
static wmOperatorStatus blender::doc_view_manual_ui_context_exec (bContext *C, wmOperator *)
static void blender::WM_OT_doc_view_manual_ui_context (wmOperatorType *ot)
Toggle Stereo 3D Operator

Turning it full-screen if needed.

static void blender::WM_OT_stereo3d_set (wmOperatorType *ot)
Operator Registration & Keymaps
void blender::wm_operatortypes_register ()
static void blender::gesture_circle_modal_keymap (wmKeyConfig *keyconf)
static void blender::gesture_straightline_modal_keymap (wmKeyConfig *keyconf)
static void blender::gesture_box_modal_keymap (wmKeyConfig *keyconf)
static void blender::gesture_lasso_modal_keymap (wmKeyConfig *keyconf)
static void blender::gesture_polyline_modal_keymap (wmKeyConfig *keyconf)
static void blender::gesture_zoom_border_modal_keymap (wmKeyConfig *keyconf)
void blender::wm_window_keymap (wmKeyConfig *keyconf)
Enum Filter Functions

Filter functions that can be used with rna_id_itemf() below. Should return false if 'id' should be excluded.

static bool blender::rna_id_enum_filter_single (const ID *id, void *user_data)
static bool blender::rna_id_enum_filter_single_and_assets (const ID *id, void *user_data)
static const EnumPropertyItem * blender::rna_id_itemf (bool *r_free, ID *id, bool local, bool(*filter_ids)(const ID *id, void *user_data), void *user_data)
const EnumPropertyItem * blender::RNA_action_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_collection_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_collection_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_image_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_image_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_scene_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_scene_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_scene_without_sequencer_scene_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_movieclip_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_movieclip_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_mask_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const EnumPropertyItem * blender::RNA_mask_local_itemf (bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)

Operator API

#define OP_BL_SEP_STRING   "_OT_"
#define OP_BL_SEP_LEN   4
#define OP_PY_SEP_CHAR   '.'
#define OP_PY_SEP_LEN   1
#define OP_MAX_PY_IDNAME   (OP_MAX_TYPENAME - OP_BL_SEP_LEN + OP_PY_SEP_LEN - 1)
size_t blender::WM_operator_py_idname (char *dst, const char *src)
size_t blender::WM_operator_bl_idname (char *dst, const char *src)
bool blender::WM_operator_bl_idname_is_valid (const char *idname)
static bool blender::operator_idname_ok_or_report_impl (ReportList *reports, const char *idname, FunctionRef< std::string()> error_prefix_fn)
bool blender::WM_operator_py_idname_ok_or_report (ReportList *reports, const char *classname, const char *idname)
bool blender::WM_operator_idname_ok_or_report (ReportList *reports, const char *idname)
std::string blender::WM_operator_pystring_ex (bContext *C, wmOperator *op, const bool all_args, const bool macro_args, wmOperatorType *ot, PointerRNA *opptr)
std::string blender::WM_operator_pystring (bContext *C, wmOperator *op, const bool all_args, const bool macro_args)
std::string blender::WM_operator_pystring_abbreviate (std::string str, int str_len_max)
static const char * blender::wm_context_member_from_ptr (const bContext *C, const PointerRNA *ptr, bool *r_is_id)
std::optional< std::string > blender::WM_context_path_resolve_property_full (const bContext *C, const PointerRNA *ptr, PropertyRNA *prop, int index)
std::optional< std::string > blender::WM_context_path_resolve_full (bContext *C, const PointerRNA *ptr)
static std::optional< std::string > blender::wm_prop_pystring_from_context (bContext *C, PointerRNA *ptr, PropertyRNA *prop, int index)
std::optional< std::string > blender::WM_prop_pystring_assign (bContext *C, PointerRNA *ptr, PropertyRNA *prop, int index)
PointerRNA blender::WM_operator_properties_create_ptr (wmOperatorType *ot)
PointerRNA blender::WM_operator_properties_create (const char *opstring)
void blender::WM_operator_properties_alloc (PointerRNA **ptr, IDProperty **properties, const char *opstring)
void blender::WM_operator_properties_sanitize (PointerRNA *ptr, const bool no_context)
bool blender::WM_operator_properties_default (PointerRNA *ptr, const bool do_update)
void blender::WM_operator_properties_reset (wmOperator *op)
void blender::WM_operator_properties_clear (PointerRNA *ptr)
void blender::WM_operator_properties_free (PointerRNA *ptr)

Radial Control Operator

#define WM_RADIAL_CONTROL_DISPLAY_SIZE   (200 * UI_SCALE_FAC)
#define WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE   (35 * UI_SCALE_FAC)
#define WM_RADIAL_CONTROL_DISPLAY_WIDTH   (WM_RADIAL_CONTROL_DISPLAY_SIZE - WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE)
#define WM_RADIAL_MAX_STR   10
enum  blender::RCPropFlags { blender::RC_PROP_ALLOW_MISSING = 1 , blender::RC_PROP_REQUIRE_FLOAT = 2 , blender::RC_PROP_REQUIRE_BOOL = 4 }
static void blender::radial_control_update_header (wmOperator *op, bContext *C)
static void blender::radial_control_set_initial_mouse (RadialControl *rc, const wmEvent *event)
static void blender::radial_control_set_tex (RadialControl *rc)
static void blender::radial_control_paint_tex (RadialControl *rc, float radius, float alpha)
static void blender::radial_control_paint_curve (uint pos, Brush *br, float radius, int line_segments)
static void blender::radial_control_paint_cursor (bContext *C, const int2 &, const float2 &, void *customdata)
static int blender::radial_control_get_path (PointerRNA *ctx_ptr, wmOperator *op, const char *name, PointerRNA *r_ptr, PropertyRNA **r_prop, int req_length, RCPropFlags flags)
static int blender::radial_control_get_properties (bContext *C, wmOperator *op)
static void blender::radial_control_status (bContext *C, const RadialControl *radial_control)
static wmOperatorStatus blender::radial_control_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::radial_control_set_value (RadialControl *rc, float val)
static void blender::radial_control_cancel (bContext *C, wmOperator *op)
static wmOperatorStatus blender::radial_control_modal (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::WM_OT_radial_control (wmOperatorType *ot)

Operator/Menu Search Operator

enum  blender::SearchType { blender::SEARCH_TYPE_OPERATOR = 0 , blender::SEARCH_TYPE_MENU = 1 , blender::SEARCH_TYPE_SINGLE_MENU = 2 }
static char blender::g_search_text [256] = ""
static ui::Block * blender::wm_block_search_menu (bContext *C, ARegion *region, void *userdata)
static wmOperatorStatus blender::wm_search_menu_exec (bContext *, wmOperator *)
static wmOperatorStatus blender::wm_search_menu_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::WM_OT_search_menu (wmOperatorType *ot)
static void blender::WM_OT_search_operator (wmOperatorType *ot)
static void blender::WM_OT_search_single_menu (wmOperatorType *ot)
static wmOperatorStatus blender::wm_call_menu_exec (bContext *C, wmOperator *op)
static std::string blender::wm_call_menu_get_name (wmOperatorType *ot, PointerRNA *ptr)
static std::string blender::wm_call_menu_get_description (bContext *, wmOperatorType *, PointerRNA *ptr)
static void blender::WM_OT_call_menu (wmOperatorType *ot)
static wmOperatorStatus blender::wm_call_pie_menu_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::wm_call_pie_menu_exec (bContext *C, wmOperator *op)
static void blender::WM_OT_call_menu_pie (wmOperatorType *ot)
static wmOperatorStatus blender::wm_call_panel_exec (bContext *C, wmOperator *op)
static std::string blender::wm_call_panel_get_name (wmOperatorType *ot, PointerRNA *ptr)
static void blender::WM_OT_call_panel (wmOperatorType *ot)
static wmOperatorStatus blender::asset_shelf_popover_invoke (bContext *C, wmOperator *op, const wmEvent *)
static void blender::WM_OT_call_asset_shelf_popover (wmOperatorType *ot)

Redraw Timer Operator

Use for simple benchmarks.

enum  {
  blender::eRTDrawRegion = 0 , blender::eRTDrawRegionSwap = 1 , blender::eRTDrawWindow = 2 , blender::eRTDrawWindowSwap = 3 ,
  blender::eRTAnimationStep = 4 , blender::eRTAnimationPlay = 5 , blender::eRTUndo = 6
}
static const EnumPropertyItem blender::redraw_timer_type_items []
static void blender::redraw_timer_window_swap (bContext *C)
static void blender::redraw_timer_step (bContext *C, Scene *scene, Depsgraph *depsgraph, wmWindow *win, ScrArea *area, ARegion *region, const int type, const int cfra, const int steps_done, const int steps_total)
static bool blender::redraw_timer_poll (bContext *C)
static wmOperatorStatus blender::redraw_timer_exec (bContext *C, wmOperator *op)
static void blender::WM_OT_redraw_timer (wmOperatorType *ot)

Data-Block Preview Clear Operator

enum  blender::PreviewFilterID {
  blender::PREVIEW_FILTER_ALL , blender::PREVIEW_FILTER_GEOMETRY , blender::PREVIEW_FILTER_SHADING , blender::PREVIEW_FILTER_SCENE ,
  blender::PREVIEW_FILTER_COLLECTION , blender::PREVIEW_FILTER_OBJECT , blender::PREVIEW_FILTER_MATERIAL , blender::PREVIEW_FILTER_LIGHT ,
  blender::PREVIEW_FILTER_WORLD , blender::PREVIEW_FILTER_TEXTURE , blender::PREVIEW_FILTER_IMAGE
}
static const EnumPropertyItem blender::preview_id_type_items []
static uint blender::preview_filter_to_idfilter (enum PreviewFilterID filter)
static wmOperatorStatus blender::previews_clear_exec (bContext *C, wmOperator *op)
static void blender::WM_OT_previews_clear (wmOperatorType *ot)

Detailed Description

Functions for dealing with wmOperator, adding, removing, calling as well as some generic operators and shared operator properties.

Definition in file wm_operators.cc.

Macro Definition Documentation

◆ CTX_TEST_PTR_ID

#define CTX_TEST_PTR_ID ( C,
member,
idptr )
Value:
{ \
const char *ctx_member = member; \
PointerRNA ctx_item_ptr = CTX_data_pointer_get(C, ctx_member); \
if (ctx_item_ptr.owner_id == idptr) { \
member_id = ctx_member; \
is_id = true; \
break; \
} \
} \
(void)0
#define C
Definition RandGen.cpp:29

Referenced by blender::wm_context_member_from_ptr().

◆ CTX_TEST_PTR_ID_CAST

#define CTX_TEST_PTR_ID_CAST ( C,
member,
member_full,
cast,
idptr )
Value:
{ \
const char *ctx_member = member; \
const char *ctx_member_full = member_full; \
PointerRNA ctx_item_ptr = CTX_data_pointer_get(C, ctx_member); \
if (ctx_item_ptr.owner_id && (ID *)cast(ctx_item_ptr.owner_id) == idptr) { \
member_id = ctx_member_full; \
is_id = true; \
break; \
} \
} \
(void)0
ccl_device_inline int4 cast(const float4 a)
Definition math_float4.h:32

Referenced by blender::wm_context_member_from_ptr().

◆ ID_CAST_OBDATA

#define ID_CAST_OBDATA ( id_pt)
Value:
(((Object *)(id_pt))->data)

Referenced by blender::wm_context_member_from_ptr().

◆ ID_CAST_OBMATACT

#define ID_CAST_OBMATACT ( id_pt)
Value:
BKE_object_material_get(((Object *)id_pt), ((Object *)id_pt)->actcol)

Referenced by blender::wm_context_member_from_ptr().

◆ ID_CAST_SCENEWORLD

#define ID_CAST_SCENEWORLD ( id_pt)
Value:
(((Scene *)(id_pt))->world)
Definition scene.h:133

Referenced by blender::wm_context_member_from_ptr().

◆ OP_BL_SEP_LEN

#define OP_BL_SEP_LEN   4

◆ OP_BL_SEP_STRING

#define OP_BL_SEP_STRING   "_OT_"

◆ OP_MAX_PY_IDNAME

#define OP_MAX_PY_IDNAME   (OP_MAX_TYPENAME - OP_BL_SEP_LEN + OP_PY_SEP_LEN - 1)

◆ OP_PY_SEP_CHAR

#define OP_PY_SEP_CHAR   '.'

◆ OP_PY_SEP_LEN

#define OP_PY_SEP_LEN   1

◆ TEST_PTR_DATA_TYPE

#define TEST_PTR_DATA_TYPE ( member,
rna_type,
rna_ptr,
dataptr_cmp )
Value:
{ \
const char *ctx_member = member; \
if (RNA_struct_is_a((rna_ptr)->type, (rna_type)) && (rna_ptr)->data == (dataptr_cmp)) { \
member_id = ctx_member; \
break; \
} \
} \
(void)0

Referenced by blender::wm_context_member_from_ptr().

◆ TEST_PTR_DATA_TYPE_FROM_CONTEXT

#define TEST_PTR_DATA_TYPE_FROM_CONTEXT ( member,
rna_type,
rna_ptr )
Value:
{ \
const char *ctx_member = member; \
if (RNA_struct_is_a((rna_ptr)->type, (rna_type)) && \
(rna_ptr)->data == (CTX_data_pointer_get_type(C, ctx_member, (rna_type)).data)) \
{ \
member_id = ctx_member; \
break; \
} \
} \
(void)0

Referenced by blender::wm_context_member_from_ptr().

◆ UNDOCUMENTED_OPERATOR_TIP

#define UNDOCUMENTED_OPERATOR_TIP   N_("(undocumented operator)")

Definition at line 124 of file wm_operators.cc.

◆ WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE

#define WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE   (35 * UI_SCALE_FAC)

◆ WM_RADIAL_CONTROL_DISPLAY_SIZE

#define WM_RADIAL_CONTROL_DISPLAY_SIZE   (200 * UI_SCALE_FAC)

◆ WM_RADIAL_CONTROL_DISPLAY_WIDTH

◆ WM_RADIAL_MAX_STR

#define WM_RADIAL_MAX_STR   10

Definition at line 2632 of file wm_operators.cc.

Referenced by blender::radial_control_paint_cursor().