|
Blender V5.0
|
#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.h"#include "BLI_listbase.h"#include "BLI_math_rotation.h"#include "BLI_math_vector.h"#include "BLI_math_vector_types.hh"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_string_utf8.h"#include "BLI_time.h"#include "BLI_utildefines.h"#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_preview_image.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BKE_screen.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_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 | EnumSearchMenu |
| struct | wmOpPopUp |
| struct | SearchPopupInit_Data |
| struct | RadialControl |
| struct | PreviewsIDEnsureData |
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) |
Redraw Timer Operator | |
Use for simple benchmarks. | |
| enum | { eRTDrawRegion = 0 , eRTDrawRegionSwap = 1 , eRTDrawWindow = 2 , eRTDrawWindowSwap = 3 , eRTAnimationStep = 4 , eRTAnimationPlay = 5 , eRTUndo = 6 } |
| static const EnumPropertyItem | redraw_timer_type_items [] |
| static void | redraw_timer_window_swap (bContext *C) |
| static void | 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 | redraw_timer_poll (bContext *C) |
| static wmOperatorStatus | redraw_timer_exec (bContext *C, wmOperator *op) |
| static void | WM_OT_redraw_timer (wmOperatorType *ot) |
Data-Block Preview Clear Operator | |
| enum | PreviewFilterID { PREVIEW_FILTER_ALL , PREVIEW_FILTER_GEOMETRY , PREVIEW_FILTER_SHADING , PREVIEW_FILTER_SCENE , PREVIEW_FILTER_COLLECTION , PREVIEW_FILTER_OBJECT , PREVIEW_FILTER_MATERIAL , PREVIEW_FILTER_LIGHT , PREVIEW_FILTER_WORLD , PREVIEW_FILTER_TEXTURE , PREVIEW_FILTER_IMAGE } |
| static const EnumPropertyItem | preview_id_type_items [] |
| static uint | preview_filter_to_idfilter (enum PreviewFilterID filter) |
| static wmOperatorStatus | previews_clear_exec (bContext *C, wmOperator *op) |
| static void | WM_OT_previews_clear (wmOperatorType *ot) |
Functions for dealing with wmOperator, adding, removing, calling as well as some generic operators and shared operator properties.
Definition in file wm_operators.cc.
| #define CTX_TEST_PTR_ID | ( | C, | |
| member, | |||
| idptr ) |
Referenced by wm_context_member_from_ptr().
Referenced by wm_context_member_from_ptr().
| #define ID_CAST_OBDATA | ( | id_pt | ) |
Referenced by wm_context_member_from_ptr().
| #define ID_CAST_OBMATACT | ( | id_pt | ) |
Referenced by wm_context_member_from_ptr().
| #define ID_CAST_SCENEWORLD | ( | id_pt | ) |
Referenced by wm_context_member_from_ptr().
| #define OP_BL_SEP_LEN 4 |
Definition at line 124 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), WM_operator_bl_idname_is_valid(), and WM_operator_py_idname().
| #define OP_BL_SEP_STRING "_OT_" |
Definition at line 123 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), WM_operator_bl_idname_is_valid(), and WM_operator_py_idname().
| #define OP_MAX_PY_IDNAME (OP_MAX_TYPENAME - OP_BL_SEP_LEN + OP_PY_SEP_LEN - 1) |
Definition at line 131 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), and WM_operator_py_idname_ok_or_report().
| #define OP_PY_SEP_CHAR '.' |
Definition at line 126 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), and WM_operator_py_idname().
| #define OP_PY_SEP_LEN 1 |
Definition at line 127 of file wm_operators.cc.
Referenced by WM_operator_bl_idname(), and WM_operator_py_idname().
| #define TEST_PTR_DATA_TYPE | ( | member, | |
| rna_type, | |||
| rna_ptr, | |||
| dataptr_cmp ) |
Referenced by wm_context_member_from_ptr().
| #define TEST_PTR_DATA_TYPE_FROM_CONTEXT | ( | member, | |
| rna_type, | |||
| rna_ptr ) |
Referenced by wm_context_member_from_ptr().
| #define UNDOCUMENTED_OPERATOR_TIP N_("(undocumented operator)") |
Definition at line 117 of file wm_operators.cc.
| #define WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE (35 * UI_SCALE_FAC) |
Definition at line 2556 of file wm_operators.cc.
Referenced by radial_control_modal(), radial_control_paint_cursor(), and radial_control_set_initial_mouse().
| #define WM_RADIAL_CONTROL_DISPLAY_SIZE (200 * UI_SCALE_FAC) |
Definition at line 2555 of file wm_operators.cc.
Referenced by radial_control_modal(), radial_control_paint_cursor(), and radial_control_set_initial_mouse().
| #define WM_RADIAL_CONTROL_DISPLAY_WIDTH (WM_RADIAL_CONTROL_DISPLAY_SIZE - WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE) |
Definition at line 2557 of file wm_operators.cc.
Referenced by radial_control_modal(), radial_control_paint_cursor(), and radial_control_set_initial_mouse().
| #define WM_RADIAL_MAX_STR 10 |
Definition at line 2559 of file wm_operators.cc.
Referenced by radial_control_paint_cursor().
| anonymous enum |
| Enumerator | |
|---|---|
| eRTDrawRegion | |
| eRTDrawRegionSwap | |
| eRTDrawWindow | |
| eRTDrawWindowSwap | |
| eRTAnimationStep | |
| eRTAnimationPlay | |
| eRTUndo | |
Definition at line 3647 of file wm_operators.cc.
| enum PreviewFilterID |
Definition at line 3972 of file wm_operators.cc.
| enum RCPropFlags |
| Enumerator | |
|---|---|
| RC_PROP_ALLOW_MISSING | |
| RC_PROP_REQUIRE_FLOAT | |
| RC_PROP_REQUIRE_BOOL | |
Definition at line 2967 of file wm_operators.cc.
| enum SearchType |
| Enumerator | |
|---|---|
| SEARCH_TYPE_OPERATOR | |
| SEARCH_TYPE_MENU | |
| SEARCH_TYPE_SINGLE_MENU | |
Definition at line 2016 of file wm_operators.cc.
|
static |
Definition at line 2313 of file wm_operators.cc.
References blender::ui::asset_shelf_popover_invoke(), C, OPERATOR_CANCELLED, OPERATOR_INTERFACE, OPERATOR_PASS_THROUGH, wmOperator::ptr, wmOperator::reports, and RNA_string_get().
Referenced by WM_OT_call_asset_shelf_popover().
|
static |
Definition at line 1521 of file wm_operators.cc.
References C, CTX_wm_window(), UI_popup_block_close(), UI_popup_menu_retval_set(), UI_RETURN_CANCEL, and wm_operator_ui_popup_cancel().
Referenced by wm_block_dialog_create().
|
static |
Definition at line 1493 of file wm_operators.cc.
References C, CTX_wm_window(), data, UI_popup_block_close(), UI_popup_menu_retval_set(), UI_RETURN_OK, and WM_operator_call_ex().
Referenced by wm_block_dialog_create().
|
static |
Definition at line 4114 of file wm_operators.cc.
References C, blender::wm::ExecDefault, OPERATOR_CANCELLED, RNA_string_set(), UI_but_online_manual_id_from_active(), WM_operator_name_call_ptr(), WM_operator_properties_create(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by WM_OT_doc_view_manual_ui_context().
|
static |
Definition at line 4341 of file wm_operators.cc.
References GESTURE_MODAL_BEGIN, GESTURE_MODAL_CANCEL, GESTURE_MODAL_DESELECT, GESTURE_MODAL_MOVE, GESTURE_MODAL_SELECT, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4270 of file wm_operators.cc.
References GESTURE_MODAL_CANCEL, GESTURE_MODAL_CIRCLE_ADD, GESTURE_MODAL_CIRCLE_SIZE, GESTURE_MODAL_CIRCLE_SUB, GESTURE_MODAL_CONFIRM, GESTURE_MODAL_DESELECT, GESTURE_MODAL_NOP, GESTURE_MODAL_SELECT, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4399 of file wm_operators.cc.
References GESTURE_MODAL_MOVE, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4432 of file wm_operators.cc.
References GESTURE_MODAL_CANCEL, GESTURE_MODAL_CONFIRM, GESTURE_MODAL_MOVE, GESTURE_MODAL_SELECT, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4308 of file wm_operators.cc.
References GESTURE_MODAL_BEGIN, GESTURE_MODAL_CANCEL, GESTURE_MODAL_FLIP, GESTURE_MODAL_MOVE, GESTURE_MODAL_SELECT, GESTURE_MODAL_SNAP, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 4459 of file wm_operators.cc.
References GESTURE_MODAL_BEGIN, GESTURE_MODAL_CANCEL, GESTURE_MODAL_IN, GESTURE_MODAL_OUT, wmKeyMap::modal_items, WM_modalkeymap_assign(), WM_modalkeymap_ensure(), and WM_modalkeymap_find().
Referenced by wm_window_keymap().
|
static |
Definition at line 3855 of file wm_operators.cc.
References MEM_printmemlist_stats, and OPERATOR_FINISHED.
Referenced by WM_OT_memory_statistics().
|
static |
Definition at line 877 of file wm_operators.cc.
References CLOG_DEBUG, blender::bke::idprop::create_group(), IDProperty::flag, wmOperatorType::idname, IDP_AddToGroup(), IDP_CopyProperty(), IDP_FLAG_GHOST, IDP_FreeProperty(), IDP_GetPropertyFromGroup(), IDP_MergeGroup(), PROP_SKIP_SAVE, wmOperator::properties, wmOperator::ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_flag(), RNA_property_identifier(), RNA_property_is_set(), RNA_struct_iterator_property(), wmOperatorType::srna, wmOperator::type, and WM_LOG_OPERATORS.
Referenced by WM_operator_last_properties_init().
|
static |
Definition at line 4013 of file wm_operators.cc.
References filter, FILTER_ID_GR, FILTER_ID_IM, FILTER_ID_LA, FILTER_ID_MA, FILTER_ID_OB, FILTER_ID_SCE, FILTER_ID_TE, FILTER_ID_WO, PREVIEW_FILTER_ALL, PREVIEW_FILTER_COLLECTION, PREVIEW_FILTER_GEOMETRY, PREVIEW_FILTER_IMAGE, PREVIEW_FILTER_LIGHT, PREVIEW_FILTER_MATERIAL, PREVIEW_FILTER_OBJECT, PREVIEW_FILTER_SCENE, PREVIEW_FILTER_SHADING, PREVIEW_FILTER_TEXTURE, and PREVIEW_FILTER_WORLD.
Referenced by previews_clear_exec().
|
static |
Definition at line 4044 of file wm_operators.cc.
References BKE_idtype_idcode_to_idfilter(), BKE_previewimg_clear(), BKE_previewimg_id_ensure(), C, Main::collections, CTX_data_main(), ListBase::first, GS, i, Main::images, Main::lights, Main::materials, ID::name, Main::objects, OPERATOR_FINISHED, preview_filter_to_idfilter(), printf, wmOperator::ptr, RNA_enum_get(), Main::textures, and Main::worlds.
Referenced by WM_OT_previews_clear().
|
static |
Definition at line 3915 of file wm_operators.cc.
References BKE_library_foreach_ID_link(), BKE_main_id_tag_all(), BKE_main_id_tag_listbase(), C, PreviewsIDEnsureData::C, CTX_data_main(), i, ID_TAG_DOIT, IDWALK_RECURSE, Main::images, Main::lights, LISTBASE_FOREACH, Main::materials, OPERATOR_FINISHED, previews_id_ensure(), previews_id_ensure_callback(), PreviewsIDEnsureData::scene, Main::scenes, Main::textures, and Main::worlds.
Referenced by WM_OT_previews_ensure().
Definition at line 3883 of file wm_operators.cc.
References BLI_assert, C, ELEM, GS, ICON_SIZE_ICON, ICON_SIZE_PREVIEW, ID_IM, ID_IS_EDITABLE, ID_LA, ID_MA, ID_TE, ID_WO, ID::name, UI_icon_render_id(), and ID::us.
Referenced by previews_ensure_exec(), and previews_id_ensure_callback().
|
static |
Definition at line 3895 of file wm_operators.cc.
References BLI_assert, LibraryIDLinkCallbackData::cb_flag, data, ELEM, GS, ID_IM, ID_LA, ID_MA, LibraryIDLinkCallbackData::id_pointer, ID_TAG_DOIT, ID_TE, ID_WO, IDWALK_CB_EMBEDDED, IDWALK_CB_EMBEDDED_NOT_OWNING, IDWALK_RET_NOP, ID::name, previews_id_ensure(), ID::tag, and LibraryIDLinkCallbackData::user_data.
Referenced by previews_ensure_exec().
|
static |
Definition at line 3260 of file wm_operators.cc.
References BLI_dial_free(), C, CTX_wm_area(), CTX_wm_manager(), RadialControl::cursor, wmOperator::customdata, RadialControl::dial, ED_area_status_text(), GPU_texture_free(), NC_WINDOW, RadialControl::orig_paintcursors, wmWindowManager::runtime, RadialControl::texture, WM_event_add_notifier(), and WM_paint_cursor_end().
Referenced by radial_control_modal(), and WM_OT_radial_control().
|
static |
Attempt to retrieve the rna pointer/property from an rna path.
Definition at line 2978 of file wm_operators.cc.
References BKE_report(), BKE_reportf(), len, name, PROP_BOOLEAN, PROP_FLOAT, wmOperator::ptr, RC_PROP_ALLOW_MISSING, RC_PROP_REQUIRE_BOOL, RC_PROP_REQUIRE_FLOAT, wmOperator::reports, RNA_path_resolve(), RNA_property_array_length(), RNA_property_type(), RNA_string_get(), RPT_ERROR, and str.
Referenced by radial_control_get_properties().
|
static |
Definition at line 3045 of file wm_operators.cc.
References BKE_report(), C, RadialControl::col_prop, RadialControl::col_ptr, wmOperator::customdata, PointerRNA::data, RadialControl::fill_col_override_prop, RadialControl::fill_col_override_ptr, RadialControl::fill_col_override_test_prop, RadialControl::fill_col_override_test_ptr, RadialControl::fill_col_prop, RadialControl::fill_col_ptr, RadialControl::image_id_ptr, RadialControl::prop, RadialControl::ptr, wmOperator::ptr, radial_control_get_path(), RC_PROP_ALLOW_MISSING, RC_PROP_REQUIRE_BOOL, RC_PROP_REQUIRE_FLOAT, wmOperator::reports, RNA_boolean_get(), RNA_pointer_create_discrete(), RNA_property_boolean_get(), RNA_struct_is_ID(), RadialControl::rot_prop, RadialControl::rot_ptr, RPT_ERROR, PointerRNA::type, RadialControl::use_secondary_tex, RadialControl::zoom_prop, and RadialControl::zoom_ptr.
Referenced by radial_control_invoke().
|
static |
Definition at line 3157 of file wm_operators.cc.
References BKE_report(), BLI_listbase_clear(), C, CTX_wm_manager(), RadialControl::current_value, RadialControl::cursor, wmOperator::customdata, ELEM, NumInput::idx_max, RadialControl::init_event, RadialControl::initial_value, initNumInput(), max, max_ff(), max_ii(), RadialControl::max_value, min, min_ff(), min_ii(), RadialControl::min_value, RadialControl::num_input, NUM_NO_NEGATIVE, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, RadialControl::orig_paintcursors, wmOperatorType::poll, RadialControl::prop, PROP_ANGLE, PROP_DISTANCE, PROP_DISTANCE_DIAMETER, PROP_FACTOR, PROP_FLOAT, PROP_INT, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, PROP_PIXEL_DIAMETER, RadialControl::ptr, radial_control_get_properties(), radial_control_paint_cursor(), radial_control_set_initial_mouse(), radial_control_set_tex(), wmOperator::reports, RGN_TYPE_ANY, RNA_property_float_get(), RNA_property_float_ui_range(), RNA_property_int_get(), RNA_property_int_ui_range(), RNA_property_subtype(), RNA_property_type(), RNA_property_unit(), RNA_SUBTYPE_UNIT_VALUE, RPT_ERROR, wmWindowManager::runtime, SPACE_TYPE_ANY, step, RadialControl::subtype, RadialControl::type, wmEvent::type, wmOperator::type, NumInput::unit_sys, NumInput::unit_type, USER_UNIT_NONE, NumInput::val_flag, WM_event_add_modal_handler(), WM_paint_cursor_activate(), and WM_userdef_event_type_from_keymap_type().
Referenced by WM_OT_radial_control().
|
static |
Definition at line 3290 of file wm_operators.cc.
References applyNumInput(), atan2f, BLI_dial_angle(), BLI_dial_free(), BLI_dial_init(), C, ceil, CLAMP, clamp_f(), CTX_wm_manager(), CTX_wm_region(), RadialControl::current_value, wmOperator::customdata, DEG2RADF, RadialControl::dial, ED_region_tag_redraw(), ED_undo_is_legacy_compatible_for_property(), ED_undo_push(), EVT_ESCKEY, EVT_LEFTSHIFTKEY, EVT_PADENTER, EVT_RETKEY, EVT_RIGHTSHIFTKEY, float, FLT_MAX, fmod(), handleNumInput(), hasNumInput(), RadialControl::init_event, RadialControl::initial_radial_center, RadialControl::initial_value, KM_CTRL, KM_PRESS, KM_RELEASE, LEFTMOUSE, len_v2(), M_PI, RadialControl::max_value, RadialControl::min_value, MOUSEMOVE, wmOperatorType::name, RadialControl::num_input, wmWindowManager::op_undo_depth, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, PointerRNA::owner_id, RadialControl::prop, PROP_ANGLE, PROP_DISTANCE, PROP_DISTANCE_DIAMETER, PROP_FACTOR, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, PROP_PIXEL_DIAMETER, RadialControl::ptr, wmOperator::ptr, RAD2DEGF, radial_control_cancel(), radial_control_set_value(), radial_control_update_header(), ret, RIGHTMOUSE, RNA_boolean_get(), RNA_property_float_get_array(), RNA_property_update(), RadialControl::slow_mode, RadialControl::slow_mouse, snap(), RadialControl::subtype, wmEvent::type, wmOperator::type, wmEvent::val, WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE, WM_RADIAL_CONTROL_DISPLAY_SIZE, WM_RADIAL_CONTROL_DISPLAY_WIDTH, wmEvent::xy, RadialControl::zoom_prop, and RadialControl::zoom_ptr.
Referenced by WM_OT_radial_control().
|
static |
Definition at line 2805 of file wm_operators.cc.
References BLF_color4fv(), BLF_draw(), BLF_position(), BLF_size(), BLF_width_and_height(), BLI_strlen_utf8(), col, RadialControl::col_prop, RadialControl::col_ptr, RadialControl::current_value, PointerRNA::data, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_line_smooth(), GPU_line_width(), GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_rotate_3f(), GPU_matrix_scale_2fv(), GPU_matrix_translate_2f(), GPU_PRIM_LINES, GPU_SHADER_3D_UNIFORM_COLOR, GPU_vertformat_attr_add(), ID_BR, RadialControl::image_id_ptr, imm_draw_circle_fill_2d(), imm_draw_circle_wire_2d(), immBegin(), immBindBuiltinProgram(), immEnd(), immUnbindProgram(), immUniformColor3fvAlpha(), immVertex2f(), immVertexFormat(), RadialControl::initial_co, RadialControl::initial_radial_center, RadialControl::initial_value, uiFontStyle::points, pos, PROP_ANGLE, PROP_DISTANCE, PROP_DISTANCE_DIAMETER, PROP_FACTOR, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, PROP_PIXEL_DIAMETER, RAD2DEGF, radial_control_paint_curve(), radial_control_paint_tex(), RNA_property_float_get_array(), RNA_type_to_ID_code(), SNPRINTF, str, RadialControl::subtype, TH_TEXT_HI, PointerRNA::type, UI_GetThemeColor4fv(), UI_SCALE_FAC, UI_style_get(), uiFontStyle::uifont_id, uiStyle::widget, WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE, WM_RADIAL_CONTROL_DISPLAY_SIZE, WM_RADIAL_CONTROL_DISPLAY_WIDTH, WM_RADIAL_MAX_STR, x, y, RadialControl::zoom_prop, and RadialControl::zoom_ptr.
Referenced by radial_control_invoke().
Definition at line 2789 of file wm_operators.cc.
References BKE_brush_curve_strength_clamped(), BKE_curvemapping_init(), Brush::curve_distance_falloff, fabsf, GPU_line_width(), GPU_PRIM_LINES, i, immBegin(), immEnd(), immUniformColor4f(), immVertex2f(), pos, and step.
Referenced by radial_control_paint_cursor().
|
static |
Definition at line 2713 of file wm_operators.cc.
References col, RadialControl::fill_col_override_prop, RadialControl::fill_col_override_ptr, RadialControl::fill_col_override_test_prop, RadialControl::fill_col_override_test_ptr, RadialControl::fill_col_prop, RadialControl::fill_col_ptr, GPU_matrix_pop(), GPU_matrix_push(), GPU_matrix_rotate_2d(), GPU_PRIM_TRI_FAN, GPU_SHADER_3D_IMAGE_COLOR, GPU_SHADER_3D_UNIFORM_COLOR, GPU_texture_unbind(), GPU_vertformat_attr_add(), imm_draw_circle_fill_2d(), immAttr2f(), immBegin(), immBindBuiltinProgram(), immBindTexture(), immEnd(), immUnbindProgram(), immUniformColor3fvAlpha(), immVertex2f(), immVertexFormat(), pos, RAD2DEGF, RNA_property_boolean_get(), RNA_property_float_get(), RNA_property_float_get_array(), rot, RadialControl::rot_prop, RadialControl::rot_ptr, and RadialControl::texture.
Referenced by radial_control_paint_cursor().
|
static |
Definition at line 2635 of file wm_operators.cc.
References copy_v2_v2_int(), cosf, RadialControl::initial_co, RadialControl::initial_radial_center, RadialControl::initial_value, PROP_ANGLE, PROP_DISTANCE, PROP_DISTANCE_DIAMETER, PROP_FACTOR, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, PROP_PIXEL_DIAMETER, RNA_property_float_get_array(), sinf, RadialControl::subtype, WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE, WM_RADIAL_CONTROL_DISPLAY_SIZE, WM_RADIAL_CONTROL_DISPLAY_WIDTH, wmEvent::xy, RadialControl::zoom_prop, and RadialControl::zoom_ptr.
Referenced by radial_control_invoke().
|
static |
Definition at line 2677 of file wm_operators.cc.
References BKE_brush_gen_radial_control_imbuf(), ImBufFloatBuffer::data, PointerRNA::data, ELEM, ImBuf::float_buffer, GPU_texture_create_2d(), GPU_texture_filter_mode(), GPU_texture_swizzle_set(), GPU_TEXTURE_USAGE_SHADER_READ, ID_BR, RadialControl::image_id_ptr, MEM_freeN(), PROP_DISTANCE, PROP_DISTANCE_DIAMETER, PROP_NONE, PROP_PIXEL, PROP_PIXEL_DIAMETER, RNA_type_to_ID_code(), RadialControl::subtype, RadialControl::texture, PointerRNA::type, RadialControl::use_secondary_tex, ImBuf::x, and ImBuf::y.
Referenced by radial_control_invoke().
|
static |
Definition at line 3246 of file wm_operators.cc.
References RadialControl::prop, PROP_FLOAT, PROP_INT, RadialControl::ptr, RNA_property_float_set(), RNA_property_int_set(), and RadialControl::type.
Referenced by radial_control_modal().
|
static |
Definition at line 2593 of file wm_operators.cc.
References C, CTX_data_scene(), CTX_wm_area(), RadialControl::current_value, wmOperator::customdata, ED_area_status_text(), hasNumInput(), RadialControl::num_input, NUM_STR_REP_LEN, outputNumInput(), RadialControl::prop, PROP_ANGLE, PROP_DISTANCE, PROP_DISTANCE_DIAMETER, PROP_FACTOR, PROP_NONE, PROP_PERCENTAGE, PROP_PIXEL, PROP_PIXEL_DIAMETER, RAD2DEGF, RNA_property_ui_name(), SNPRINTF, STRNCPY(), RadialControl::subtype, UI_MAX_DRAW_STR, and Scene::unit.
Referenced by radial_control_modal().
|
static |
Definition at line 3758 of file wm_operators.cc.
References BKE_reportf(), BLI_time_now_seconds(), C, RenderData::cfra, CTX_data_depsgraph_pointer(), CTX_data_scene(), CTX_wm_area(), CTX_wm_manager(), CTX_wm_region(), CTX_wm_window(), depsgraph, ED_workspace_status_text(), eRTAnimationPlay, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, redraw_timer_step(), redraw_timer_type_items, wmOperator::reports, RNA_enum_description(), RNA_enum_get(), RNA_float_get(), RNA_int_get(), RPT_WARNING, status, WM_cursor_wait(), WM_progress_clear(), and wm_window_make_drawable().
Referenced by WM_OT_redraw_timer().
|
static |
Definition at line 3750 of file wm_operators.cc.
References C, G, and WM_operator_winactive().
Referenced by WM_OT_redraw_timer().
|
static |
Definition at line 3668 of file wm_operators.cc.
References bScreen::areabase, BKE_scene_graph_update_for_newframe(), C, RenderData::cfra, CTX_wm_area_set(), CTX_wm_region_popup_set(), CTX_wm_region_set(), CTX_wm_window_set(), depsgraph, ED_region_tag_redraw(), ED_undo_pop(), ED_undo_redo(), RenderData::efra, eRTAnimationPlay, eRTAnimationStep, eRTDrawRegion, eRTDrawRegionSwap, eRTDrawWindow, eRTDrawWindowSwap, LISTBASE_FOREACH, Scene::r, redraw_timer_window_swap(), RenderData::sfra, wm_draw_region_test(), wm_draw_update(), wm_event_do_refresh_wm_and_depsgraph(), WM_progress_set(), and WM_window_get_active_screen().
Referenced by redraw_timer_exec().
|
static |
Definition at line 3632 of file wm_operators.cc.
References bScreen::areabase, C, CTX_wm_region_popup_set(), CTX_wm_screen(), CTX_wm_window(), CTX_wm_window_set(), ED_area_tag_redraw(), LISTBASE_FOREACH, and wm_draw_update().
Referenced by redraw_timer_step().
| const EnumPropertyItem * RNA_action_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Generic functions, return an enum from library data, index is the position in the linked list can add more for different types as needed.
Definition at line 4565 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
Referenced by NLA_OT_actionclip_add(), and blender::ed::outliner::OUTLINER_OT_action_set().
| const EnumPropertyItem * RNA_collection_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4584 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
Referenced by blender::ed::object::OBJECT_OT_collection_external_asset_drop(), and blender::ed::object::OBJECT_OT_collection_instance_add().
| const EnumPropertyItem * RNA_collection_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4592 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
Referenced by blender::ed::object::OBJECT_OT_collection_link().
|
static |
Definition at line 4509 of file wm_operators.cc.
Referenced by rna_id_enum_filter_single_and_assets().
|
static |
Definition at line 4514 of file wm_operators.cc.
References ID::asset_data, and rna_id_enum_filter_single().
Referenced by RNA_scene_without_sequencer_scene_itemf().
|
static |
Definition at line 4526 of file wm_operators.cc.
References GS, i, EnumPropertyItem::icon, ID_GR, ID_IS_LINKED, EnumPropertyItem::identifier, EnumPropertyItem::name, ID::name, RNA_enum_item_add(), RNA_enum_item_end(), UI_icon_color_from_collection(), and EnumPropertyItem::value.
Referenced by RNA_action_itemf(), RNA_collection_itemf(), RNA_collection_local_itemf(), RNA_image_itemf(), RNA_image_local_itemf(), RNA_mask_itemf(), RNA_mask_local_itemf(), RNA_movieclip_itemf(), RNA_movieclip_local_itemf(), RNA_scene_itemf(), RNA_scene_local_itemf(), and RNA_scene_without_sequencer_scene_itemf().
| const EnumPropertyItem * RNA_image_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4601 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
Referenced by PAINT_OT_project_image().
| const EnumPropertyItem * RNA_image_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4609 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
| const EnumPropertyItem * RNA_mask_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4663 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
Referenced by blender::ed::vse::SEQUENCER_OT_mask_strip_add().
| const EnumPropertyItem * RNA_mask_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4671 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
| const EnumPropertyItem * RNA_movieclip_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4646 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
Referenced by blender::ed::vse::SEQUENCER_OT_movieclip_strip_add().
| const EnumPropertyItem * RNA_movieclip_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4654 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
| const EnumPropertyItem * RNA_scene_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4618 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
Referenced by MARKER_OT_make_links_scene().
| const EnumPropertyItem * RNA_scene_local_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4626 of file wm_operators.cc.
References C, CTX_data_main(), and rna_id_itemf().
Referenced by blender::ed::object::OBJECT_OT_make_links_scene().
| const EnumPropertyItem * RNA_scene_without_sequencer_scene_itemf | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| bool * | r_free ) |
Definition at line 4634 of file wm_operators.cc.
References C, CTX_data_main(), CTX_data_sequencer_scene(), rna_id_enum_filter_single_and_assets(), and rna_id_itemf().
Referenced by blender::ed::vse::SEQUENCER_OT_change_scene(), and blender::ed::vse::SEQUENCER_OT_scene_strip_add().
Definition at line 1430 of file wm_operators.cc.
References BLI_assert, blender::ui::block_layout(), C, col, uiLayout::column(), blender::ui::Emboss, uiLayout::enabled_set(), wmOperatorType::flag, Line, wmOperatorType::name, OPTYPE_REGISTER, blender::ui::Panel, wmOperator::ptr, uiLayout::separator(), wmOperator::type, UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_disable(), UI_block_flag_enable(), UI_block_func_handle_set(), UI_BLOCK_KEEP_OPEN, UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_NUMSELECT, UI_BLOCK_THEME_STYLE_REGULAR, UI_block_theme_style_set(), UI_BUT_LABEL_ALIGN_NONE, UI_popup_dummy_panel_set(), UI_SCALE_FAC, UI_style_get_dpi(), UI_UNIT_X, UI_UNIT_Y, uiItemL_ex(), uiTemplateOperatorPropertyButs(), blender::ui::Vertical, wm_block_redo_cb(), WM_operator_check_ui_enabled(), WM_operator_last_redo(), and WM_operatortype_name().
Referenced by wm_operator_props_popup_ex(), and WM_operator_redo_popup().
Dialogs are popups that require user verification (click OK) before exec.
Definition at line 1533 of file wm_operators.cc.
References ALERT_ICON_MAX, ALERT_ICON_NONE, ALERT_ICON_QUESTION, blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BLF_DRAW_STR_DUMMY_MAX, BLF_width(), uiLayout::block(), blender::ui::block_layout(), But, C, col, uiLayout::column(), uiStyle::columnspace, data, dialog_cancel_cb(), dialog_exec_cb(), blender::ui::Emboss, IFACE_, uiLayout::label(), Line, padding(), blender::ui::Panel, uiLayout::scale_y_set(), uiLayout::separator(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::StringRefBase::trim(), UI_block_begin(), UI_block_bounds_set_centered(), UI_block_bounds_set_popup(), UI_block_flag_disable(), UI_block_flag_enable(), UI_block_func_set(), UI_block_has_active_default_button(), UI_BLOCK_KEEP_OPEN, UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_NUMSELECT, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BUT_ACTIVE_DEFAULT, UI_but_flag_enable(), UI_but_func_set(), UI_BUT_LABEL_ALIGN_SPLIT_COLUMN, UI_fontstyle_set(), UI_popup_dummy_panel_set(), UI_SCALE_FAC, UI_style_get_dpi(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiFontStyle::uifont_id, uiItemL_ex(), uiItemsAlertBox(), uiTemplateOperatorPropertyButs(), blender::ui::Vertical, uiStyle::widget, uiLayout::width(), WM_POPUP_POSITION_CENTER, WM_POPUP_POSITION_MOUSE, and WM_POPUP_SIZE_SMALL.
Referenced by WM_operator_confirm_ex(), and WM_operator_props_dialog_popup().
|
static |
Definition at line 1420 of file wm_operators.cc.
References C, WM_operator_free(), and WM_operator_last_redo().
Referenced by wm_operator_props_popup_ex().
|
static |
Definition at line 1403 of file wm_operators.cc.
References C, ED_undo_operator_repeat(), ED_undo_push_op(), WM_operator_last_redo(), wm_operator_register(), and WM_operator_repeat().
Referenced by wm_block_create_redo(), and wm_operator_props_popup_ex().
Definition at line 2030 of file wm_operators.cc.
References BLI_assert_unreachable, C, blender::ui::Emboss, g_search_text, init_data(), Label, SEARCH_TYPE_MENU, SEARCH_TYPE_OPERATOR, SEARCH_TYPE_SINGLE_MENU, UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_enable(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_SEARCH_MENU, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BUT2_ACTIVATE_ON_INIT_NO_SELECT, UI_BUT_ACTIVATE_ON_INIT, UI_but_flag2_enable(), UI_but_flag_enable(), UI_but_func_menu_search(), UI_but_func_operator_search(), UI_SEARCHBOX_BOUNDS, UI_UNIT_Y, uiDefBut(), and uiDefSearchBut().
Referenced by wm_search_menu_invoke().
|
static |
Definition at line 2192 of file wm_operators.cc.
References BKE_ST_MAXNAME, C, wmOperator::ptr, wmOperator::reports, RNA_string_get(), and UI_popup_menu_invoke().
Referenced by WM_OT_call_menu().
|
static |
Definition at line 2200 of file wm_operators.cc.
References BKE_ST_MAXNAME, CTX_IFACE_, MenuType::label, ot, ptr, RNA_string_get(), MenuType::translation_context, and WM_menutype_find().
Referenced by WM_OT_call_menu(), and WM_OT_call_menu_pie().
|
static |
Definition at line 2270 of file wm_operators.cc.
References BKE_ST_MAXNAME, C, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_string_get(), and UI_popover_panel_invoke().
Referenced by WM_OT_call_panel().
|
static |
Definition at line 2279 of file wm_operators.cc.
References BKE_ST_MAXNAME, CTX_IFACE_, PanelType::label, ot, ptr, RNA_string_get(), PanelType::translation_context, and WM_paneltype_find().
Referenced by WM_OT_call_panel().
|
static |
Definition at line 2239 of file wm_operators.cc.
References BKE_ST_MAXNAME, C, CTX_wm_window(), wmOperator::ptr, RNA_string_get(), and UI_pie_menu_invoke().
Referenced by WM_OT_call_menu_pie().
|
static |
Definition at line 2231 of file wm_operators.cc.
References BKE_ST_MAXNAME, C, wmOperator::ptr, RNA_string_get(), and UI_pie_menu_invoke().
Referenced by WM_OT_call_menu_pie().
|
static |
r_is_id:
|
Definition at line 444 of file wm_operators.cc.
References bArmature::act_bone, bArmature::act_edbone, SpaceAction::ads, SpaceGraph::ads, SpaceNla::ads, C, CTX_TEST_PTR_ID, CTX_TEST_PTR_ID_CAST, CTX_wm_area(), CTX_wm_region(), CTX_wm_space_data(), ED_fileselect_get_active_params(), bArmature::edbo, GS, ID_AR, ID_CAST_OBDATA, ID_CAST_OBMATACT, ID_CAST_SCENEWORLD, ID_MA, ID_OB, ID_SCE, ID_SCR, id_type_can_have_animdata(), ID_WO, OB_DATA_SUPPORT_ID_CASE, params, ptr, View3D::shading, SPACE_ACTION, SPACE_CLIP, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_NLA, SPACE_NODE, SPACE_SEQ, SPACE_VIEW3D, SpaceLink::spacetype, TEST_PTR_DATA_TYPE, and TEST_PTR_DATA_TYPE_FROM_CONTEXT.
Referenced by WM_context_path_resolve_property_full().
| std::optional< std::string > WM_context_path_resolve_full | ( | bContext * | C, |
| const PointerRNA * | ptr ) |
Definition at line 695 of file wm_operators.cc.
References C, ptr, and WM_context_path_resolve_property_full().
Referenced by ui_but_is_user_menu_compatible(), ui_but_user_menu_add(), and ui_but_user_menu_find().
| std::optional< std::string > WM_context_path_resolve_property_full | ( | const bContext * | C, |
| const PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index ) |
Calculate the path to ptr from context C, or return NULL if it can't be calculated.
Definition at line 649 of file wm_operators.cc.
References C, ptr, RNA_path_from_ID_to_struct(), RNA_path_property_py(), RNA_struct_is_ID(), and wm_context_member_from_ptr().
Referenced by shortcut_property_from_rna(), ui_but_event_property_operator_string(), WM_context_path_resolve_full(), and wm_prop_pystring_from_context().
|
static |
Definition at line 1948 of file wm_operators.cc.
References C, CTX_wm_manager(), CTX_wm_window(), ED_screen_refresh(), G, NC_WINDOW, OPERATOR_FINISHED, wmOperator::ptr, RNA_int_get(), and WM_event_add_notifier().
Referenced by WM_OT_debug_menu().
|
static |
Definition at line 1957 of file wm_operators.cc.
References C, G, IFACE_, wmOperator::ptr, RNA_int_set(), and WM_operator_props_dialog_popup().
Referenced by WM_OT_debug_menu().
| wmOperatorStatus WM_enum_search_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 1201 of file wm_operators.cc.
References C, EnumSearchMenu::op, OPERATOR_INTERFACE, UI_popup_block_invoke_ex(), and wm_enum_search_menu().
Referenced by nlaedit_add_actionclip_invoke(), blender::ed::object::object_instance_add_invoke(), blender::ed::object::OBJECT_OT_collection_link(), blender::ed::object::OBJECT_OT_make_links_scene(), blender::ed::outliner::OUTLINER_OT_action_set(), PAINT_OT_project_image(), blender::ed::vse::sequencer_add_mask_strip_invoke(), blender::ed::vse::sequencer_add_movieclip_strip_invoke(), blender::ed::vse::sequencer_add_scene_strip_invoke(), blender::ed::vse::sequencer_change_scene_invoke(), and WM_event_add().
Generic enum search invoke popup.
Definition at line 1147 of file wm_operators.cc.
References C, CTX_wm_window(), PointerRNA::data, blender::ui::Emboss, Label, EnumSearchMenu::op, wmOperator::ptr, wmOperator::type, UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_enable(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_SEARCH_MENU, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_but_focus_on_enter_event(), UI_SEARCHBOX_BOUNDS, UI_searchbox_size_x(), UI_searchbox_size_y(), UI_UNIT_Y, uiDefBut(), uiDefSearchButO_ptr(), and WM_operatortype_name().
Referenced by WM_enum_search_invoke().
|
static |
Definition at line 2434 of file wm_operators.cc.
References C, OPERATOR_FINISHED, and wm_exit_schedule_delayed().
Referenced by WM_OT_quit_blender().
|
static |
Definition at line 2440 of file wm_operators.cc.
References C, CTX_wm_window(), OPERATOR_FINISHED, U, USER_SAVE_PROMPT, wm_exit_schedule_delayed(), and wm_quit_with_optional_confirmation_prompt().
Referenced by WM_OT_quit_blender().
| wmOperatorStatus WM_generic_select_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Helper to get select and tweak-transform to work conflict free and as desired. See WM_operator_properties_generic_select() for details.
To be used together with WM_generic_select_modal() and WM_operator_properties_generic_select().
Definition at line 1048 of file wm_operators.cc.
References C, CTX_wm_region(), wmOperator::customdata, wmOperatorType::modal, OPERATOR_RETVAL_CHECK, POINTER_FROM_INT, wmOperator::ptr, RNA_int_set(), wmOperator::type, and WM_event_drag_start_mval().
Referenced by ACTION_OT_clickselect(), FILE_OT_select(), GRAPH_OT_clickselect(), MARKER_OT_select(), NLA_OT_click_select(), blender::ed::vse::sequencer_select_invoke(), ui_view_item_select_invoke(), and WM_event_add().
| wmOperatorStatus WM_generic_select_modal | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Helper to get select and tweak-transform to work conflict free and as desired. See WM_operator_properties_generic_select() for details.
To be used together with WM_generic_select_invoke() and WM_operator_properties_generic_select().
Definition at line 981 of file wm_operators.cc.
References C, wmOperator::customdata, wmOperatorType::exec, ISMOUSE_MOTION, KM_PRESS, KM_RELEASE, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RETVAL_CHECK, OPERATOR_RUNNING_MODAL, POINTER_AS_INT, POINTER_FROM_INT, wmOperator::ptr, RNA_int_get(), RNA_property_boolean_set(), RNA_struct_find_property(), RNA_struct_property_is_set(), wmEvent::type, wmOperator::type, wmEvent::val, WM_event_add_modal_handler(), and WM_event_drag_test_with_delta().
Referenced by ACTION_OT_clickselect(), FILE_OT_select(), GRAPH_OT_clickselect(), MARKER_OT_select(), NLA_OT_click_select(), blender::ed::vse::SEQUENCER_OT_select(), UI_OT_view_item_select(), and WM_event_add().
| wmOperatorStatus WM_menu_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 1137 of file wm_operators.cc.
References C, blender::wm::InvokeRegionWin, and WM_menu_invoke_ex().
Referenced by ACTION_OT_easing_type(), ACTION_OT_extrapolation_type(), ACTION_OT_handle_type(), ACTION_OT_interpolation_type(), ACTION_OT_keyframe_insert(), ACTION_OT_keyframe_type(), ACTION_OT_mirror(), ACTION_OT_snap(), ANIM_OT_channels_setting_disable(), ANIM_OT_channels_setting_enable(), ANIM_OT_channels_setting_toggle(), ARMATURE_OT_autoside_names(), ARMATURE_OT_calculate_roll(), ARMATURE_OT_select_similar(), BOID_OT_rule_add(), blender::ed::object::COLLECTION_OT_objects_add_active(), blender::ed::object::COLLECTION_OT_objects_remove(), blender::ed::object::COLLECTION_OT_objects_remove_active(), CURVE_OT_delete(), CURVE_OT_handle_type_set(), CURVE_OT_select_similar(), CURVE_OT_spline_type_set(), blender::ed::curves::CURVES_OT_handle_type_set(), blender::ed::object::datalayout_transfer_invoke(), GRAPH_OT_easing_type(), GRAPH_OT_extrapolation_type(), GRAPH_OT_fmodifier_add(), GRAPH_OT_handle_type(), GRAPH_OT_interpolation_type(), GRAPH_OT_keyframe_insert(), GRAPH_OT_mirror(), graphkeys_selected_control_points_invoke(), blender::ed::greasepencil::GREASE_PENCIL_OT_caps_set(), blender::ed::greasepencil::GREASE_PENCIL_OT_convert_curve_type(), blender::ed::greasepencil::GREASE_PENCIL_OT_cyclical_set(), blender::ed::greasepencil::GREASE_PENCIL_OT_delete_frame(), blender::ed::greasepencil::GREASE_PENCIL_OT_dissolve(), blender::ed::greasepencil::GREASE_PENCIL_OT_reproject(), blender::ed::greasepencil::GREASE_PENCIL_OT_select_similar(), blender::ed::greasepencil::GREASE_PENCIL_OT_separate(), blender::ed::greasepencil::GREASE_PENCIL_OT_set_curve_type(), blender::ed::greasepencil::GREASE_PENCIL_OT_set_handle_type(), LATTICE_OT_flip(), MARKER_OT_make_links_scene(), MASK_OT_handle_type_set(), MBALL_OT_select_similar(), MESH_OT_delete(), MESH_OT_merge(), MESH_OT_select_similar(), MESH_OT_separate(), MESH_OT_sort_elements(), blender::ed::object::modifier_add_invoke(), new_sequencer_scene_invoke(), NLA_OT_fmodifier_add(), NLA_OT_snap(), blender::ed::space_node::NODE_OT_select_grouped(), blender::ed::object::OBJECT_OT_constraint_add(), blender::ed::object::OBJECT_OT_constraint_add_with_targets(), blender::ed::object::OBJECT_OT_convert(), blender::ed::object::OBJECT_OT_data_transfer(), blender::ed::object::OBJECT_OT_empty_add(), blender::ed::object::OBJECT_OT_hook_remove(), blender::ed::object::OBJECT_OT_light_add(), blender::ed::object::OBJECT_OT_make_local(), blender::ed::object::OBJECT_OT_metaball_add(), blender::ed::object::OBJECT_OT_origin_set(), blender::ed::object::OBJECT_OT_parent_clear(), blender::ed::object::OBJECT_OT_select_by_type(), blender::ed::object::OBJECT_OT_select_grouped(), blender::ed::object::OBJECT_OT_select_linked(), blender::ed::object::OBJECT_OT_shaderfx_add(), blender::ed::object::OBJECT_OT_track_clear(), blender::ed::object::OBJECT_OT_track_set(), blender::ed::object::OBJECT_OT_vertex_group_set_active(), blender::ed::outliner::OUTLINER_OT_animdata_operation(), blender::ed::outliner::OUTLINER_OT_constraint_operation(), blender::ed::outliner::OUTLINER_OT_data_operation(), blender::ed::outliner::OUTLINER_OT_id_operation(), blender::ed::outliner::OUTLINER_OT_lib_operation(), blender::ed::outliner::OUTLINER_OT_liboverride_operation(), blender::ed::outliner::OUTLINER_OT_liboverride_troubleshoot_operation(), blender::ed::outliner::OUTLINER_OT_modifier_operation(), blender::ed::outliner::OUTLINER_OT_object_operation(), blender::ed::outliner::OUTLINER_OT_scene_operation(), PAINT_OT_weight_from_bones(), PARTICLE_OT_delete(), POSE_OT_autoside_names(), blender::ed::object::POSE_OT_constraint_add(), blender::ed::object::POSE_OT_constraint_add_with_targets(), POSE_OT_rotation_mode_set(), POSE_OT_select_grouped(), RIGIDBODY_OT_mass_calculate(), RIGIDBODY_OT_shape_change(), SCENE_OT_new(), SCENE_OT_new_sequencer(), SCENE_OT_view_layer_add(), blender::ed::vse::SEQUENCER_OT_select_grouped(), blender::ed::vse::SEQUENCER_OT_strip_modifier_copy(), UV_OT_select_similar(), VIEW3D_OT_bone_select_menu(), VIEW3D_OT_select_menu(), WM_event_add(), WM_OT_previews_clear(), and WM_OT_redraw_timer().
| wmOperatorStatus WM_menu_invoke_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| blender::wm::OpCallContext | opcontext ) |
Invoke callback, uses enum property named "type".
Definition at line 1099 of file wm_operators.cc.
References C, CLOG_ERROR, PointerRNA::data, wmOperatorType::exec, wmOperatorType::idname, uiLayout::op_enum(), OPERATOR_CANCELLED, uiLayout::operator_context_set(), OPERATOR_INTERFACE, OPERATOR_RETVAL_CHECK, wmOperatorType::prop, PROP_ENUM, wmOperator::ptr, RNA_property_identifier(), RNA_property_is_set(), RNA_property_type(), wmOperator::type, UI_ITEM_NONE, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), WM_LOG_OPERATORS, and WM_operatortype_name().
Referenced by add_driver_button_menu_invoke(), WM_event_add(), and WM_menu_invoke().
| size_t WM_operator_bl_idname | ( | char * | dst, |
| const char * | src ) |
Definition at line 154 of file wm_operators.cc.
References BLI_str_toupper_ascii(), BLI_strncpy(), BLI_strncpy_rlen(), OP_BL_SEP_LEN, OP_BL_SEP_STRING, OP_MAX_PY_IDNAME, OP_MAX_TYPENAME, OP_PY_SEP_CHAR, and OP_PY_SEP_LEN.
Referenced by PYOP_wrap_macro_define(), and WM_operatortype_find().
| bool WM_operator_bl_idname_is_valid | ( | const char * | idname | ) |
Return true when an operators name follows the SOME_OT_op naming convention.
Definition at line 174 of file wm_operators.cc.
References OP_BL_SEP_LEN, and OP_BL_SEP_STRING.
Referenced by PYOP_wrap_macro_define(), wm_operatortype_append__end(), WM_operatortype_append_macro(), and WM_operatortype_append_macro_ptr().
| bool WM_operator_check_ui_enabled | ( | const bContext * | C, |
| const char * | idname ) |
Return false, if the UI should be disabled.
Definition at line 1295 of file wm_operators.cc.
References C, CTX_data_scene(), CTX_wm_manager(), ED_undo_is_valid(), WM_JOB_TYPE_ANY, and WM_jobs_test().
Referenced by ed_undo_redo_poll(), hud_panel_operator_redo_draw(), wm_block_create_redo(), and WM_event_add().
| wmOperatorStatus WM_operator_confirm | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Invoke callback, confirm menu + exec.
Definition at line 1245 of file wm_operators.cc.
References ALERT_ICON_NONE, C, IFACE_, wmOperatorType::name, wmOperator::type, and WM_operator_confirm_ex().
Referenced by WM_event_add(), WM_OT_read_history(), WM_OT_read_userpref(), and WM_OT_save_userpref().
| wmOperatorStatus WM_operator_confirm_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| const char * | title = nullptr, | ||
| const char * | message = nullptr, | ||
| const char * | confirm_text = nullptr, | ||
| int | icon = 0, | ||
| bool | cancel_default = false ) |
Like WM_operator_confirm, but with more options and can't be used as an invoke directly.
Definition at line 1764 of file wm_operators.cc.
References C, data, IFACE_, OPERATOR_RUNNING_MODAL, wmOperator::ptr, wmOperator::type, UI_DEFAULT_TEXT_POINTS, UI_popup_block_ex(), UI_SCALE_FAC, UI_style_get(), wm_block_dialog_create(), wm_operator_ui_popup_cancel(), wm_operator_ui_popup_ok(), WM_operatortype_name(), WM_POPUP_POSITION_CENTER, WM_POPUP_POSITION_MOUSE, WM_POPUP_SIZE_LARGE, and WM_POPUP_SIZE_SMALL.
Referenced by actkeys_delete_invoke(), armature_delete_selected_invoke(), blender::ed::object::bake_simulation::bake_simulation_invoke(), blender::ed::sculpt_paint::brush_asset_delete_invoke(), clear_anim_v3d_invoke(), clear_anim_vse_invoke(), blender::ed::object::collection_exporter_remove_invoke(), delete_curve_invoke(), delete_invoke(), delete_key_v3d_invoke(), delete_key_vse_invoke(), delete_marker_invoke(), delete_metaelems_invoke(), delete_track_invoke(), ed_marker_delete_invoke(), file_delete_invoke(), file_directory_new_invoke(), graphkeys_delete_invoke(), blender::ed::object::modifier_apply_invoke(), nlaedit_make_single_user_invoke(), blender::ed::object::object_delete_invoke(), blender::ed::object::object_transform_apply_invoke(), pack_all_invoke(), blender::ed::animrig::pose_asset_delete_invoke(), preferences_extension_repo_remove_invoke(), blender::ed::sculpt_paint::dyntopo::sculpt_dynamic_topology_toggle_invoke(), text_reload_invoke(), text_unlink_invoke(), unpack_libraries_invoke(), WM_event_add(), wm_homefile_write_invoke(), WM_operator_confirm(), WM_operator_confirm_message(), WM_operator_confirm_message_ex(), WM_operator_confirm_or_exec(), wm_read_factory_settings_invoke(), wm_revert_mainfile_invoke(), and wm_userpref_read_invoke().
| wmOperatorStatus WM_operator_confirm_message | ( | bContext * | C, |
| wmOperator * | op, | ||
| const char * | message ) |
Definition at line 1239 of file wm_operators.cc.
References ALERT_ICON_NONE, C, IFACE_, and WM_operator_confirm_ex().
Referenced by WM_event_add().
| wmOperatorStatus WM_operator_confirm_message_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| const char * | title, | ||
| int | icon, | ||
| const char * | message, | ||
| blender::wm::OpCallContext | opcontext ) |
Can't be used as an invoke directly, needs message arg (can be NULL).
Definition at line 1211 of file wm_operators.cc.
References ALERT_ICON_ERROR, ALERT_ICON_INFO, ALERT_ICON_NONE, ALERT_ICON_QUESTION, ALERT_ICON_WARNING, C, IFACE_, and WM_operator_confirm_ex().
Referenced by WM_event_add().
| wmOperatorStatus WM_operator_confirm_or_exec | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 1251 of file wm_operators.cc.
References ALERT_ICON_NONE, C, wmOperatorType::exec, IFACE_, wmOperatorType::name, wmOperator::ptr, RNA_boolean_get(), wmOperator::type, and WM_operator_confirm_ex().
Referenced by WM_event_add().
|
static |
Definition at line 1985 of file wm_operators.cc.
References BKE_report(), C, CTX_data_pointer_get_type(), OPERATOR_CANCELLED, OPERATOR_FINISHED, ptr, wmOperator::reports, RPT_ERROR, and WM_operator_properties_reset().
Referenced by WM_OT_operator_defaults().
| ID * WM_operator_drop_load_path | ( | bContext * | C, |
| wmOperator * | op, | ||
| short | idcode ) |
Use for drag & drop a path or name with operators invoke() function. Returns null if no operator property is set to identify the file or ID to use.
Definition at line 1331 of file wm_operators.cc.
References BKE_idtype_idcode_to_name(), BKE_image_load_exists(), BKE_main_blendfile_path(), BKE_reportf(), BLI_assert_unreachable, BLI_path_rel(), C, CTX_data_main(), FILE_MAX, ID_IM, id_us_plus(), MAX_ID_NAME, name, wmOperator::ptr, wmOperator::reports, RNA_boolean_get(), RNA_string_get(), RNA_struct_property_is_set(), RPT_, RPT_ERROR, WM_operator_properties_id_lookup_from_name_or_session_uid(), and WM_operator_properties_id_lookup_is_set().
Referenced by camera_background_image_add_exec(), blender::ed::space_node::node_add_image_exec(), blender::ed::object::object_image_add_exec(), blender::ed::object::object_image_add_invoke(), and WM_event_add().
| wmOperatorStatus WM_operator_filesel | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Invoke callback, file selector "filepath" unset + exec.
wmOperatorType.invoke, opens file-select if path property not set, otherwise executes.
Definition at line 1263 of file wm_operators.cc.
References C, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_struct_property_is_set(), WM_event_add_fileselect(), and WM_operator_call_notest().
Referenced by blender::ed::sculpt_paint::brush_asset_load_preview_invoke(), graphkeys_sound_to_samples_invoke(), lib_id_load_custom_preview_invoke(), blender::ed::space_node::node_add_image_invoke(), sound_mixdown_invoke(), sound_open_invoke(), and WM_event_add().
| bool WM_operator_filesel_ensure_ext_imtype | ( | wmOperator * | op, |
| const ImageFormatData * | im_format ) |
Definition at line 1272 of file wm_operators.cc.
References BKE_image_path_ext_from_imformat_ensure(), FILE_MAX, wmOperator::ptr, RNA_property_string_get(), RNA_property_string_set(), and RNA_struct_find_property().
Referenced by image_save_as_check(), screenshot_check(), and WM_event_add().
| void WM_operator_last_properties_ensure | ( | wmOperatorType * | ot, |
| PointerRNA * | ptr ) |
Definition at line 1325 of file wm_operators.cc.
References G_MAIN, ot, ptr, RNA_pointer_create_discrete(), and WM_operator_last_properties_ensure_idprops().
Referenced by WM_event_add().
| IDProperty * WM_operator_last_properties_ensure_idprops | ( | wmOperatorType * | ot | ) |
Definition at line 1317 of file wm_operators.cc.
References blender::bke::idprop::create_group(), and ot.
Referenced by WM_event_add(), and WM_operator_last_properties_ensure().
| bool WM_operator_last_properties_init | ( | wmOperator * | op | ) |
Definition at line 915 of file wm_operators.cc.
References IDP_GetPropertyFromGroup(), wmOperatorType::last_properties, LISTBASE_FOREACH, wmOperator::macro, operator_last_properties_init_impl(), and wmOperator::type.
Referenced by WM_event_add(), and wm_operator_invoke().
| bool WM_operator_last_properties_store | ( | wmOperator * | op | ) |
Definition at line 930 of file wm_operators.cc.
References BLI_listbase_is_empty(), CLOG_DEBUG, blender::bke::idprop::create_group(), IDProperty::data, ListBase::first, IDPropertyData::group, wmOperatorType::idname, IDP_CopyProperty(), IDP_FreeProperty(), IDP_ReplaceInGroup(), wmOperatorType::last_properties, LISTBASE_FOREACH, wmOperator::macro, IDProperty::name, wmOperator::properties, STRNCPY(), wmOperator::type, and WM_LOG_OPERATORS.
Referenced by WM_event_add(), wm_handler_fileselect_do(), and wm_operator_finished().
| wmOperator * WM_operator_last_redo | ( | const bContext * | C | ) |
Definition at line 1303 of file wm_operators.cc.
References C, CTX_wm_manager(), LISTBASE_FOREACH_BACKWARD, OPTYPE_REGISTER, OPTYPE_UNDO, and wmWindowManager::runtime.
Referenced by ED_gizmo_poll_or_unlink_delayed_from_operator(), ed_undo_redo_exec(), ed_undo_redo_poll(), file_browse_exec(), gizmo_bisect_exec(), gizmo_mesh_bisect_draw_prepare(), gizmo_mesh_bisect_setup(), gizmo_mesh_placement_draw_prepare(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_setup(), gizmo_placement_exec(), gizmo_spin_exec(), gizmo_tweak_start_and_finish(), hud_panel_operator_redo_draw(), hud_panel_operator_redo_draw_header(), last_redo_poll(), redo_last_invoke(), screen_ctx_active_operator(), uiTemplateOperatorRedoProperties(), wm_block_create_redo(), wm_block_redo_cancel_cb(), wm_block_redo_cb(), WM_event_add(), and wm_operator_finished().
| void WM_operator_properties_alloc | ( | PointerRNA ** | ptr, |
| IDProperty ** | properties, | ||
| const char * | opstring ) |
Similar to the function above except its uses ID properties used for key-maps and macros.
Definition at line 757 of file wm_operators.cc.
References blender::bke::idprop::create_group(), IDProperty::data, ptr, and WM_operator_properties_create().
Referenced by uiLayout::op_menu_enum(), save_file_overwrite_confirm(), WM_dropbox_add(), wm_dropbox_item_update_ot(), WM_event_add(), wm_keymap_item_properties_set(), WM_operatortype_macro_define(), and wm_xr_actionmap_item_properties_set().
| void WM_operator_properties_clear | ( | PointerRNA * | ptr | ) |
Definition at line 850 of file wm_operators.cc.
References IDP_ClearProperty(), and ptr.
Referenced by WM_event_add(), and wm_macro_modal().
| void WM_operator_properties_create | ( | PointerRNA * | ptr, |
| const char * | opstring ) |
Definition at line 743 of file wm_operators.cc.
References G_MAIN, ot, ptr, RNA_pointer_create_discrete(), WM_operator_properties_create_ptr(), and WM_operatortype_find().
Referenced by doc_view_manual_ui_context_exec(), file_smoothscroll_invoke(), blender::ed::space_node::node_render_changed_exec(), WM_event_add(), wm_keymap_item_copy(), WM_operator_properties_alloc(), and wm_xr_actionmap_item_copy().
| void WM_operator_properties_create_ptr | ( | PointerRNA * | ptr, |
| wmOperatorType * | ot ) |
Definition at line 737 of file wm_operators.cc.
References G_MAIN, ot, ptr, and RNA_pointer_create_discrete().
Referenced by bone_mouse_select_menu(), constraint_reorder(), blender::ed::asset::shelf::create_asset_operator_params(), file_browse_invoke(), file_directory_enter_handle(), file_external_operation_exec(), ghost_event_proc(), blender::ed::outliner::id_remap_fn(), image_file_browse_invoke(), blender::ed::outliner::lib_relocate(), blender::ed::space_node::link_drag_search_exec_fn(), menu_item_enum_opname_menu_active(), blender::seq::modifier_reorder(), modifier_reorder(), blender::ed::vse::move_strips(), blender::ed::space_node::node_add_group_asset_invoke(), blender::ed::space_node::node_swap_group_asset_invoke(), object_mouse_select_menu(), uiLayout::op_enum(), uiLayout::op_menu_enum(), blender::ed::outliner::outliner_id_relocate_invoke(), blender::ed::outliner::outliner_item_drag_drop_invoke(), preferences_extension_url_drop_invoke(), pyop_call(), shaderfx_reorder(), blender::ed::transform::special_aftertrans_update__node(), toolsystem_ref_set_by_brush_type(), blender::ed::transform::transform_from_gizmo_invoke(), blender::ed::space_node::tree_path_handle_func(), ui_but_anim_decorate_cb(), ui_but_extra_operator_icon_add_ptr(), UI_but_operator_ptr_ensure(), ui_handle_menu_letter_press_search(), ui_pie_menu_level_invoke(), ui_tooltip_data_from_tool(), view3d_interactive_add_modal(), wm_drop_import_file_exec(), wm_dropbox_item_update_ot(), WM_event_add(), WM_gizmo_operator_set(), wm_keymap_item_properties_update_ot(), WM_menu_name_call(), WM_operator_properties_create(), WM_operator_pystring_ex(), WM_operator_type_set(), WM_operator_ui_poll(), WM_operatortype_props_advanced_end(), wm_recover_auto_save_exec(), wm_recover_last_session_impl(), wm_test_autorun_revert_action_exec(), WM_toolsystem_ref_set_by_id_ex(), and WM_xr_actionmap_item_properties_update_ot().
| bool WM_operator_properties_default | ( | PointerRNA * | ptr, |
| bool | do_update ) |
Set all props to their default.
| do_update | Only update un-initialized props. |
Definition at line 806 of file wm_operators.cc.
References PROP_POINTER, ptr, RNA_property_is_set(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_reset(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, and WM_operator_properties_default().
Referenced by WM_event_add(), wm_keymap_item_find(), wm_keymap_item_find_in_keymap(), WM_operator_properties_default(), and WM_operator_type_set().
| void WM_operator_properties_free | ( | PointerRNA * | ptr | ) |
Definition at line 859 of file wm_operators.cc.
References IDP_FreeProperty(), and ptr.
Referenced by bone_mouse_select_menu(), constraint_reorder(), doc_view_manual_ui_context_exec(), file_browse_invoke(), file_directory_enter_handle(), file_external_operation_exec(), file_smoothscroll_invoke(), ghost_event_proc(), blender::ed::outliner::id_remap_fn(), image_file_browse_invoke(), blender::ed::outliner::lib_relocate(), blender::ed::space_node::link_drag_search_exec_fn(), blender::seq::modifier_reorder(), modifier_reorder(), blender::ed::vse::move_strips(), blender::ed::space_node::node_add_group_asset_invoke(), blender::ed::space_node::node_render_changed_exec(), blender::ed::space_node::node_swap_group_asset_invoke(), object_mouse_select_menu(), blender::ed::asset::shelf::AssetViewItem::on_activate(), blender::ed::asset::shelf::AssetDragController::on_drag_start(), blender::ed::outliner::outliner_id_relocate_invoke(), blender::ed::outliner::outliner_item_drag_drop_invoke(), preferences_extension_url_drop_invoke(), pyop_as_string(), pyop_call(), shaderfx_reorder(), blender::ed::transform::special_aftertrans_update__node(), toolsystem_ref_set_by_brush_type(), blender::ed::transform::transform_from_gizmo_invoke(), blender::ed::space_node::tree_path_handle_func(), ui_apply_but_funcs_after(), ui_but_anim_decorate_cb(), ui_but_extra_operator_icon_free(), ui_but_free(), ui_tooltip_data_from_tool(), view3d_interactive_add_modal(), wm_drop_import_file_exec(), wm_drop_item_free_data(), WM_event_add(), WM_gizmo_free(), WM_gizmo_operator_set(), wm_handler_operator_call(), wm_keymap_item_free_data(), WM_keymap_item_properties_reset(), WM_keymap_remove_item(), WM_menu_name_call(), WM_operator_pystring_ex(), WM_operator_type_set(), wm_operatortype_free_macro(), wm_test_autorun_revert_action_set(), WM_toolsystem_ref_set_by_id_ex(), wm_xr_actionmap_item_properties_free(), and MenuSearch_Item::OperatorData::~OperatorData().
| void WM_operator_properties_reset | ( | wmOperator * | op | ) |
Remove all props without PROP_SKIP_SAVE or PROP_SKIP_PRESET.
Definition at line 833 of file wm_operators.cc.
References PointerRNA::data, PROP_SKIP_PRESET, PROP_SKIP_SAVE, wmOperator::ptr, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_flag(), RNA_property_identifier(), RNA_struct_iterator_property(), RNA_struct_system_idprops_unset(), wmOperatorType::srna, and wmOperator::type.
Referenced by WM_event_add(), and wm_operator_defaults_exec().
| void WM_operator_properties_sanitize | ( | PointerRNA * | ptr, |
| bool | no_context ) |
Make props context sensitive or not.
Definition at line 777 of file wm_operators.cc.
References PROP_ENUM, PROP_ENUM_NO_CONTEXT, PROP_POINTER, ptr, RNA_def_property_clear_flag(), RNA_def_property_flag(), RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, RNA_struct_is_a(), and WM_operator_properties_sanitize().
Referenced by menu_item_enum_opname_menu_active(), uiLayout::op_enum(), pyop_call(), UI_but_rna_enum_item_get(), ui_pie_menu_level_invoke(), UI_tooltip_uibut_python_add(), uiTemplateKeymapItemProperties(), WM_dropbox_add(), wm_dropbox_item_update_ot(), WM_event_add(), wm_keymap_item_properties_set(), wm_keymap_item_properties_update_ot(), wm_operator_create(), WM_operator_properties_sanitize(), WM_operatortype_macro_define(), wm_xr_actionmap_item_properties_set(), and WM_xr_actionmap_item_properties_update_ot().
| wmOperatorStatus 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 ) |
Definition at line 1887 of file wm_operators.cc.
References ALERT_ICON_NONE, C, data, IFACE_, OPERATOR_RUNNING_MODAL, wmOperator::ptr, wmOperator::type, UI_DEFAULT_TEXT_POINTS, UI_popup_block_ex(), UI_SCALE_FAC, UI_style_get(), wm_block_dialog_create(), wm_operator_ui_popup_cancel(), wm_operator_ui_popup_ok(), WM_operatortype_name(), WM_POPUP_POSITION_CENTER, WM_POPUP_POSITION_MOUSE, and WM_POPUP_SIZE_SMALL.
Referenced by blender::ed::greasepencil::bake_grease_pencil_animation_invoke(), blender::ed::sculpt_paint::brush_asset_edit_metadata_invoke(), blender::ed::sculpt_paint::brush_asset_save_as_invoke(), blender::ed::io::filesel_drop_import_invoke(), blender::ed::geometry::geometry_attribute_convert_invoke(), blender::ed::geometry::geometry_color_attribute_convert_invoke(), image_new_invoke(), image_scale_invoke(), blender::ed::object::move_to_collection_invoke(), move_to_new_collection_invoke(), blender::ed::object::object_calculate_paths_invoke(), blender::ed::outliner::outliner_id_remap_invoke(), blender::ed::outliner::outliner_orphans_purge_invoke(), blender::ed::animrig::pose_asset_create_invoke(), pose_calculate_paths_invoke(), blender::ed::vse::sequencer_enable_proxies_invoke(), text_jump_invoke(), texture_paint_add_texture_paint_slot_invoke(), tile_add_invoke(), tile_fill_invoke(), wm_debug_menu_invoke(), WM_event_add(), wm_operator_props_popup_ex(), and wm_stereo3d_set_invoke().
| wmOperatorStatus WM_operator_props_popup | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Definition at line 1882 of file wm_operators.cc.
References C, and wm_operator_props_popup_ex().
Referenced by ANIM_OT_channels_group(), CURVE_OT_radius_set(), CURVE_OT_spline_weight_set(), blender::ed::geometry::geometry_randomization_invoke(), blender::ed::mesh::set_attribute::mesh_set_attribute_invoke(), PARTICLE_OT_rekey(), blender::ed::vse::sequencer_retiming_segment_speed_set_invoke(), blender::ed::curves::set_attribute_invoke(), blender::ed::pointcloud::set_attribute_invoke(), and WM_event_add().
| wmOperatorStatus WM_operator_props_popup_call | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Same as WM_operator_props_popup but call the operator first, This way - the button values correspond to the result of the operator. Without this, first access to a button will make the result jump, see #32452.
Definition at line 1875 of file wm_operators.cc.
References C, and wm_operator_props_popup_ex().
Referenced by UV_OT_pack_islands(), and WM_event_add().
| wmOperatorStatus WM_operator_props_popup_confirm | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event ) |
Invoke callback, exec + redo popup.
Same as WM_operator_props_popup but don't use operator redo. just wraps WM_operator_props_dialog_popup.
Definition at line 1868 of file wm_operators.cc.
References C, and wm_operator_props_popup_ex().
Referenced by WM_event_add().
| wmOperatorStatus WM_operator_props_popup_confirm_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| const wmEvent * | event, | ||
| std::optional< std::string > | title, | ||
| std::optional< std::string > | confirm_text, | ||
| const bool | cancel_default, | ||
| std::optional< std::string > | message ) |
Definition at line 1856 of file wm_operators.cc.
References C, and wm_operator_props_popup_ex().
Referenced by ed_marker_rename_invoke(), blender::ed::geometry::geometry_attribute_add_invoke(), blender::ed::geometry::geometry_color_attribute_add_invoke(), blender::ed::greasepencil::grease_pencil_clean_loose_invoke(), blender::ed::greasepencil::grease_pencil_layer_add_invoke(), blender::ed::greasepencil::grease_pencil_move_to_layer_invoke(), blender::ed::object::make_single_user_invoke(), paint_mask_extract_invoke(), preferences_extension_repo_add_invoke(), blender::ed::object::quadriflow_remesh_invoke(), blender::ed::vse::sequencer_separate_images_invoke(), smart_project_invoke(), uv_pack_islands_invoke(), wm_clear_recent_files_invoke(), WM_event_add(), and wm_set_working_color_space_invoke().
|
static |
For use by WM_operator_props_popup_call, WM_operator_props_popup only.
Definition at line 1812 of file wm_operators.cc.
References BKE_reportf(), C, wmOperatorType::flag, wmOperatorType::idname, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperator::reports, RPT_ERROR, wmOperator::type, U, UI_popup_block_ex(), USER_GLOBALUNDO, wm_block_create_redo(), wm_block_redo_cancel_cb(), wm_block_redo_cb(), and WM_operator_props_dialog_popup().
Referenced by WM_operator_props_popup(), WM_operator_props_popup_call(), WM_operator_props_popup_confirm(), and WM_operator_props_popup_confirm_ex().
| size_t WM_operator_py_idname | ( | char * | dst, |
| const char * | src ) |
Definition at line 133 of file wm_operators.cc.
References BLI_str_tolower_ascii(), BLI_strncpy_rlen(), OP_BL_SEP_LEN, OP_BL_SEP_STRING, OP_MAX_TYPENAME, OP_PY_SEP_CHAR, and OP_PY_SEP_LEN.
Referenced by menu_items_from_all_operators(), UI_but_online_manual_id(), WM_operator_pystring_ex(), and WM_operatortype_idname_visit_for_search().
| bool WM_operator_py_idname_ok_or_report | ( | ReportList * | reports, |
| const char * | classname, | ||
| const char * | idname ) |
Sanity check to ensure WM_operator_bl_idname won't fail.
Definition at line 198 of file wm_operators.cc.
References BKE_reportf(), dot(), i, OP_MAX_PY_IDNAME, and RPT_ERROR.
| std::string WM_operator_pystring | ( | bContext * | C, |
| wmOperator * | op, | ||
| const bool | all_args, | ||
| const bool | macro_args ) |
Definition at line 325 of file wm_operators.cc.
References C, wmOperator::ptr, wmOperator::type, and WM_operator_pystring_ex().
Referenced by wm_operator_finished(), wm_operator_invoke(), and wm_operator_reports().
| std::string WM_operator_pystring_abbreviate | ( | std::string | str, |
| int | str_len_max ) |
Definition at line 333 of file wm_operators.cc.
References str.
Referenced by ui_tooltip_text_python_from_op().
| std::string WM_operator_pystring_ex | ( | bContext * | C, |
| wmOperator * | op, | ||
| bool | all_args, | ||
| bool | macro_args, | ||
| wmOperatorType * | ot, | ||
| PointerRNA * | opptr ) |
Operator as a Python command.
Return a string representation of the operator, with the arguments that it runs so Python can run it again.
When calling from an existing wmOperator, better to use simple version: WM_operator_pystring(C, op);
Definition at line 255 of file wm_operators.cc.
References C, ListBase::first, wmOperatorType::idname, wmOperator::macro, wmOperator::next, OP_MAX_TYPENAME, ot, wmOperator::ptr, RNA_pointer_as_string_id(), RNA_pointer_as_string_keywords(), wmOperator::type, WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operator_py_idname().
Referenced by copy_python_command_button_exec(), pyop_as_string(), ui_but_copy_operator(), ui_layout_introspect_button(), ui_tooltip_text_python_from_op(), and WM_operator_pystring().
| wmOperatorStatus WM_operator_redo_popup | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 1917 of file wm_operators.cc.
References BKE_reportf(), C, CTX_wm_reports(), wmOperatorType::flag, wmOperatorType::idname, OPERATOR_CANCELLED, OPTYPE_REGISTER, wmOperatorType::poll, RPT_ERROR, wmOperator::type, UI_popup_block_invoke(), and wm_block_create_redo().
Referenced by redo_last_invoke(), and WM_event_add().
| int WM_operator_smooth_viewtx_get | ( | const wmOperator * | op | ) |
Definition at line 1094 of file wm_operators.cc.
References wmOperator::flag, OP_IS_INVOKE, U, and USER_REDUCE_MOTION.
Referenced by actkeys_view_frame_exec(), graphkeys_channel_view_pick_invoke(), graphkeys_view_frame_exec(), graphkeys_view_selected_channels_exec(), graphkeys_view_selected_exec(), graphkeys_viewall_exec(), localview_exec(), localview_remove_from_exec(), nlaedit_viewframe_exec(), blender::ed::space_node::node_select_same_type_step_exec(), blender::ed::space_node::node_view_all_exec(), blender::ed::space_node::node_view_selected_exec(), blender::ed::vse::sequencer_view_all_exec(), blender::ed::vse::sequencer_view_frame_exec(), blender::ed::vse::sequencer_view_selected_exec(), view3d_all_exec(), view3d_setobjectascamera_exec(), view3d_zoom_border_exec(), view_axis_exec(), view_borderzoom_exec(), view_camera_exec(), view_curve_in_graph_editor_exec(), blender::ed::vse::view_frame_preview_scope(), viewcenter_cursor_exec(), viewcenter_pick_invoke(), vieworbit_exec(), viewroll_exec(), viewselected_exec(), and WM_event_add().
Definition at line 1701 of file wm_operators.cc.
References blender::ui::block_layout(), C, data, blender::ui::Emboss, blender::ui::Panel, UI_block_begin(), UI_block_bounds_set_popup(), UI_block_flag_disable(), UI_block_flag_enable(), UI_block_func_set(), UI_BLOCK_KEEP_OPEN, UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_THEME_STYLE_REGULAR, UI_block_theme_style_set(), UI_BUT_LABEL_ALIGN_COLUMN, UI_popup_dummy_panel_set(), UI_SCALE_FAC, UI_style_get_dpi(), uiTemplateOperatorPropertyButs(), and blender::ui::Vertical.
Referenced by WM_operator_ui_popup().
| wmOperatorStatus WM_operator_ui_popup | ( | bContext * | C, |
| wmOperator * | op, | ||
| int | width ) |
Definition at line 1797 of file wm_operators.cc.
References C, data, OPERATOR_RUNNING_MODAL, UI_popup_block_ex(), UI_SCALE_FAC, wm_operator_ui_create(), and wm_operator_ui_popup_cancel().
Referenced by WM_event_add().
|
static |
Definition at line 1734 of file wm_operators.cc.
References C, wmOperatorType::cancel, data, wmOperator::type, and WM_operator_free().
Referenced by dialog_cancel_cb(), WM_operator_confirm_ex(), WM_operator_props_dialog_popup(), and WM_operator_ui_popup().
|
static |
Definition at line 1752 of file wm_operators.cc.
References C, data, and WM_operator_call_ex().
Referenced by WM_operator_confirm_ex(), and WM_operator_props_dialog_popup().
| void WM_operator_view3d_unit_defaults | ( | bContext * | C, |
| wmOperator * | op ) |
Definition at line 1065 of file wm_operators.cc.
References BLI_assert, C, CTX_data_scene(), CTX_wm_view3d(), ED_scene_grid_scale(), ED_view3d_grid_scale(), wmOperator::flag, OP_IS_INVOKE, PROP_DISTANCE, PROP_FLOAT, wmOperator::ptr, RNA_property_array_check(), RNA_property_float_get_default(), RNA_property_float_set(), RNA_property_is_set_ex(), RNA_property_subtype(), RNA_property_type(), RNA_STRUCT_BEGIN, and RNA_STRUCT_END.
Referenced by add_primitive_circle_exec(), add_primitive_cone_exec(), add_primitive_cube_exec(), add_primitive_cylinder_exec(), add_primitive_grid_exec(), add_primitive_icosphere_exec(), add_primitive_monkey_exec(), add_primitive_plane_exec(), add_primitive_uvsphere_exec(), curvesurf_prim_add(), blender::ed::object::effector_add_exec(), blender::ed::object::lattice_add_to_selected_exec(), blender::ed::object::lightprobe_add_exec(), blender::ed::object::object_add_exec(), blender::ed::object::object_add_text_exec(), blender::ed::object::object_armature_add_exec(), blender::ed::object::object_empty_add_exec(), blender::ed::object::object_grease_pencil_add_exec(), blender::ed::object::object_light_add_exec(), blender::ed::object::object_metaball_add_exec(), and WM_event_add().
| bool WM_operator_winactive | ( | bContext * | C | ) |
Callback for wmOperatorType.poll.
Definition at line 1287 of file wm_operators.cc.
References C, and CTX_wm_window().
Referenced by redraw_timer_poll(), SCENE_OT_new(), SCREEN_OT_new(), SCREEN_OT_spacedata_cleanup(), screenshot_poll(), blender::ed::asset::screenshot_preview_poll(), WM_event_add(), wm_link_append_poll(), WM_OT_call_menu(), WM_OT_call_menu_pie(), WM_OT_call_panel(), WM_OT_debug_menu(), WM_OT_search_menu(), WM_OT_search_operator(), WM_OT_search_single_menu(), WM_OT_splash(), WM_OT_splash_about(), WM_OT_stereo3d_set(), WM_OT_window_close(), and WM_OT_window_fullscreen_toggle().
|
static |
This poll functions is needed in place of WM_operator_winactive while it crashes on full screen.
Definition at line 2357 of file wm_operators.cc.
References C, CTX_wm_window(), G, SCREENNORMAL, bScreen::state, and WM_window_get_active_screen().
Referenced by WM_OT_window_new_main().
|
static |
Definition at line 2375 of file wm_operators.cc.
References C, CTX_wm_window(), G, SCREENFULL, bScreen::state, and WM_window_get_active_screen().
Referenced by WM_OT_window_new().
| void wm_operatortypes_register | ( | ) |
Definition at line 4211 of file wm_operators.cc.
References GIZMOGROUP_OT_gizmo_select(), GIZMOGROUP_OT_gizmo_tweak(), WM_operatortype_append(), WM_OT_append(), WM_OT_call_asset_shelf_popover(), WM_OT_call_menu(), WM_OT_call_menu_pie(), WM_OT_call_panel(), WM_OT_clear_recent_files(), WM_OT_debug_menu(), WM_OT_doc_view_manual_ui_context(), WM_OT_id_linked_relocate(), WM_OT_lib_reload(), WM_OT_lib_relocate(), WM_OT_link(), WM_OT_memory_statistics(), WM_OT_open_mainfile(), WM_OT_operator_defaults(), WM_OT_previews_clear(), WM_OT_previews_ensure(), WM_OT_quit_blender(), WM_OT_radial_control(), WM_OT_read_factory_settings(), WM_OT_read_factory_userpref(), WM_OT_read_history(), WM_OT_read_homefile(), WM_OT_read_userpref(), WM_OT_recover_auto_save(), WM_OT_recover_last_session(), WM_OT_redraw_timer(), WM_OT_revert_mainfile(), WM_OT_save_as_mainfile(), WM_OT_save_homefile(), WM_OT_save_mainfile(), WM_OT_save_userpref(), WM_OT_search_menu(), WM_OT_search_operator(), WM_OT_search_single_menu(), WM_OT_set_working_color_space(), WM_OT_splash(), WM_OT_splash_about(), WM_OT_stereo3d_set(), WM_OT_window_close(), WM_OT_window_fullscreen_toggle(), WM_OT_window_new(), WM_OT_window_new_main(), and wm_xr_operatortypes_register().
Referenced by WM_init().
|
static |
Definition at line 2327 of file wm_operators.cc.
References asset_shelf_popover_invoke(), OPTYPE_INTERNAL, ot, and RNA_def_string().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2209 of file wm_operators.cc.
References BKE_ST_MAXNAME, OPTYPE_INTERNAL, ot, PROP_STRING_SEARCH_SORT, PROP_STRING_SEARCH_SUGGESTION, RNA_def_property_string_search_func_runtime(), RNA_def_string(), wm_call_menu_exec(), wm_call_menu_get_name(), WM_menutype_idname_visit_for_search(), and WM_operator_winactive().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2247 of file wm_operators.cc.
References BKE_ST_MAXNAME, OPTYPE_INTERNAL, ot, PROP_STRING_SEARCH_SORT, PROP_STRING_SEARCH_SUGGESTION, RNA_def_property_string_search_func_runtime(), RNA_def_string(), wm_call_menu_get_name(), wm_call_pie_menu_exec(), wm_call_pie_menu_invoke(), WM_menutype_idname_visit_for_search(), and WM_operator_winactive().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2288 of file wm_operators.cc.
References BKE_ST_MAXNAME, OPTYPE_INTERNAL, ot, PROP_SKIP_SAVE, PROP_STRING_SEARCH_SORT, PROP_STRING_SEARCH_SUGGESTION, RNA_def_boolean(), RNA_def_property_flag(), RNA_def_property_string_search_func_runtime(), RNA_def_string(), wm_call_panel_exec(), wm_call_panel_get_name(), WM_operator_winactive(), and WM_paneltype_idname_visit_for_search().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 1965 of file wm_operators.cc.
References ot, RNA_def_int(), wm_debug_menu_exec(), wm_debug_menu_invoke(), and WM_operator_winactive().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 4135 of file wm_operators.cc.
References doc_view_manual_ui_context_exec(), ED_operator_regionactive(), and ot.
Referenced by wm_operatortypes_register().
|
static |
Definition at line 3861 of file wm_operators.cc.
References memory_statistics_exec(), and ot.
Referenced by wm_operatortypes_register().
|
static |
Definition at line 1999 of file wm_operators.cc.
References OPTYPE_INTERNAL, ot, and wm_operator_defaults_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 4090 of file wm_operators.cc.
References ot, PREVIEW_FILTER_ALL, preview_id_type_items, previews_clear_exec(), RNA_def_enum_flag(), and WM_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 3955 of file wm_operators.cc.
References ot, and previews_ensure_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2453 of file wm_operators.cc.
References ot, wm_exit_blender_exec(), and wm_exit_blender_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 3528 of file wm_operators.cc.
References OPTYPE_BLOCKING, OPTYPE_REGISTER, ot, PROP_SKIP_SAVE, radial_control_cancel(), radial_control_invoke(), radial_control_modal(), RNA_def_boolean(), RNA_def_property_flag(), and RNA_def_string().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 3823 of file wm_operators.cc.
References eRTDrawRegion, FLT_MAX, ot, redraw_timer_exec(), redraw_timer_poll(), redraw_timer_type_items, RNA_def_enum(), RNA_def_float(), RNA_def_int(), and WM_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2151 of file wm_operators.cc.
References ot, WM_operator_winactive(), wm_search_menu_exec(), and wm_search_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2162 of file wm_operators.cc.
References ot, WM_operator_winactive(), wm_search_menu_exec(), and wm_search_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2173 of file wm_operators.cc.
References ot, RNA_def_string(), WM_operator_winactive(), wm_search_menu_exec(), and wm_search_menu_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 4155 of file wm_operators.cc.
References ot, PROP_SKIP_SAVE, RNA_def_boolean(), RNA_def_enum(), RNA_def_property_flag(), rna_enum_stereo3d_anaglyph_type_items, rna_enum_stereo3d_display_items, rna_enum_stereo3d_interlace_type_items, S3D_ANAGLYPH_REDCYAN, S3D_DISPLAY_ANAGLYPH, S3D_INTERLACE_ROW, WM_operator_winactive(), wm_stereo3d_set_cancel(), wm_stereo3d_set_check(), wm_stereo3d_set_draw(), wm_stereo3d_set_exec(), and wm_stereo3d_set_invoke().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2394 of file wm_operators.cc.
References ot, WM_operator_winactive(), and wm_window_close_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2424 of file wm_operators.cc.
References ot, WM_operator_winactive(), and wm_window_fullscreen_toggle_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2404 of file wm_operators.cc.
References ot, wm_operator_winactive_not_full(), and wm_window_new_exec().
Referenced by wm_operatortypes_register().
|
static |
Definition at line 2414 of file wm_operators.cc.
References ot, wm_operator_winactive_normal(), and wm_window_new_main_exec().
Referenced by wm_operatortypes_register().
| wmPaintCursor * WM_paint_cursor_activate | ( | short | space_type, |
| short | region_type, | ||
| bool(* | poll )(bContext *C), | ||
| wmPaintCursorDraw | draw, | ||
| void * | customdata ) |
Definition at line 2501 of file wm_operators.cc.
References BLI_addtail(), C, wmPaintCursor::customdata, wmPaintCursor::draw, G_MAIN, MEM_callocN(), wmPaintCursor::poll, wmPaintCursor::region_type, wmWindowManager::runtime, and wmPaintCursor::space_type.
Referenced by annotation_draw_toggle_eraser_cursor(), annotation_draw_toggle_stabilizer_cursor(), ED_paint_cursor_start(), blender::ed::transform::initTransform(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_invoke(), blender::ed::sculpt_paint::paint_stroke_modal(), pyrna_callback_classmethod_add(), radial_control_invoke(), blender::ed::sculpt_paint::image::ops::paint::texture_paint_init(), toggle_particle_cursor(), and v3d_cursor_snap_activate().
| bool WM_paint_cursor_end | ( | wmPaintCursor * | handle | ) |
Definition at line 2523 of file wm_operators.cc.
References BLI_remlink(), G_MAIN, LISTBASE_FOREACH, MEM_freeN(), and wmWindowManager::runtime.
Referenced by annotation_draw_toggle_eraser_cursor(), annotation_draw_toggle_stabilizer_cursor(), blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_modal(), blender::ed::sculpt_paint::paint_stroke_free(), blender::ed::sculpt_paint::paint_stroke_modal(), blender::ed::transform::postTrans(), pyrna_callback_classmethod_remove(), radial_control_cancel(), toggle_paint_cursor(), toggle_particle_cursor(), v3d_cursor_snap_free(), and blender::ed::sculpt_paint::image::ops::paint::PaintOperation::~PaintOperation().
| void WM_paint_cursor_remove_by_type | ( | wmWindowManager * | wm, |
| void * | draw_fn, | ||
| void(* | free )(void *) ) |
Definition at line 2536 of file wm_operators.cc.
References BLI_remlink(), free(), LISTBASE_FOREACH_MUTABLE, MEM_freeN(), and wmWindowManager::runtime.
Referenced by BPY_callback_wm_free().
| std::optional< std::string > WM_prop_pystring_assign | ( | bContext * | C, |
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop, | ||
| int | index ) |
Definition at line 713 of file wm_operators.cc.
References C, ptr, ret, rhs, RNA_path_full_property_py(), RNA_property_as_string(), and wm_prop_pystring_from_context().
Referenced by ui_apply_but_autokey().
|
static |
Definition at line 700 of file wm_operators.cc.
References C, ptr, and WM_context_path_resolve_property_full().
Referenced by WM_prop_pystring_assign().
|
static |
Definition at line 2086 of file wm_operators.cc.
References OPERATOR_FINISHED.
Referenced by WM_OT_search_menu(), WM_OT_search_operator(), and WM_OT_search_single_menu().
|
static |
Definition at line 2091 of file wm_operators.cc.
References C, CTX_data_edit_object(), CTX_wm_area(), data, EVT_SPACEKEY, g_search_text, wmOperatorType::idname, OB_FONT, OPERATOR_INTERFACE, OPERATOR_PASS_THROUGH, wmOperator::ptr, RNA_string_get(), SEARCH_TYPE_MENU, SEARCH_TYPE_OPERATOR, SEARCH_TYPE_SINGLE_MENU, SPACE_CONSOLE, SPACE_TEXT, ScrArea::spacetype, STREQ, STRNCPY(), Object::type, wmEvent::type, wmOperator::type, UI_popup_block_invoke_ex(), UI_searchbox_size_x(), UI_searchbox_size_y(), and wm_block_search_menu().
Referenced by WM_OT_search_menu(), WM_OT_search_operator(), and WM_OT_search_single_menu().
| void wm_window_keymap | ( | wmKeyConfig * | keyconf | ) |
Default key-map for windows and screens, only call once per WM.
Definition at line 4484 of file wm_operators.cc.
References gesture_box_modal_keymap(), gesture_circle_modal_keymap(), gesture_lasso_modal_keymap(), gesture_polyline_modal_keymap(), gesture_straightline_modal_keymap(), gesture_zoom_border_modal_keymap(), RGN_TYPE_WINDOW, SPACE_EMPTY, wm_gizmos_keymap(), WM_keymap_ensure(), and WM_keymap_fix_linking().
Referenced by WM_keyconfig_init().
|
static |
Definition at line 2028 of file wm_operators.cc.
Referenced by wm_block_search_menu(), and wm_search_menu_invoke().
|
static |
Definition at line 3987 of file wm_operators.cc.
Referenced by WM_OT_previews_clear().
|
static |
Definition at line 3657 of file wm_operators.cc.
Referenced by redraw_timer_exec(), and WM_OT_redraw_timer().