65 {0,
nullptr, 0,
nullptr,
nullptr},
123static void rna_Operator_report(
wmOperator *op,
int type,
const char *msg)
147 if (win ==
nullptr) {
171 if (gzgt ==
nullptr) {
182static void rna_gizmo_group_type_ensure(
ReportList *reports,
const char *idname)
184 wmGizmoGroupType *gzgt = wm_gizmogrouptype_find_for_add_remove(reports, idname);
185 if (gzgt !=
nullptr) {
190static void rna_gizmo_group_type_unlink_delayed(
ReportList *reports,
const char *idname)
192 wmGizmoGroupType *gzgt = wm_gizmogrouptype_find_for_add_remove(reports, idname);
193 if (gzgt !=
nullptr) {
199static struct wmStaticProgress {
203} wm_progress_state = {0, 0,
false};
209 wm_progress_state.min =
min;
210 wm_progress_state.max =
max;
211 wm_progress_state.is_valid =
true;
214 wm_progress_state.is_valid =
false;
220 if (wm_progress_state.is_valid) {
224 const float progress_factor = (value - wm_progress_state.min) /
225 (wm_progress_state.max - wm_progress_state.min);
233 if (wm_progress_state.is_valid) {
237 wm_progress_state.is_valid =
false;
243static int rna_Operator_confirm(
bContext *
C,
248 const char *confirm_text,
250 const char *text_ctxt,
254 title, text_ctxt,
nullptr,
nullptr,
translate);
256 message, text_ctxt,
nullptr,
nullptr,
translate);
258 confirm_text, text_ctxt,
nullptr,
nullptr,
translate);
261 title_str ? title_str->c_str() :
nullptr,
262 message_str ? message_str->c_str() :
nullptr,
263 confirm_text_str ? confirm_text_str->c_str() :
nullptr,
267static void rna_WM_try_activate_rna_button(blender::wmWindowManager * ,
271 const char *propname,
273 bool warp_cursor_at_button,
280 RNA_warning_bare(
"WindowManager.try_activate_rna_button(): property not found: %s.%s",
292 (*r_xy)[0] = (*xy)[0];
293 (*r_xy)[1] = (*xy)[1];
302static int rna_Operator_props_dialog_popup(
bContext *
C,
306 const char *confirm_text,
307 const bool cancel_default,
308 const char *text_ctxt,
312 title, text_ctxt,
nullptr,
nullptr,
translate);
314 confirm_text, text_ctxt,
nullptr,
nullptr,
translate);
319 title_str ? std::make_optional<std::string>(*title_str) : std::nullopt,
320 confirm_text_str ? std::make_optional<std::string>(*confirm_text_str) : std::nullopt,
324static int16_t keymap_item_modifier_flag_from_args(
325 bool any,
int shift,
int ctrl,
int alt,
int oskey,
int hyper)
332# define MOD_VAR_ASSIGN_FLAG(mod_var, mod_flag) \
333 if (mod_var == KM_MOD_HELD) { \
334 modifier |= mod_flag; \
336 else if (mod_var == KM_ANY) { \
337 modifier |= KMI_PARAMS_MOD_TO_ANY(mod_flag); \
341 MOD_VAR_ASSIGN_FLAG(shift,
KM_SHIFT);
342 MOD_VAR_ASSIGN_FLAG(ctrl,
KM_CTRL);
343 MOD_VAR_ASSIGN_FLAG(alt,
KM_ALT);
344 MOD_VAR_ASSIGN_FLAG(oskey,
KM_OSKEY);
345 MOD_VAR_ASSIGN_FLAG(hyper,
KM_HYPER);
347# undef MOD_VAR_ASSIGN_FLAG
382 params.value = value;
383 params.modifier = keymap_item_modifier_flag_from_args(
any, shift, ctrl, alt, oskey, hyper);
384 params.keymodifier = keymodifier;
385 params.direction = direction;
412 if ((km->flag &
KEYMAP_MODAL) == (kmi_src->idname[0] !=
'\0')) {
428 const char *propvalue_str,
452 params.value = value;
453 params.modifier = keymap_item_modifier_flag_from_args(
any, shift, ctrl, alt, oskey, hyper);
454 params.keymodifier = keymodifier;
455 params.direction = direction;
458 if (!km->modal_items) {
484 reports,
RPT_ERROR,
"KeyMapItem '%s' not found in KeyMap '%s'", kmi->idname, km->idname);
489 kmi_ptr->invalidate();
502static PointerRNA rna_KeyMap_item_find_from_operator(
ID *
id,
513 km, idname_bl,
static_cast<IDProperty *
>(properties->data), include_mask, exclude_mask);
540 if (keyconf ==
wm->runtime->addonconf) {
555 if (keymap && tool) {
573 &keyconf->keymaps, km_match->idname, km_match->spaceid, km_match->regionid);
583 return ot->modalkeymap;
590 if (
BLI_findindex(&keyconfig->keymaps, keymap) == -1) [[unlikely]] {
593 "KeyMap '%s' not found in KeyConfig '%s'",
600 keymap_ptr->invalidate();
603static void rna_KeyMaps_clear(
wmKeyConfig *keyconfig)
616 if (
BLI_findindex(&
wm->runtime->keyconfigs, keyconf) == -1) [[unlikely]] {
621 keyconf_ptr->invalidate();
670 if (!rna_popup_context_ok_or_report(
C, reports)) {
687 const int ui_units_x,
688 const bool from_active_button,
689 const bool auto_keymap)
691 if (!rna_popup_context_ok_or_report(
C, reports)) {
695 void *
data =
static_cast<void *
>(
710 if (!rna_popup_context_ok_or_report(
C, reports)) {
715 C, title, icon,
static_cast<const wmEvent *
>(event->data));
731static void rna_WindowManager_tag_script_reload()
737static PointerRNA rna_WindoManager_operator_properties_last(
const char *idname)
783 if (unicode !=
nullptr) {
791 if (unicode !=
nullptr) {
793 if (
len == -1 || unicode[
len] !=
'\0') {
799 wmEvent e = *win->runtime->eventstate;
823 e.utf8_buf[0] =
'\0';
824 if (unicode !=
nullptr) {
834static Scene *rna_Window_find_playing_scene(
wmWindow *win,
const bool scrub)
847 if (screen->scrubbing) {
857static void rna_asset_library_status_begin_loading(
const char *library_url,
float timeout)
862static void rna_asset_library_status_ping_still_loading(
const char *library_url)
867static void rna_asset_library_status_ping_metafiles_in_place(
const char *library_url)
872static void rna_asset_library_status_ping_loaded_new_pages(
const char *library_url)
877static void rna_asset_library_status_ping_loaded_new_preview(
bContext *
C,
878 const char *preview_full_path)
883static void rna_asset_library_status_ping_asset_file_progress(
const char *absolute_file_url,
884 const int size_written_high,
885 const int size_written_low)
890 const int64_t size_in_bytes = (size_written_high << 31) + size_written_low;
894static void rna_asset_library_status_ping_asset_file_succeeded(
bContext *
C,
895 const char *library_url,
896 const char *absolute_file_url,
897 const char *local_file_abspath)
900 *
C, library_url, absolute_file_url, local_file_abspath);
903static void rna_asset_library_status_ping_asset_file_failed(
bContext *
C,
904 const char *library_url,
905 const char *absolute_file_url,
906 const char *local_file_abspath)
909 *
C, library_url, absolute_file_url, local_file_abspath);
912static void rna_asset_library_status_ping_finished_download_queue(
bContext *
C)
917static void rna_asset_library_status_finished_loading(
const char *library_url)
922static void rna_asset_library_status_failed_loading(
const char *library_url,
const char *message)
926 message && message[0] ? std::optional<blender::StringRefNull>{message} : std::nullopt);
929static void rna_register_node_group_operators(
bContext *
C)
940# define WM_GEN_INVOKE_EVENT (1 << 0)
941# define WM_GEN_INVOKE_SIZE (1 << 1)
942# define WM_GEN_INVOKE_RETURN (1 << 2)
949 parm =
RNA_def_pointer(func,
"operator",
"Operator",
"",
"Operator to call");
992 func =
RNA_def_function(srna,
"cursor_modal_restore",
"WM_cursor_modal_restore");
994 func,
"Restore the previous cursor after calling ``cursor_modal_set``");
997 func =
RNA_def_function(srna,
"event_simulate",
"rna_Window_event_add_simulate");
1014 parm =
RNA_def_pointer(func,
"event",
"Event",
"Item",
"Added key map item");
1018 func =
RNA_def_function(srna,
"find_playing_scene",
"rna_Window_find_playing_scene");
1020 func,
"scrub",
false,
"Scrubbing",
"Check if time in the scene is being scrubbed");
1021 parm =
RNA_def_pointer(func,
"scene",
"Scene",
"Scene",
"Scene that is currently playing");
1032 func,
"scrub",
false,
"Scrubbing",
"Check if time in the window is being scrubbed");
1033 param =
RNA_def_pointer(func,
"window",
"Window",
"Window",
"Window that is currently playing");
1043 {0,
nullptr, 0,
nullptr,
nullptr},
1051 {0,
nullptr, 0,
nullptr,
nullptr},
1059 func =
RNA_def_function(srna,
"fileselect_add",
"WM_event_add_fileselect");
1065 func =
RNA_def_function(srna,
"modal_handler_add",
"rna_event_modal_handler_add");
1068 "Add a modal handler to the window manager, for the given modal operator "
1069 "(called by invoke() with self, just before returning {'RUNNING_MODAL'})");
1071 parm =
RNA_def_pointer(func,
"operator",
"Operator",
"",
"Operator to call");
1075 RNA_def_boolean(func,
"handle",
true,
"",
"Whether adding the handler was successful"));
1079 func,
"Add a timer to the given window, to generate periodic 'TIMER' events");
1084 RNA_def_pointer(func,
"window",
"Window",
"",
"Window to attach the timer to, or None");
1089 func =
RNA_def_function(srna,
"event_timer_remove",
"rna_event_timer_remove");
1093 func =
RNA_def_function(srna,
"gizmo_group_type_ensure",
"rna_gizmo_group_type_ensure");
1095 func,
"Activate an existing widget group (when the persistent option isn't set)");
1097 parm =
RNA_def_string(func,
"identifier",
nullptr, 0,
"",
"Gizmo group type name");
1101 srna,
"gizmo_group_type_unlink_delayed",
"rna_gizmo_group_type_unlink_delayed");
1103 "Unlink a widget group (when the persistent option is set)");
1105 parm =
RNA_def_string(func,
"identifier",
nullptr, 0,
"",
"Gizmo group type name");
1123 parm,
"value",
"Any value between min and max as set in progress_begin()");
1129 func =
RNA_def_function(srna,
"invoke_props_popup",
"rna_Operator_props_popup");
1132 "Operator popup invoke "
1133 "(show operator properties and execute it automatically on changes)");
1137 func =
RNA_def_function(srna,
"invoke_props_dialog",
"rna_Operator_props_dialog_popup");
1140 "Operator dialog (non-autoexec popup) invoke "
1141 "(show operator properties and only execute it on click on OK button)");
1150 "Optional text to show instead to the default \"OK\" confirmation button text");
1155 func =
RNA_def_function(srna,
"invoke_search_popup",
"rna_Operator_enum_search_invoke");
1158 "Operator search popup invoke which "
1159 "searches values of the operator's :class:`bpy.types.Operator.bl_property` "
1160 "(which must be an EnumProperty), executing it on confirmation");
1166 "Operator popup invoke "
1167 "(only shows operator's properties, without executing it)");
1173 "Assign accelerator keys to buttons, shown as underlined characters");
1178 "Operator confirmation popup "
1179 "(only to let user confirm the execution, no operator properties shown)");
1192 "Optional text to show instead to the default \"OK\" confirmation button text");
1201 func =
RNA_def_function(srna,
"try_activate_rna_button",
"rna_WM_try_activate_rna_button");
1204 "Attempt to activate an button referencing an RNA property. If any other button in the "
1205 "screen is active, it will be deactivated");
1211 parm =
RNA_def_string(func,
"property",
nullptr, 0,
"",
"Identifier of property in data");
1217 "Activation state for button. Some states are specific to certain button types; when an "
1218 "incompatible state is provided, the button will be activated with the 'HIGHLIGHT' state.");
1227 "RNA index of the button when a single member of the referenced RNA property is accessed");
1233 "The center point of the button in window coordinates when successfully activated");
1238 func =
RNA_def_function(srna,
"popmenu_begin__internal",
"rna_PopMenuBegin");
1256 func =
RNA_def_function(srna,
"popover_begin__internal",
"rna_PopoverBegin");
1264 func,
"from_active_button",
false,
"Use Button",
"Use the active button for positioning");
1269 "Assign accelerator keys to buttons, shown as underlined characters");
1276 RNA_def_pointer(func,
"keymap",
"KeyMap",
"Key Map",
"Active key map");
1279 func =
RNA_def_function(srna,
"piemenu_begin__internal",
"rna_PieMenuBegin");
1300 srna,
"operator_properties_last",
"rna_WindoManager_operator_properties_last");
1309 RNA_def_function(srna,
"print_undo_steps",
"rna_WindowManager_print_undo_steps");
1312 func =
RNA_def_function(srna,
"tag_script_reload",
"rna_WindowManager_tag_script_reload");
1314 func,
"Tag for refreshing the interface after scripts have been reloaded");
1321 "Is Interface Locked",
1322 "If true, the interface is currently locked by a running job and data should not be "
1323 "modified from application timers. Otherwise, the running job might conflict with the "
1324 "handler causing unexpected results or even crashes.");
1337 parm =
RNA_def_string(func,
"message",
nullptr, 0,
"Report Message",
"");
1372 func,
"Check the operator settings, return True to signal a change to redraw");
1425 parm =
RNA_def_string(func,
"result",
nullptr, 4096,
"result",
"");
1431 parm =
RNA_def_pointer(func,
"properties",
"OperatorProperties",
"",
"");
1444 parm =
RNA_def_string(func,
"message",
nullptr, 0,
"Report Message",
"");
1478 parm =
RNA_def_pointer(func,
"keymap",
"KeyMap",
"Key Map",
"Active key map");
1482 func =
RNA_def_function(srna,
"restore_to_default",
"rna_keymap_restore_to_default");
1485 func =
RNA_def_function(srna,
"restore_item_to_default",
"rna_keymap_restore_item_to_default");
1499 parm =
RNA_def_boolean(func,
"result",
false,
"Comparison result",
"");
1516 parm =
RNA_def_string(func,
"idname",
nullptr, 0,
"Operator Identifier",
"");
1530 RNA_def_boolean(func,
"repeat",
false,
"Repeat",
"When set, accept key-repeat events");
1535 "Force item to be added at start (not end) of key map so that "
1536 "it doesn't get blocked by an existing key map item");
1537 parm =
RNA_def_pointer(func,
"item",
"KeyMapItem",
"Item",
"Added key map item");
1543 parm =
RNA_def_string(func,
"propvalue",
nullptr, 0,
"Property Value",
"");
1557 RNA_def_boolean(func,
"repeat",
false,
"Repeat",
"When set, accept key-repeat events");
1558 parm =
RNA_def_pointer(func,
"item",
"KeyMapItem",
"Item",
"Added key map item");
1562 func =
RNA_def_function(srna,
"new_from_item",
"rna_KeyMap_item_new_from_item");
1564 parm =
RNA_def_pointer(func,
"item",
"KeyMapItem",
"Item",
"Item to use as a reference");
1567 parm =
RNA_def_pointer(func,
"result",
"KeyMapItem",
"Item",
"Added key map item");
1586 func =
RNA_def_function(srna,
"find_from_operator",
"rna_KeyMap_item_find_from_operator");
1588 parm =
RNA_def_string(func,
"idname",
nullptr, 0,
"Operator Identifier",
"");
1590 parm =
RNA_def_pointer(func,
"properties",
"OperatorProperties",
"",
"");
1601 parm =
RNA_def_pointer(func,
"keymap",
"KeyMap",
"",
"The matching keymap");
1603 parm =
RNA_def_pointer(func,
"item",
"KeyMapItem",
"",
"The matching keymap item");
1609 "The keymap item from this keymap which matches the keymap item from the "
1610 "arguments passed in");
1614 func =
RNA_def_function(srna,
"match_event",
"rna_KeyMap_item_match_event");
1616 parm =
RNA_def_pointer(func,
"event",
"Event",
"",
"Event to match against");
1632 "Ensure the keymap exists. This will return the one with the given name/space type/region "
1633 "type, or create a new one if it does not exist yet.");
1644 "Keymap for modal operators. "
1645 "Modal keymaps are not supported for :class:`KeyConfigs.addons`.");
1646 RNA_def_boolean(func,
"tool",
false,
"Tool",
"Keymap for active tools");
1647 parm =
RNA_def_pointer(func,
"keymap",
"KeyMap",
"Key Map",
"Added key map");
1653 parm =
RNA_def_pointer(func,
"keymap",
"KeyMap",
"Key Map",
"Removed key map");
1666 parm =
RNA_def_pointer(func,
"keymap",
"KeyMap",
"Key Map",
"Corresponding key map");
1670 parm =
RNA_def_pointer(func,
"keymap",
"KeyMap",
"Key Map",
"The key map for comparison");
1672 parm =
RNA_def_pointer(func,
"result",
"KeyMap",
"Key Map",
"Corresponding key map");
1676 parm =
RNA_def_string(func,
"name",
nullptr, 0,
"Operator Name",
"");
1678 parm =
RNA_def_pointer(func,
"keymap",
"KeyMap",
"Key Map",
"Corresponding key map");
1691 func,
"keyconfig",
"KeyConfig",
"Key Configuration",
"Added key configuration");
1698 func,
"keyconfig",
"KeyConfig",
"Key Configuration",
"Removed key configuration");
1706 srna,
"find_item_from_operator",
"rna_KeyConfig_find_item_from_operator");
1708 parm =
RNA_def_string(func,
"idname",
nullptr, 0,
"Operator Identifier",
"");
1712 parm =
RNA_def_pointer(func,
"properties",
"OperatorProperties",
"",
"");
1729 "Operator properties are kept to allow the operators to be registered again in the future");
1740 srna,
"asset_library_status_begin_loading",
"rna_asset_library_status_begin_loading");
1742 func,
"Inform the asset system that the asset library at the given URL is being loaded.");
1749 "The URL identifying the asset library being loaded");
1758 "Maximum time in seconds after which the asset library loading will be considered "
1759 "cancelled, if no further status reporting is done (e.g. by repeated calls to "
1760 "`asset_library_status_ping_still_loading()`).",
1765 "asset_library_status_ping_still_loading",
1766 "rna_asset_library_status_ping_still_loading");
1768 "Inform the asset system that the loading is still ongoing. "
1769 "Call this regularly to prevent the loading status to timeout.");
1776 "The URL identifying the asset library being loaded");
1780 "asset_library_status_ping_metafiles_in_place",
1781 "rna_asset_library_status_ping_metafiles_in_place");
1784 "Inform the asset system that the asset meta files (_asset-library-meta.json, "
1785 "asset-listing.json, blender_assets.cats.txt) are in place and ready to be loaded");
1792 "The URL identifying the asset library being loaded");
1796 "asset_library_status_ping_loaded_new_pages",
1797 "rna_asset_library_status_ping_loaded_new_pages");
1805 "The URL identifying the asset library being loaded");
1809 "asset_library_status_ping_loaded_new_preview",
1810 "rna_asset_library_status_ping_loaded_new_preview");
1812 func,
"Inform the asset system that a new preview is available and ready for display");
1816 "preview_full_path",
1820 "The full path (not URL!) pointing to the asset preview that should be available now");
1824 "asset_library_status_ping_asset_file_progress",
1825 "rna_asset_library_status_ping_asset_file_progress");
1827 func,
"Inform the asset system about the current progress of an asset file.");
1830 "absolute_file_url",
1834 "The absolute URL this file was downloaded from");
1837 "size_written_high",
1841 "Size Written to Disk (high bits)",
1842 "The high 31 bits of the number of bytes written to disk (after "
1843 "uncompressing the download data, if needed)",
1852 "Size Written to Disk (low bits)",
1853 "The low 31 bits of the number of bytes written to disk (after "
1854 "uncompressing the download data, if needed)",
1860 "asset_library_status_ping_asset_file_succeeded",
1861 "rna_asset_library_status_ping_asset_file_succeeded");
1863 "Inform the asset system that a single asset file download has "
1864 "finished successfully.");
1871 "The URL identifying the asset library being loaded");
1874 "absolute_file_url",
1878 "The absolute URL this file was downloaded from");
1881 "local_file_abspath",
1885 "The absolute path this file was downloaded to");
1889 "asset_library_status_ping_asset_file_failed",
1890 "rna_asset_library_status_ping_asset_file_failed");
1892 "Inform the asset system that a single asset file download has "
1893 "stopped because of some failure.");
1900 "The URL identifying the asset library being loaded");
1903 "absolute_file_url",
1907 "The absolute URL this file was downloaded from");
1910 "local_file_abspath",
1914 "The absolute path this file was supposed to be downloaded to");
1918 "asset_library_status_ping_finished_download_queue",
1919 "rna_asset_library_status_ping_finished_download_queue");
1921 "Inform the asset system that there are no more pending asset "
1922 "file downloads for any asset library.");
1926 srna,
"asset_library_status_finished_loading",
"rna_asset_library_status_finished_loading");
1928 "Inform the asset system that the asset library at the given "
1929 "URL has successfully finished loading.");
1936 "The URL identifying the asset library being loaded");
1940 srna,
"asset_library_status_failed_loading",
"rna_asset_library_status_failed_loading");
1942 "Inform the asset system that the asset library at the given "
1943 "URL failed loading, and should be aborted.");
1950 "The URL identifying the asset library being loaded");
1952 RNA_def_string(func,
"message",
nullptr, 0,
"Message",
"An error message to show to users");
1955 srna,
"register_node_group_operators",
"rna_register_node_group_operators");
1957 "Trigger manual re-registration of node group operators. Useful "
1958 "in background mode where this doesn't happen automatically.");
#define RNA_warning_bare(format,...)
#define UI_MAX_SHORTCUT_STR
static void ping_asset_file_download_succeeded(const bContext &C, StringRef library_url, StringRef absolute_file_url, StringRef local_file_abspath)
static void ping_still_loading(StringRef url)
static void ping_new_pages(StringRef url)
static void set_failure(StringRef url, std::optional< StringRefNull > failure_message)
static void begin_loading(StringRef url, float timeout)
static void set_finished(StringRef url)
static void ping_download_queue_done(const bContext &C)
static void ping_asset_file_download_failed(const bContext &C, StringRef library_url, StringRef absolute_file_url, StringRef local_file_abspath)
static void ping_asset_file_progress(StringRef absolute_file_url, int64_t size_in_bytes)
static void ping_new_preview(const bContext &C, StringRef preview_full_filepath)
static void ping_metafiles_in_place(StringRef url)
bool any(VecOp< bool, D >) RET
float4x4 translate(float4x4 mat, float3 translation)
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
void register_node_group_operators(const bContext &C)
std::optional< int2 > try_activate_rna_button(bContext *C, ARegion *region, ActivationButtonState target_state, PointerRNA *ptr, PropertyRNA *prop, bool warp_cursor_at_button=false, int index=0)
PieMenu * pie_menu_begin(bContext *C, const char *title, int icon, const wmEvent *event) ATTR_NONNULL()
PopupMenu * popup_menu_begin(bContext *C, const char *title, int icon) ATTR_NONNULL()
void popover_end(bContext *C, Popover *pup, wmKeyMap *keymap)
Popover * popover_begin(bContext *C, int ui_menu_width, bool from_active_button, bool use_numselect) ATTR_NONNULL(1)
void popup_menu_end(bContext *C, PopupMenu *pup)
void pie_menu_end(bContext *C, PieMenu *pie)
wmKeyConfig * WM_keyconfig_ensure(wmWindowManager *wm, const char *idname, bool user_defined)
void WM_main_add_notifier(uint type, void *reference)
void RNA_api_keymap(StructRNA *srna)
wmKeyMap * WM_keymap_active(const wmWindowManager *wm, wmKeyMap *keymap)
ScrArea * CTX_wm_area(const bContext *C)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
char * STRNCPY(char(&dst)[N], const char *src)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, const int maxlen, const char *ui_name, const char *ui_description)
void RNA_def_function_output(FunctionRNA *, PropertyRNA *ret)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
bool WM_gizmo_group_type_ensure_ptr(wmGizmoGroupType *gzgt)
const EnumPropertyItem rna_enum_space_type_items[]
wmKeyMapItem * WM_modalkeymap_add_item(wmKeyMap *km, const KeyMapItem_Params *params, int value)
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void BLI_addhead(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void WM_keymap_remove(wmKeyConfig *keyconf, wmKeyMap *keymap)
wmKeyMapItem * WM_event_match_keymap_item(bContext *C, wmKeyMap *keymap, const wmEvent *event)
wmKeyMapItem * WM_key_event_operator_from_keymap(wmKeyMap *keymap, const char *opname, IDProperty *properties, const short include_mask, const short exclude_mask)
const EnumPropertyItem rna_enum_event_value_items[]
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_api_keyconfig(StructRNA *srna)
void WM_gizmo_group_type_unlink_delayed_ptr(wmGizmoGroupType *gzgt)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
size_t WM_operator_bl_idname(char *dst, const char *src)
wmWindow * CTX_wm_window(const bContext *C)
const EnumPropertyItem rna_operator_popup_icon_items[]
wmGizmoGroupType * WM_gizmogrouptype_find(const StringRef idname, bool quiet)
const EnumPropertyItem rna_enum_event_type_mask_items[]
wmKeyMapItem * WM_keymap_add_item(wmKeyMap *keymap, const char *idname, const KeyMapItem_Params *params)
wmKeyMapItem * WM_keymap_item_find_match(wmKeyMap *km_base, wmKeyMap *km_match, const wmKeyMapItem *kmi_match, ReportList *reports)
wmOperatorStatus WM_operator_ui_popup(bContext *C, wmOperator *op, int width, const bool use_numselect)
void WM_cursor_progress(wmWindow *win, float progress_factor)
void RNA_api_keymaps(StructRNA *srna)
bool RNA_enum_value_from_id(const EnumPropertyItem *item, const char *identifier, int *r_value)
const EnumPropertyItem rna_enum_operator_return_items[]
const EnumPropertyItem rna_enum_event_direction_items[]
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void RNA_api_keymapitems(StructRNA *srna)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
const EnumPropertyItem rna_enum_window_cursor_items[]
std::optional< StringRefNull > RNA_translate_ui_text(const char *text, const char *text_ctxt, StructRNA *type, PropertyRNA *prop, int translate)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void BKE_undosys_print(UndoStack *ustack)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
const EnumPropertyItem rna_enum_event_type_items[]
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
bool WM_keymap_item_compare(const wmKeyMapItem *k1, const wmKeyMapItem *k2)
void WM_keymap_item_restore_to_default(wmWindowManager *wm, wmKeyMap *keymap, wmKeyMapItem *kmi)
const EnumPropertyItem rna_enum_operator_context_items[]
wmWindowManager * CTX_wm_manager(const bContext *C)
void WM_event_tablet_data_default_set(wmTabletData *tablet_data)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
void RNA_def_property_range(PropertyRNA *prop, double min, double max)
wmKeyMapItem * WM_keymap_add_item_copy(wmKeyMap *keymap, const wmKeyMapItem *kmi_src)
void WM_operator_last_properties_ensure(wmOperatorType *ot, PointerRNA *ptr)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void WM_cursor_modal_restore(wmWindow *win)
wmOperatorStatus WM_operator_props_popup(bContext *C, wmOperator *op, const wmEvent *)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
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, const bool show_icon)
const char int BLI_str_utf8_size_or_error(const char *p) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
wmEventHandler_Op * WM_event_add_modal_handler_ex(wmWindow *win, ScrArea *area, ARegion *region, wmOperator *op)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier_c_str, const char *call)
wmOperatorStatus WM_operator_confirm_ex(bContext *C, wmOperator *op, const char *title, const char *message, const char *confirm_text, ui::AlertIcon icon, bool cancel_default)
void RNA_def_property_boolean_default(PropertyRNA *prop, bool value)
void api_ui_item_common_translation(FunctionRNA *func)
void RNA_api_operator(StructRNA *srna)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
wmKeyMapItem * WM_key_event_operator(const bContext *C, const char *opname, wm::OpCallContext opcontext, IDProperty *properties, const short include_mask, const short exclude_mask, wmKeyMap **r_keymap)
const char * RNA_struct_identifier(const StructRNA *type)
std::optional< std::string > WM_keymap_item_to_string(const wmKeyMapItem *kmi, const bool compact)
@ WM_GIZMOGROUPTYPE_PERSISTENT
void WM_script_tag_reload()
wmKeyMap * WM_keymap_list_find(ListBaseT< wmKeyMap > *lb, const char *idname, int spaceid, int regionid)
const EnumPropertyItem rna_enum_region_type_items[]
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
void RNA_def_function_flag(FunctionRNA *func, FunctionFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void WM_keyconfig_remove(wmWindowManager *wm, wmKeyConfig *keyconf)
void RNA_api_window(StructRNA *srna)
void WM_keymap_restore_to_default(wmKeyMap *keymap, wmWindowManager *wm)
static void rna_generic_op_invoke(FunctionRNA *func, int flag)
void RNA_api_keymapitem(StructRNA *srna)
void RNA_api_asset_library_loading_status(StructRNA *srna)
wmWindow * ED_window_animation_playing_no_scrub(const wmWindowManager *wm)
Scene * ED_screen_find_playing_scene(const bScreen *screen, bool scrub=false)
const EnumPropertyItem rna_button_activation[]
void RNA_api_wm(StructRNA *srna)
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
const EnumPropertyItem rna_enum_wm_report_items[]
wmOperatorStatus WM_enum_search_invoke(bContext *C, wmOperator *op, const wmEvent *)
bool WM_operator_is_repeat(const bContext *C, const wmOperator *op)
void WM_event_timer_remove(wmWindowManager *wm, wmWindow *, wmTimer *timer)
void WM_keyconfig_clear(wmKeyConfig *keyconf)
wmKeyMap * WM_modalkeymap_ensure(wmKeyConfig *keyconf, const char *idname, const EnumPropertyItem *items)
wmTimer * WM_event_timer_add(wmWindowManager *wm, wmWindow *win, const wmEventType event_type, const double time_step)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
wmEvent * WM_event_add_simulate(wmWindow *win, const wmEvent *event_to_add)
wmKeyMapItem * WM_modalkeymap_add_item_str(wmKeyMap *km, const KeyMapItem_Params *params, const char *value)
const EnumPropertyItem rna_enum_icon_items[]
void RNA_api_windows(StructRNA *srna)
void RNA_def_property_int_default(PropertyRNA *prop, int value)
bScreen * WM_window_get_active_screen(const wmWindow *win)
PropertyRNA * RNA_def_float(StructOrFunctionRNA *cont_, const char *identifier, const float default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void RNA_def_property_array(PropertyRNA *prop, int length)
ARegion * CTX_wm_region(const bContext *C)
void WM_keymap_remove_item(wmKeyMap *keymap, wmKeyMapItem *kmi)
void WM_keyconfig_update_ex(wmWindowManager *wm, bool keep_properties)
void RNA_api_macro(StructRNA *srna)
void RNA_api_keyconfigs(StructRNA *srna)
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
#define WM_GEN_INVOKE_EVENT
#define WM_GEN_INVOKE_SIZE
#define WM_GEN_INVOKE_RETURN
#define ISMOUSE_BUTTON(event_type)
#define ISMOUSE_MOTION(event_type)
#define ISKEYBOARD(event_type)
#define EVT_TYPE_MASK_ALL