22#include <fmt/format.h>
100#include "RNA_prototypes.hh"
124#define UNDOCUMENTED_OPERATOR_TIP N_("(undocumented operator)")
130#define OP_BL_SEP_STRING "_OT_"
131#define OP_BL_SEP_LEN 4
133#define OP_PY_SEP_CHAR '.'
134#define OP_PY_SEP_LEN 1
138#define OP_MAX_PY_IDNAME (OP_MAX_TYPENAME - OP_BL_SEP_LEN + OP_PY_SEP_LEN - 1)
144 const size_t sep_offset = size_t(sep - src);
148 memcpy(dst, src, sep_offset);
163 const size_t from_len = strlen(src);
167 const size_t sep_offset = size_t(sep - src);
168 memcpy(dst, src, sep_offset);
185 if ((sep ==
nullptr) || (sep == idname) || (sep[
OP_BL_SEP_LEN] ==
'\0')) {
189 for (
const char *ch = idname; ch < sep; ch++) {
190 if ((*ch >=
'A' && *ch <=
'Z') || (*ch >=
'0' && *ch <=
'9') || *ch ==
'_') {
197 if ((*ch >=
'a' && *ch <=
'z') || (*ch >=
'0' && *ch <=
'9') || *ch ==
'_') {
209 const char *ch = idname;
212 for (i = 0; *ch; i++, ch++) {
213 if ((*ch >=
'a' && *ch <=
'z') || (*ch >=
'0' && *ch <=
'9') || *ch ==
'_') {
216 else if (*ch ==
'.') {
217 if (ch == idname || (*(ch + 1) ==
'\0')) {
218 std::string error_prefix = error_prefix_fn();
220 reports,
RPT_ERROR,
"%sInvalid character at position %d", error_prefix.c_str(), i);
226 std::string error_prefix = error_prefix_fn();
228 reports,
RPT_ERROR,
"%sInvalid character at position %d", error_prefix.c_str(), i);
234 std::string error_prefix = error_prefix_fn();
237 "%sIdentifier too long, maximum length is %d",
238 error_prefix.c_str(),
244 std::string error_prefix = error_prefix_fn();
252 const char *classname,
257 "Registering operator class '{}', invalid bl_idname '{}', ", classname, idname);
269 const bool macro_args,
276 std::stringstream ss;
279 int max_prop_length = 10;
282 ss <<
"bpy.ops." << idname_py <<
"(";
284 if (op && op->
macro.first()) {
287 bool first_op =
true;
289 opm = macro_args ? op->
macro.first() :
nullptr;
291 for (; opm; opm = opm->
next) {
294 if (opmptr ==
nullptr) {
296 opmptr = &opmptr_default;
301 ss << opm->
type->
idname <<
'=' << string_args;
305 ss <<
", " << opm->
type->
idname <<
'=' << string_args;
308 if (opmptr == &opmptr_default) {
316 const bool macro_args_test = ot->
macro.first() ? macro_args :
true;
318 if (opptr ==
nullptr) {
320 opptr = &opptr_default;
324 C, opptr,
false, all_args, macro_args_test, max_prop_length);
326 if (opptr == &opptr_default) {
339 const bool macro_args)
346 const int str_len =
str.size();
347 const size_t parens_start =
str.find(
'(');
348 if (parens_start == std::string::npos) {
352 const size_t parens_end =
str.find(parens_start + 1,
')');
353 if (parens_end == std::string::npos) {
357 const int parens_len = parens_end - parens_start;
358 if (parens_len <= str_len_max) {
363 const size_t comma_first =
str.find(parens_start,
',');
364 if (comma_first == std::string::npos) {
367 const char end_str[] =
" ... )";
368 const int end_str_len =
sizeof(end_str) - 1;
371 const int new_str_len = (comma_first - parens_start) + 1;
373 if (str_len < new_str_len + parens_start + end_str_len + 1) {
377 return str.substr(0, comma_first) + end_str;
395 const char *member_found =
nullptr;
396 const char *member_id =
nullptr;
397 bool member_found_is_id =
false;
399 for (link = lb.first; link; link = link->next) {
400 const char *identifier = link->data;
401 PointerRNA ctx_item_ptr = {};
404 if (!ctx_item_ptr.has_type()) {
408 if (ptr->owner_id == ctx_item_ptr.owner_id) {
410 if ((ptr->data == ctx_item_ptr.data) && (ptr->type == ctx_item_ptr.type)) {
412 member_found = identifier;
413 member_found_is_id = is_id;
418 member_id = identifier;
422 lb.free_no_destruct();
425 *r_is_id = member_found_is_id;
428 else if (member_id) {
459 const char *member_id =
nullptr;
462# define CTX_TEST_PTR_ID(C, member, idptr) \
464 const char *ctx_member = member; \
465 PointerRNA ctx_item_ptr = CTX_data_pointer_get(C, ctx_member); \
466 if (ctx_item_ptr.owner_id == idptr) { \
467 member_id = ctx_member; \
474# define CTX_TEST_PTR_ID_CAST(C, member, member_full, cast, idptr) \
476 const char *ctx_member = member; \
477 const char *ctx_member_full = member_full; \
478 PointerRNA ctx_item_ptr = CTX_data_pointer_get(C, ctx_member); \
479 if (ctx_item_ptr.owner_id && (ID *)cast(ctx_item_ptr.owner_id) == idptr) { \
480 member_id = ctx_member_full; \
487# define TEST_PTR_DATA_TYPE(member, rna_type, rna_ptr, dataptr_cmp) \
489 const char *ctx_member = member; \
490 if (RNA_struct_is_a((rna_ptr)->type, (rna_type)) && (rna_ptr)->data == (dataptr_cmp)) { \
491 member_id = ctx_member; \
498# define TEST_PTR_DATA_TYPE_FROM_CONTEXT(member, rna_type, rna_ptr) \
500 const char *ctx_member = member; \
501 if (RNA_struct_is_a((rna_ptr)->type, (rna_type)) && \
502 (rna_ptr)->data == (CTX_data_pointer_get_type(C, ctx_member, (rna_type)).data)) \
504 member_id = ctx_member; \
525 if (ptr->
owner_id && (member_id ==
nullptr)) {
528 switch (ptr_id_type) {
544 if (ptr_id_type ==
ID_AR) {
546 if (arm->
edbo !=
nullptr) {
554# define ID_CAST_OBDATA(id_pt) (((Object *)(id_pt))->data)
557# undef ID_CAST_OBDATA
560# define ID_CAST_OBMATACT(id_pt) \
561 BKE_object_material_get(((Object *)id_pt), ((Object *)id_pt)->actcol)
565# undef ID_CAST_OBMATACT
568# define ID_CAST_SCENEWORLD(id_pt) (((Scene *)(id_pt))->world)
571# undef ID_CAST_SCENEWORLD
580 if (space_data !=
nullptr) {
585 const View3D *v3d =
reinterpret_cast<View3D *
>(space_data);
593 "space_data.region_3d", RNA_RegionView3D, ptr, region->
regiondata);
639 "space_data.preview_overlay", RNA_SequencerPreviewOverlay, ptr, sseq);
641 "space_data.timeline_overlay", RNA_SequencerTimelineOverlay, ptr, sseq);
653# undef CTX_TEST_PTR_ID
654# undef CTX_TEST_PTR_ID_CAST
655# undef TEST_PTR_DATA_TYPE
674 std::string member_id_data_path;
678 if (prop !=
nullptr) {
680 if (prop_str[0] ==
'[') {
681 member_id_data_path = fmt::format(
"{}.{}{}", member_id, *data_path, prop_str);
684 member_id_data_path = fmt::format(
"{}.{}.{}", member_id, *data_path, prop_str);
688 member_id_data_path = fmt::format(
"{}.{}", member_id, *data_path);
693 if (prop !=
nullptr) {
695 if (prop_str[0] ==
'[') {
696 member_id_data_path = fmt::format(
"{}{}", member_id, prop_str);
699 member_id_data_path = fmt::format(
"{}.{}", member_id, prop_str);
703 member_id_data_path = member_id;
707 return member_id_data_path;
722 if (!member_id_data_path.has_value()) {
725 return "bpy.context." + member_id_data_path.value();
736 if (!lhs.has_value()) {
748 std::string
ret = fmt::format(
"{} = {}", lhs.value(), rhs);
775 if (properties ==
nullptr) {
776 properties = &tmp_properties;
779 if (*properties ==
nullptr) {
783 if (*ptr ==
nullptr) {
787 (*ptr)->
data = *properties;
821 bool changed =
false;
826 if (ptype != RNA_Struct) {
892 bool changed =
false;
930 bool changed =
false;
957 if (op->
macro.first() !=
nullptr) {
996 "wait_to_deselect_others");
1003 if (init_event_type == 0) {
1006 if (use_select_on_click) {
1042 const int drag_delta[2] = {
1043 mval[0] -
event->mval[0],
1044 mval[1] -
event->mval[1],
1115 if (prop ==
nullptr) {
1120 "'%s', '%s' is not an enum property",
1132 ui::Layout &layout = *popup_menu_layout(pup);
1140 popup_menu_end(
C, pup);
1166 static char search[256] =
"";
1187 block,
ui::ButtonType::Label,
"", 0, -height, width, height,
nullptr, 0, 0, std::nullopt);
1192 button_focus_on_enter_event(win, but);
1200 search_menu.
op = op;
1202 const bool can_refresh =
false;
1211 const char *message,
1219 case ICON_STATUS_WARNING_FILLED:
1225 case ICON_STATUS_ERROR_FILLED:
1228 case ICON_STATUS_INFO_FILLED:
1305 for (
wmOperator &op :
wm->runtime->operators.items_reversed()) {
1338 bool exists =
false;
1344 if (idcode ==
ID_IM) {
1354 "Cannot read %s '%s': %s",
1357 errno ? strerror(errno) :
RPT_(
"unsupported format"));
1361 if (is_relative_path) {
1362 if (exists ==
false) {
1363 if (idcode ==
ID_IM) {
1439 block_flag_enable(block,
1448 popup_dummy_panel_set(region, block, op->
idname);
1472 block_bounds_set_popup(block, 7 *
UI_SCALE_FAC,
nullptr);
1513 popup_block_close(
C, win, block);
1526 popup_block_close(
C, win, block);
1538 const short icon_size = (small ? 32 : 40) *
UI_SCALE_FAC;
1543 popup_dummy_panel_set(region, block, op->
idname);
1545 if (
data->mouse_move_quit) {
1556 int text_width = std::max(
1561 const std::string message =
StringRef(
data->message).trim();
1562 const int message_width_max = std::max(
data->width, 30 *
UI_UNIT_X);
1563 std::istringstream message_stream(message);
1565 while (std::getline(message_stream, line)) {
1568 text_width = std::max(text_width, std::min(line_width, message_width_max));
1571 int dialog_width = std::max(text_width +
int(style->
columnspace * 2.5),
data->width);
1574 const int longest_button_text = std::max(
1577 dialog_width = std::max(dialog_width, 3 * longest_button_text);
1581 return *uiItemsAlertBox(block, style, dialog_width + icon_size,
data->icon, icon_size);
1595 if (!
data->title.empty()) {
1596 uiItemL_ex(&layout,
data->title, ICON_NONE,
true,
false);
1599 if (
data->include_properties && message.empty()) {
1604 if (!message.empty()) {
1609 if (
data->include_properties) {
1617 block_func_set(block,
nullptr,
nullptr,
nullptr);
1620 const bool windows_layout =
true;
1622 const bool windows_layout =
false;
1627 if (!block_has_active_default_button(layout.
block())) {
1636 const int buttons_width_max = std::max(18 *
UI_UNIT_X, 3 * longest_button_text);
1638 if (dialog_width > buttons_width_max) {
1639 ui::Layout &buttons_split = col.
split(1.0f -
float(buttons_width_max) /
float(dialog_width),
1641 buttons_split.
column(
false);
1642 buttons_layout = &buttons_split.
column(
false);
1646 split.scale_y_set(small ? 1.0f : 1.2f);
1648 if (windows_layout) {
1649 confirm_but = uiDefBut(col_block,
1651 data->confirm_text.c_str(),
1660 split.column(
false);
1663 cancel_but = uiDefBut(
1664 col_block,
ui::ButtonType::But,
IFACE_(
"Cancel"), 0, 0, 0,
UI_UNIT_Y,
nullptr, 0, 0,
"");
1666 if (!windows_layout) {
1667 split.column(
false);
1668 confirm_but = uiDefBut(col_block,
1670 data->confirm_text.c_str(),
1681 button_func_set(confirm_but,
1683 button_func_set(cancel_but,
1691 const float button_center_x = windows_layout ? -0.4f : -0.90f;
1692 const float button_center_y = small ? 2.0f : 3.1f;
1693 const int bounds_offset[2] = {int(button_center_x * layout.
width()),
1695 block_bounds_set_popup(block,
padding, bounds_offset);
1698 block_bounds_set_centered(block,
padding);
1713 if (
data->use_numselect) {
1718 popup_dummy_panel_set(region, block, op->
idname);
1726 block_func_set(block,
nullptr,
nullptr,
nullptr);
1728 block_bounds_set_popup(block, 6 *
UI_SCALE_FAC,
nullptr);
1743 if (
data->free_op) {
1756 if (op && retval > 0) {
1766 const char *message,
1767 const char *confirm_text,
1769 bool cancel_default)
1775 const float min_width = (message ==
nullptr) ? 180.0f : 230.0f;
1779 data->free_op =
true;
1781 data->message = (message ==
nullptr) ? std::string() : message;
1782 data->confirm_text = (confirm_text ==
nullptr) ?
IFACE_(
"OK") : confirm_text;
1786 data->cancel_default = cancel_default;
1787 data->mouse_move_quit = (message ==
nullptr) ?
true :
false;
1788 data->include_properties =
false;
1799 const bool use_numselect)
1804 data->use_numselect = use_numselect;
1805 data->free_op =
true;
1820 std::optional<std::string> title = std::nullopt,
1821 std::optional<std::string> confirm_text = std::nullopt,
1822 const bool cancel_default =
false,
1823 std::optional<std::string> message = std::nullopt)
1828 "Operator '%s' does not have register enabled, incorrect invoke function",
1837 "Operator '%s' does not have undo enabled, incorrect invoke function",
1847 C, op, 300, title, confirm_text, cancel_default, message);
1862 std::optional<std::string> title,
1863 std::optional<std::string> confirm_text,
1864 const bool cancel_default,
1865 std::optional<std::string> message)
1868 C, op,
false,
false, title, confirm_text, cancel_default, message);
1893 std::optional<std::string> title,
1894 std::optional<std::string> confirm_text,
1895 const bool cancel_default,
1896 std::optional<std::string> message,
1897 const bool show_icon)
1903 data->free_op =
true;
1905 data->confirm_text = confirm_text ? std::move(*confirm_text) :
IFACE_(
"OK");
1906 data->message = message ? std::move(*message) : std::string();
1910 data->cancel_default = cancel_default;
1911 data->mouse_move_quit =
false;
1912 data->include_properties =
true;
1927 "Operator redo '%s' does not have register enabled, incorrect invoke function",
1950#ifdef WITH_INPUT_IME
1951std::optional<wmOperatorStatus> WM_operator_IME_insert_maybe(bContext *
C,
1953 const wmEvent *event,
1954 const char *prop_id)
1957 if (win ==
nullptr) {
1958 return std::nullopt;
1966 const wmIMEData *ime_data = win->runtime->ime_data;
1967 if (ime_data && !ime_data->result.empty()) {
1969 return op->type->exec(
C, op);
1972 if (win->runtime->ime_data_is_composing) {
1975 return std::nullopt;
1978std::optional<wmOperatorStatus> WM_operator_IME_edit_maybe(
const bContext *
C)
1981 if (win && win->runtime->ime_data_is_composing) {
1984 return std::nullopt;
2015 ot->
name =
"Debug Menu";
2016 ot->
idname =
"WM_OT_debug_menu";
2017 ot->
description =
"Open a popup to set the debug level";
2024 ot->
srna,
"debug_value", 0, SHRT_MIN,
SHRT_MAX,
"Debug Value",
"", -10000, 10000);
2049 ot->
name =
"Restore Operator Defaults";
2050 ot->
idname =
"WM_OT_operator_defaults";
2051 ot->
description =
"Set the active operator to its default values";
2097 button_func_operator_search(but);
2100 button_func_menu_search(but);
2103 button_func_menu_search(but,
init_data->single_menu_idname.c_str());
2188 data.search_type = search_type;
2199 ot->
name =
"Search Menu";
2200 ot->
idname =
"WM_OT_search_menu";
2201 ot->
description =
"Pop-up a search over all menus in the current context";
2210 ot->
name =
"Search Operator";
2211 ot->
idname =
"WM_OT_search_operator";
2212 ot->
description =
"Pop-up a search over all available operators in current context";
2221 ot->
name =
"Search Single Menu";
2222 ot->
idname =
"WM_OT_search_single_menu";
2223 ot->
description =
"Pop-up a search for a menu in current context";
2229 RNA_def_string(ot->
srna,
"menu_idname",
nullptr, 0,
"Menu Name",
"Menu to search in");
2235 "Query to insert into the search box");
2273 ot->
name =
"Call Menu";
2274 ot->
idname =
"WM_OT_call_menu";
2312 ot->
name =
"Call Pie Menu";
2313 ot->
idname =
"WM_OT_call_menu_pie";
2354 ot->
name =
"Call Panel";
2355 ot->
idname =
"WM_OT_call_panel";
2379 "Assign accelerator keys to buttons, shown as underlined characters");
2400 ot->
name =
"Call Asset Shelf Popover";
2401 ot->
idname =
"WM_OT_call_asset_shelf_popover";
2402 ot->
description =
"Open a predefined asset shelf in a popup";
2414 "Identifier of the asset shelf to display");
2432 if (win ==
nullptr) {
2450 if (win ==
nullptr) {
2466 ot->
name =
"Close Window";
2467 ot->
idname =
"WM_OT_window_close";
2476 ot->
name =
"New Window";
2477 ot->
idname =
"WM_OT_window_new";
2486 ot->
name =
"New Main Window";
2487 ot->
idname =
"WM_OT_window_new_main";
2488 ot->
description =
"Create a new main window with its own workspace and scene selection";
2496 ot->
name =
"Toggle Window Fullscreen";
2497 ot->
idname =
"WM_OT_window_fullscreen_toggle";
2498 ot->
description =
"Toggle the current window full-screen";
2525 ot->
name =
"Quit Blender";
2526 ot->
idname =
"WM_OT_quit_blender";
2552 ot->idname =
"WM_OT_console_toggle";
2553 ot->description =
N_(
"Toggle System Console");
2555 ot->exec = wm_console_toggle_exec;
2598 if (&pc == handle) {
2609 void (*
free)(
void *))
2612 if (pc.draw == draw_fn) {
2614 free(pc.customdata);
2628#define WM_RADIAL_CONTROL_DISPLAY_SIZE (200 * UI_SCALE_FAC)
2629#define WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE (35 * UI_SCALE_FAC)
2630#define WM_RADIAL_CONTROL_DISPLAY_WIDTH \
2631 (WM_RADIAL_CONTROL_DISPLAY_SIZE - WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE)
2632#define WM_RADIAL_MAX_STR 10
2711 float d[2] = {0, 0};
2712 float zoom[2] = {1, 1};
2773 gpu::TextureFormat::UNORM_8,
2792 float col[3] = {0, 0, 0};
2867 float step = (radius * 2.0f) /
float(line_segments);
2870 for (
int i = 0; i < line_segments; i++) {
2888 short fstyle_points = fstyle->
points;
2890 short strdrawlen = 0;
2891 float strwidth, strheight;
2892 float r1 = 0.0f, r2 = 0.0f, rmin = 0.0, tex_radius, alpha;
2893 float zoom[2], col[4] = {1.0f, 1.0f, 1.0f, 1.0f};
2894 float text_color[4];
3000 bool draw_rounded_box =
false;
3001 float roundness = 1.0f;
3002 float tip_scale_x = 1.0f;
3018 if (draw_rounded_box) {
3022 float2(r1, r1 * tip_scale_x),
3023 float2(r1 * roundness, r1 * roundness * tip_scale_x),
3032 if (draw_rounded_box) {
3036 float2(r2, r2 * tip_scale_x),
3037 float2(r2 * roundness, r2 * roundness * tip_scale_x),
3045 const float black[3] = {0.0f};
3069 BLF_position(fontid, -0.5f * strwidth, -0.5f * strheight, 0.0f);
3113 r_prop = &unused_prop;
3142 "Property from path '%s' has length %d instead of %d",
3167 &use_secondary_prop,
3174 const char *data_path;
3176 data_path =
"data_path_secondary";
3179 data_path =
"data_path_primary";
3216 "fill_color_override_path",
3226 "fill_color_override_test_path",
3271 status.
item(
IFACE_(
"Confirm"), ICON_EVENT_RETURN, ICON_MOUSE_LMB);
3272 status.
item(
IFACE_(
"Cancel"), ICON_EVENT_ESC, ICON_MOUSE_RMB);
3273 status.
item(ui_name, ICON_MOUSE_MOVE);
3280 op->
customdata = MEM_new<RadialControl>(__func__);
3342 "Property must be a none, distance, factor, percentage, angle, or pixel");
3356 wm->runtime->paintcursors.clear_no_delete();
3416 float new_value, dist = 0.0f, zoom[2];
3419 float angle_precision = 0.0f;
3421 bool handled =
false;
3431 numValue =
fmod(numValue, 2.0f *
float(
M_PI));
3432 if (numValue < 0.0f) {
3438 new_value = numValue;
3447 switch (event->
type) {
3468 if (!has_numInput) {
3476 angle_precision = -0.1f *
3478 float2{float(event->xy[0]), float(event->xy[1])});
3486 delta[0] /= zoom[0];
3494 delta[0] /= zoom[0];
3497 dist = dist + 0.1f * (delta[0]);
3505 delta[0] /= zoom[0];
3506 delta[1] /= zoom[1];
3532 new_value = (int(new_value) + 5) / 10 * 10;
3540 new_value = int(new_value + 2.5f) / 5 * 5;
3546 new_value = (int(
ceil(new_value * 10.0f)) * 10.0f) / 100.0f;
3549 new_value = 1 - new_value;
3552 new_value =
atan2f(delta[1], delta[0]) +
float(
M_PI) + angle_precision;
3553 new_value =
fmod(new_value, 2.0f *
float(
M_PI));
3554 if (new_value < 0.0f) {
3623 numValue =
fmod(numValue, 2.0f *
float(
M_PI));
3624 if (numValue < 0.0f) {
3630 new_value = numValue;
3653 if (
wm->op_undo_depth == 0) {
3655 std::optional<UndoEncodeHints> undo_hints_or_none =
3657 if (undo_hints_or_none) {
3675 ot->
name =
"Radial Control";
3676 ot->
idname =
"WM_OT_radial_control";
3677 ot->
description =
"Set some size property (e.g. brush size) with mouse wheel";
3688 "data_path_primary",
3691 "Primary Data Path",
3692 "Primary path of property to be set by the radial control");
3696 "data_path_secondary",
3699 "Secondary Data Path",
3700 "Secondary path of property to be set by the radial control");
3708 "Path of property to select between the primary and secondary data paths");
3716 "Path of property used to rotate the texture display");
3724 "Path of property used to set the color of the control");
3732 "Path of property used to set the fill color of the control");
3736 ot->
srna,
"fill_color_override_path",
nullptr, 0,
"Fill Color Override Path",
"");
3739 ot->
srna,
"fill_color_override_test_path",
nullptr, 0,
"Fill Color Override Test",
"");
3747 "Path of property used to set the zoom level for the control");
3755 "Path of ID that is used to generate an image for the control");
3759 ot->
srna,
"secondary_tex",
false,
"Secondary Texture",
"Tweak brush secondary/mask texture");
3763 ot->
srna,
"release_confirm",
false,
"Confirm On Release",
"Finish operation on key release");
3804 {
eRTDrawRegionSwap,
"DRAW_SWAP", 0,
"Draw Region & Swap",
"Draw region and swap"},
3805 {
eRTDrawWindow,
"DRAW_WIN", 0,
"Draw Window",
"Draw window"},
3806 {
eRTDrawWindowSwap,
"DRAW_WIN_SWAP", 0,
"Draw Window & Swap",
"Draw window and swap"},
3808 {
eRTAnimationPlay,
"ANIM_PLAY", 0,
"Animation Play",
"Animation playback"},
3809 {
eRTUndo,
"UNDO", 0,
"Undo/Redo",
"Undo and redo"},
3810 {0,
nullptr, 0,
nullptr,
nullptr},
3815 Depsgraph *depsgraph,
3821 const int steps_done,
3822 const int steps_total)
3862 scene->
r.
cfra += (cfra == scene->
r.
cfra) ? 1 : -1;
3867 int tot = (scene->
r.
efra - scene->
r.
sfra) + 1;
3868 const int frames_total = tot * steps_total;
3869 int frames_done = tot * steps_done;
3913 const int cfra = scene->
r.
cfra;
3914 const char *infostr =
"";
3930 for (
int a = 0; a < iter; a++) {
3934 status.
item(fmt::format(
"{} / {} {}", a + 1, iter, infostr), ICON_STATUS_INFO);
3940 if (time_limit != 0.0) {
3959 "%d \u00D7 %s: %.4f ms, average: %.8f ms",
3963 time_delta / iter_steps);
3970 ot->
name =
"Redraw Timer";
3971 ot->
idname =
"WM_OT_redraw_timer";
3972 ot->
description =
"Simple redraw timer to test the speed of updating the interface";
3980 ot->
srna,
"iterations", 10, 1,
INT_MAX,
"Iterations",
"Number of times to redraw", 1, 1000);
3987 "Seconds to run the test for (override iterations)",
4008 ot->
name =
"Memory Statistics";
4009 ot->
idname =
"WM_OT_memory_statistics";
4010 ot->
description =
"Print memory statistics to the console";
4063 ListBaseT<ID> *lb[] = {&bmain->
materials.cast<
ID>(),
4073 for (
int i = 0; lb[i]; i++) {
4077 preview_id_data.
C =
C;
4079 preview_id_data.
scene = &scene;
4080 ID *
id = id_cast<ID *>(&scene);
4088 for (
int i = 0; lb[i]; i++) {
4089 for (
ID &
id : *lb[i]) {
4102 ot->
name =
"Refresh Data-Block Previews";
4103 ot->
idname =
"WM_OT_previews_ensure";
4105 "Ensure data-block previews are available and up-to-date "
4106 "(to be saved in .blend file, only for some types like materials, textures, etc.)";
4137 "All Geometry Types",
4138 "Clear previews for scenes, collections and objects"},
4142 "All Shading Types",
4143 "Clear previews for materials, lights, worlds, textures and images"},
4153 {PREVIEW_FILTER_BRUSH,
"BRUSH", 0,
"Brushes",
""},
4155 {0,
nullptr, 0,
nullptr,
nullptr},
4192 ListBaseT<ID> *lb[] = {
4206 for (
int i = 0; lb[i]; i++) {
4207 ID *
id = lb[i]->first();
4213 printf(
"%s: %d, %d, %d -> %d\n",
4225 for (;
id;
id =
static_cast<ID *
>(
id->next)) {
4237 ot->
name =
"Clear Data-Block Previews";
4238 ot->
idname =
"WM_OT_previews_clear";
4240 "Clear data-block previews (only for some types like objects, materials, textures, etc.)";
4250 "Which data-block previews to clear");
4282 ot->
name =
"View Online Manual";
4283 ot->
idname =
"WM_OT_doc_view_manual_ui_context";
4284 ot->
description =
"View a context based online manual in a web browser";
4303 ot->
name =
"Set Stereo 3D";
4304 ot->
idname =
"WM_OT_set_stereo_3d";
4305 ot->
description =
"Toggle 3D stereo support for current window (or change the display mode)";
4336 "use_interlace_swap",
4339 "Swap left and right stereo channels");
4342 "use_sidebyside_crosseyed",
4345 "Right eye should see left image and vice versa");
4406#ifdef WITH_XR_OPENXR
4429 {0,
nullptr, 0,
nullptr,
nullptr},
4463 {0,
nullptr, 0,
nullptr,
nullptr},
4495 {0,
nullptr, 0,
nullptr,
nullptr},
4550 {0,
nullptr, 0,
nullptr,
nullptr},
4586 {0,
nullptr, 0,
nullptr,
nullptr},
4613 {0,
nullptr, 0,
nullptr,
nullptr},
4658 return (
id != user_data);
4666 if (
id->asset_data !=
nullptr) {
4676 bool (*filter_ids)(
const ID *
id,
void *user_data),
4683 if (
id !=
nullptr) {
4684 const short id_type =
GS(
id->name);
4685 for (;
id;
id =
static_cast<ID *
>(
id->next)) {
4686 if ((filter_ids !=
nullptr) && filter_ids(
id, user_data) ==
false) {
4692 item_tmp.
value = i++;
4697 if (lib_state_icon != ICON_NONE) {
4698 item_tmp.
icon = lib_state_icon;
4701 else if (id_type ==
ID_GR) {
4725 r_free,
C ?
CTX_data_main(
C)->actions.first_as<
ID>() :
nullptr,
false,
nullptr,
nullptr);
4728const EnumPropertyItem *RNA_action_local_itemf(bContext *
C,
4743 r_free,
C ?
CTX_data_main(
C)->collections.first_as<
ID>() :
nullptr,
false,
nullptr,
nullptr);
4751 r_free,
C ?
CTX_data_main(
C)->collections.first_as<
ID>() :
nullptr,
true,
nullptr,
nullptr);
4760 r_free,
C ?
CTX_data_main(
C)->images.first_as<
ID>() :
nullptr,
false,
nullptr,
nullptr);
4768 r_free,
C ?
CTX_data_main(
C)->images.first_as<
ID>() :
nullptr,
true,
nullptr,
nullptr);
4777 r_free,
C ?
CTX_data_main(
C)->scenes.first_as<
ID>() :
nullptr,
false,
nullptr,
nullptr);
4785 r_free,
C ?
CTX_data_main(
C)->scenes.first_as<
ID>() :
nullptr,
true,
nullptr,
nullptr);
4805 r_free,
C ?
CTX_data_main(
C)->movieclips.first_as<
ID>() :
nullptr,
false,
nullptr,
nullptr);
4813 r_free,
C ?
CTX_data_main(
C)->movieclips.first_as<
ID>() :
nullptr,
true,
nullptr,
nullptr);
General operations, lookup, etc. for materials.
#define BLF_DRAW_STR_DUMMY_MAX
#define SNPRINTF(dst, format,...)
Platform independent time functions.
#define CTX_N_(context, msgid)
#define CTX_IFACE_(context, msgid)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define CLOG_ERROR(clg_ref,...)
#define CLOG_DEBUG(clg_ref,...)
ID and Library types, which are fundamental for SDNA.
#define ID_IS_LINKED(_id)
#define ID_IS_EDITABLE(_id)
Object is a sort of wrapper for general info.
#define OB_DATA_SUPPORT_ID_CASE
#define OPERATOR_RETVAL_CHECK(ret)
@ GHOST_kConsoleWindowStateToggle
Read Blender memory allocation and freeing.
#define RNA_STRUCT_BEGIN(sptr, prop)
#define RNA_PROP_BEGIN(sptr, itemptr, prop)
#define RNA_SUBTYPE_UNIT_VALUE(subtype)
#define UI_SEARCHBOX_BOUNDS
#define UI_DEFAULT_TEXT_POINTS
#define BLI_assert_unreachable()
#define POINTER_FROM_INT(i)
#define POINTER_AS_INT(i)
static GHOST_ISystem * getSystem()
virtual bool setConsoleWindowState(GHOST_TConsoleWindowState action)=0
void item(std::string text, int icon1, int icon2=0)
void item_bool(std::string text, bool inverted, int icon1, int icon2=0)
float dot(VecOp< float, D >, VecOp< float, D >) RET
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
ccl_device_inline dual1 len(const ccl_private dual< T > &a)
ccl_device_inline float2 fmod(const float2 a, const float b)
std::unique_ptr< IDProperty, IDPropertyDeleter > create_group(StringRef prop_name, eIDPropertyFlag flags={})
Allocate a new IDProperty of type IDP_GROUP.
void free(Subdiv *subdiv)
void imm_draw_rounded_box_wire_2d(uint pos, float x, float y, float2 radius, float2 corner_radius, int nsegments)
void split(const std::string &s, const char delim, std::vector< std::string > &tokens)
void get_color_4fv(int colorid, float col[4])
std::optional< std::string > button_online_manual_id_from_active(const bContext *C) ATTR_WARN_UNUSED_RESULT
@ BLOCK_THEME_STYLE_REGULAR
@ BLOCK_THEME_STYLE_POPUP
const uiStyle * style_get()
wmOperatorStatus popup_menu_invoke(bContext *C, const char *idname, ReportList *reports) ATTR_NONNULL(1
PopupMenu * popup_menu_begin(bContext *C, const char *title, int icon) ATTR_NONNULL()
void fontstyle_set(const uiFontStyle *fs)
@ BUT_LABEL_ALIGN_SPLIT_COLUMN
const uiStyle * style_get_dpi()
void popup_block_invoke(bContext *C, BlockCreateFunc func, void *arg, FreeArgFunc arg_free, StructRNA *srna_owner=nullptr)
wmOperatorStatus popover_panel_invoke(bContext *C, const char *idname, bool keep_open, bool use_numselect, ReportList *reports)
wmOperatorStatus pie_menu_invoke(bContext *C, const char *idname, const wmEvent *event)
void icon_render_id(const bContext *C, Scene *scene, ID *id, enum eIconSizes size, bool use_job)
int icon_color_from_collection(const Collection *collection)
int icon_from_library(const ID *id)
Layout & block_layout(Block *block, LayoutDirection direction, LayoutType type, int x, int y, int size, int em, int padding, const uiStyle *style)
bool asset_shelf_popover_invoke(bContext &C, StringRef asset_shelf_idname, ReportList &reports)
@ BUT_ACTIVATE_ON_INIT_NO_SELECT
ID * WM_operator_drop_load_path(bContext *C, wmOperator *op, const short idcode)
MINLINE float min_ff(float a, float b)
const EnumPropertyItem * RNA_movieclip_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
const char * BKE_idtype_idcode_to_name(short idcode)
int RNA_property_array_length(PointerRNA *ptr, PropertyRNA *prop)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void WM_operatortype_append(void(*opfunc)(wmOperatorType *))
static void WM_OT_doc_view_manual_ui_context(wmOperatorType *ot)
void WM_OT_clear_recent_files(wmOperatorType *ot)
uint64_t BKE_idtype_idcode_to_idfilter(short idcode)
static void gesture_polyline_modal_keymap(wmKeyConfig *keyconf)
void wm_operatortypes_register()
std::string WM_operator_pystring_abbreviate(std::string str, int str_len_max)
static void WM_OT_window_new_main(wmOperatorType *ot)
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
void BKE_scene_graph_update_for_newframe(Depsgraph *depsgraph)
IDProperty * WM_operator_last_properties_ensure_idprops(wmOperatorType *ot)
PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop)
static const EnumPropertyItem preview_id_type_items[]
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
bool WM_operator_py_idname_ok_or_report(ReportList *reports, const char *classname, const char *idname)
ScrArea * CTX_wm_area(const bContext *C)
void WM_OT_save_as_mainfile(wmOperatorType *ot)
MINLINE void copy_v2_v2_int(int r[2], const int a[2])
static bool wm_operator_winactive_not_full(bContext *C)
static ui::Block * wm_block_create_redo(bContext *C, ARegion *region, void *arg_op)
std::optional< std::string > WM_context_path_resolve_property_full(const bContext *C, const PointerRNA *ptr, PropertyRNA *prop, int index)
char * STRNCPY(char(&dst)[N], const char *src)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void WM_operator_free(wmOperator *op)
void IDP_ReplaceInGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
uint padding(uint offset, uint alignment)
void wm_draw_region_test(bContext *C, ScrArea *area, ARegion *region)
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 BKE_previewimg_clear(PreviewImage *prv)
bool ED_undo_operator_repeat(bContext *C, wmOperator *op)
void RNA_property_float_get_array(PointerRNA *ptr, PropertyRNA *prop, float *values)
wmOperatorStatus WM_operator_confirm(bContext *C, wmOperator *op, const wmEvent *)
void BLF_position(int fontid, float x, float y, float z)
Scene * CTX_data_sequencer_scene(const bContext *C)
void BLI_str_toupper_ascii(char *str, size_t len) ATTR_NONNULL(1)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
static void WM_OT_window_close(wmOperatorType *ot)
wmOperatorStatus wm_window_new_exec(bContext *C, wmOperator *op)
float BLF_width(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(2)
void RNA_property_update(bContext *C, PointerRNA *ptr, PropertyRNA *prop)
wmKeyMap * WM_modalkeymap_find(wmKeyConfig *keyconf, const char *idname)
static const EnumPropertyItem * rna_id_itemf(bool *r_free, ID *id, bool local, bool(*filter_ids)(const ID *id, void *user_data), void *user_data)
static wmOperatorStatus wm_call_menu_exec(bContext *C, wmOperator *op)
void WM_operator_properties_alloc(PointerRNA **ptr, IDProperty **properties, const char *opstring)
void GPU_matrix_scale_2fv(const float vec[2])
bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna)
static std::string wm_call_menu_get_name(wmOperatorType *ot, PointerRNA *ptr)
const EnumPropertyItem * RNA_mask_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
@ WM_POPUP_POSITION_MOUSE
@ WM_POPUP_POSITION_CENTER
std::string WM_operatortype_name(wmOperatorType *ot, PointerRNA *properties)
void WM_OT_read_factory_settings(wmOperatorType *ot)
void WM_operator_properties_sanitize(PointerRNA *ptr, const bool no_context)
bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event)
bool RNA_path_resolve(const PointerRNA *ptr, const char *path, PointerRNA *r_ptr, PropertyRNA **r_prop)
wmOperatorStatus WM_operator_filesel(bContext *C, wmOperator *op, const wmEvent *)
static void WM_OT_debug_menu(wmOperatorType *ot)
static uint preview_filter_to_idfilter(enum PreviewFilterID filter)
void WM_OT_splash_about(wmOperatorType *ot)
void wm_xr_operatortypes_register()
bool RNA_property_reset(Main *bmain, PointerRNA *ptr, PropertyRNA *prop, int index)
void WM_operator_properties_reset(wmOperator *op)
std::optional< std::string > WM_prop_pystring_assign(bContext *C, PointerRNA *ptr, PropertyRNA *prop, int index)
void WM_operator_properties_free(PointerRNA *ptr)
void RNA_property_float_set(PointerRNA *ptr, PropertyRNA *prop, float value)
void WM_OT_link(wmOperatorType *ot)
ID * WM_operator_properties_id_lookup_from_name_or_session_uid(Main *bmain, PointerRNA *ptr, const ID_Type type)
static void WM_OT_search_menu(wmOperatorType *ot)
Depsgraph * CTX_data_depsgraph_pointer(const bContext *C)
static char g_search_text[256]
const char * RNA_property_identifier(const PropertyRNA *prop)
void WM_OT_set_working_color_space(wmOperatorType *ot)
GPUVertFormat * immVertexFormat()
bool IDP_AddToGroup(IDProperty *group, IDProperty *prop) ATTR_NONNULL()
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
IDProperty * IDP_CopyProperty(const IDProperty *prop) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
static wmOperatorStatus radial_control_modal(bContext *C, wmOperator *op, const wmEvent *event)
void CTX_wm_window_set(bContext *C, wmWindow *win)
IDProperty * IDP_GetPropertyFromGroup(const IDProperty *prop, StringRef name) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
static void gesture_zoom_border_modal_keymap(wmKeyConfig *keyconf)
void WM_keymap_fix_linking()
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
static void radial_control_set_tex(RadialControl *rc)
bool WM_operator_bl_idname_is_valid(const char *idname)
static std::optional< std::string > wm_prop_pystring_from_context(bContext *C, PointerRNA *ptr, PropertyRNA *prop, int index)
MenuType * WM_menutype_find(const StringRef idname, bool quiet)
static void init_data(ModifierData *md)
void WM_paneltype_idname_visit_for_search(const bContext *, PointerRNA *, PropertyRNA *, const char *, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
const EnumPropertyItem * RNA_movieclip_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
std::optional< std::string > RNA_path_from_ID_to_struct(const PointerRNA *ptr)
static bool operator_last_properties_init_impl(wmOperator *op, IDProperty *last_properties)
int WM_operator_smooth_viewtx_get(const wmOperator *op)
void immBegin(GPUPrimType, uint vertex_len)
static wmOperatorStatus previews_clear_exec(bContext *C, wmOperator *op)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void WM_operator_properties_clear(PointerRNA *ptr)
const EnumPropertyItem * RNA_collection_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
PointerRNA WM_operator_properties_create_ptr(wmOperatorType *ot)
PropertyUnit RNA_property_unit(PropertyRNA *prop)
wmOperatorStatus wm_window_fullscreen_toggle_exec(bContext *C, wmOperator *)
short RNA_type_to_ID_code(const StructRNA *type)
static void gesture_straightline_modal_keymap(wmKeyConfig *keyconf)
static int radial_control_get_path(PointerRNA *ctx_ptr, wmOperator *op, const char *name, PointerRNA *r_ptr, PropertyRNA **r_prop, int req_length, RCPropFlags flags)
void GPU_line_smooth(bool enable)
std::string RNA_property_string_get(PointerRNA *ptr, PropertyRNA *prop)
static void gesture_box_modal_keymap(wmKeyConfig *keyconf)
int RNA_int_get(PointerRNA *ptr, const char *name)
wmOperatorStatus WM_operator_call_notest(bContext *C, wmOperator *op)
static wmOperatorStatus wm_exit_blender_invoke(bContext *C, wmOperator *, const wmEvent *)
size_t WM_operator_bl_idname(char *dst, const char *src)
bool hasNumInput(const NumInput *n)
static void WM_OT_call_menu_pie(wmOperatorType *ot)
wmWindow * CTX_wm_window(const bContext *C)
MINLINE int max_ii(int a, int b)
bool id_type_can_have_animdata(short id_type)
void wm_gizmos_keymap(wmKeyConfig *keyconf)
void WM_OT_lib_reload(wmOperatorType *ot)
void GPU_matrix_rotate_2d(float deg)
@ GESTURE_MODAL_CIRCLE_ADD
@ GESTURE_MODAL_CIRCLE_SUB
@ GESTURE_MODAL_CIRCLE_SIZE
void WM_progress_clear(wmWindow *win)
PropertyRNA * RNA_struct_iterator_property(StructRNA *type)
static wmOperatorStatus wm_debug_menu_exec(bContext *C, wmOperator *op)
static wmOperatorStatus radial_control_invoke(bContext *C, wmOperator *op, const wmEvent *event)
ImBuf * BKE_brush_gen_radial_control_imbuf(Brush *br, bool secondary, bool display_gradient)
void ED_undo_push_op(bContext *C, wmOperator *op)
wmOperatorStatus WM_generic_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void ED_region_tag_redraw(ARegion *region)
std::optional< std::string > WM_context_path_resolve_full(bContext *C, const PointerRNA *ptr)
void WM_OT_append(wmOperatorType *ot)
static void gesture_lasso_modal_keymap(wmKeyConfig *keyconf)
void immAttr2f(uint attr_id, float x, float y)
wmOperatorStatus WM_operator_props_popup_confirm(bContext *C, wmOperator *op, const wmEvent *)
std::string WM_operator_pystring(bContext *C, wmOperator *op, const bool all_args, const bool macro_args)
std::optional< UndoEncodeHints > ED_undo_is_legacy_compatible_for_property(bContext *C, ID *id, const PointerRNA &ptr, const PropertyRNA &prop)
void WM_OT_open_mainfile(wmOperatorType *ot)
static void WM_OT_search_single_menu(wmOperatorType *ot)
void IDP_MergeGroup(IDProperty *dest, const IDProperty *src, bool do_overwrite) ATTR_NONNULL()
static wmOperatorStatus wm_search_menu_invoke(bContext *C, wmOperator *op, const wmEvent *event)
wmOperatorStatus WM_operator_ui_popup(bContext *C, wmOperator *op, int width, const bool use_numselect)
void WM_OT_save_homefile(wmOperatorType *ot)
void GPU_line_width(float width)
wmOperatorStatus wm_stereo3d_set_invoke(bContext *C, wmOperator *op, const wmEvent *)
const EnumPropertyItem * RNA_collection_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
static void redraw_timer_window_swap(bContext *C)
const EnumPropertyItem * RNA_action_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
bool RNA_property_array_check(PropertyRNA *prop)
void wm_window_make_drawable(wmWindowManager *wm, wmWindow *win)
static wmOperatorStatus wm_call_pie_menu_exec(bContext *C, wmOperator *op)
static void radial_control_paint_curve(uint pos, Brush *br, float radius, int line_segments)
static void radial_control_status(bContext *C, const RadialControl *radial_control)
const char * BKE_main_blendfile_path(const Main *bmain) ATTR_NONNULL()
@ PREVIEW_FILTER_GEOMETRY
@ PREVIEW_FILTER_COLLECTION
@ PREVIEW_FILTER_MATERIAL
static void WM_OT_call_panel(wmOperatorType *ot)
void RNA_property_int_set(PointerRNA *ptr, PropertyRNA *prop, int value)
void immBindBuiltinProgram(GPUBuiltinShader shader_id)
void imm_draw_circle_wire_2d(uint shdr_pos, float x, float y, float radius, int nsegments)
std::string RNA_pointer_as_string_id(bContext *C, PointerRNA *ptr)
PropertyType RNA_property_type(PropertyRNA *prop)
PointerRNA WM_operator_properties_create(const char *opstring)
static wmOperatorStatus wm_call_pie_menu_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void WM_OT_read_factory_userpref(wmOperatorType *ot)
const EnumPropertyItem * RNA_image_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
void BKE_curvemapping_init(CurveMapping *cumap)
wmOperatorStatus WM_operator_call_ex(bContext *C, wmOperator *op, const bool store)
wmOperatorStatus WM_operator_props_popup_call(bContext *C, wmOperator *op, const wmEvent *)
static ui::Block * wm_operator_ui_create(bContext *C, ARegion *region, void *user_data)
std::string WM_operator_pystring_ex(bContext *C, wmOperator *op, const bool all_args, const bool macro_args, wmOperatorType *ot, PointerRNA *opptr)
void WM_operator_view3d_unit_defaults(bContext *C, wmOperator *op)
void BLF_size(int fontid, float size)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
wmOperatorStatus wm_window_close_exec(bContext *C, wmOperator *)
void WM_OT_recover_last_session(wmOperatorType *ot)
const EnumPropertyItem * RNA_image_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
void IMB_freeImBuf(ImBuf *ibuf)
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
void IDP_ClearProperty(IDProperty *prop)
void RNA_property_string_set(PointerRNA *ptr, PropertyRNA *prop, const char *value)
static bool redraw_timer_poll(bContext *C)
static void radial_control_set_value(RadialControl *rc, float val)
StructRNA * RNA_property_pointer_type(PointerRNA *ptr, PropertyRNA *prop)
static void radial_control_update_header(wmOperator *op, bContext *C)
void * MEM_new_zeroed(size_t len, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1) ATTR_NONNULL(2)
void immVertex2f(uint attr_id, float x, float y)
@ PROP_STRING_SEARCH_SORT
@ PROP_STRING_SEARCH_SUGGESTION
void ED_undo_redo(bContext *C)
@ GPU_TEXTURE_USAGE_SHADER_READ
static bool wm_operator_winactive_normal(bContext *C)
@ SEARCH_TYPE_SINGLE_MENU
static wmOperatorStatus wm_call_panel_exec(bContext *C, wmOperator *op)
Image * BKE_image_load_exists(Main *bmain, const char *filepath, bool check_open=true, bool *r_exists=nullptr)
void WM_OT_revert_mainfile(wmOperatorType *ot)
void BLI_remlink(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void WM_OT_id_linked_relocate(wmOperatorType *ot)
void BKE_report(ReportList *reports, eReportType type, const char *message)
BMesh const char void * data
std::string RNA_pointer_as_string_keywords(bContext *C, PointerRNA *ptr, const bool as_function, const bool all_args, const bool nested_args, const int max_prop_length)
static void WM_OT_operator_defaults(wmOperatorType *ot)
wmOperatorStatus WM_operator_confirm_message_ex(bContext *C, wmOperator *op, const char *title, const int icon, const char *message, const wm::OpCallContext)
bool WM_jobs_has_running(const wmWindowManager *window_manager, const void *owner, const eWM_JobType type, const eWM_JobFlag exclude_flags)
const EnumPropertyItem * RNA_scene_without_sequencer_scene_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
bool RNA_property_is_set_ex(PointerRNA *ptr, PropertyRNA *prop, bool use_ghost)
static void dialog_exec_cb(bContext *C, wmOpPopUp *data, ui::Block *block)
void RNA_def_property_string_search_func_runtime(PropertyRNA *prop, StringPropertySearchFunc search_fn, const eStringPropertySearchFlag search_flag)
wmOperatorStatus WM_menu_invoke_ex(bContext *C, wmOperator *op, wm::OpCallContext opcontext)
void WM_progress_set(wmWindow *win, float progress)
@ GPU_SHADER_3D_IMAGE_COLOR
@ GPU_SHADER_3D_UNIFORM_COLOR
wmWindowManager * CTX_wm_manager(const bContext *C)
void initNumInput(NumInput *n)
wmOperatorStatus WM_operator_repeat(bContext *C, wmOperator *op)
void ED_undo_pop(bContext *C)
void WM_OT_read_userpref(wmOperatorType *ot)
void wm_window_keymap(wmKeyConfig *keyconf)
Object * CTX_data_edit_object(const bContext *C)
void ED_undo_push(bContext *C, const char *str, UndoEncodeHints hints=UndoEncodeHints(0))
const EnumPropertyItem * RNA_mask_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
void WM_menutype_idname_visit_for_search(const bContext *, PointerRNA *, PropertyRNA *, const char *, FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
bool WM_operator_properties_id_lookup_is_set(PointerRNA *ptr)
static ui::Block * wm_enum_search_menu(bContext *C, ARegion *region, void *arg)
void GPU_texture_swizzle_set(gpu::Texture *texture, const char swizzle[4])
void GPU_texture_filter_mode(gpu::Texture *texture, bool use_filter)
void WM_operator_last_properties_ensure(wmOperatorType *ot, PointerRNA *ptr)
void wm_quit_with_optional_confirmation_prompt(bContext *C, wmWindow *win)
char char size_t BLI_strncpy_rlen(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
const EnumPropertyItem rna_enum_stereo3d_display_items[]
PreviewImage * BKE_previewimg_id_ensure(ID *id)
int RNA_property_flag(PropertyRNA *prop)
void GPU_matrix_rotate_3f(float deg, float x, float y, float z)
static void dialog_cancel_cb(bContext *C, wmOpPopUp *data, ui::Block *block)
wmOperatorStatus WM_operator_props_popup(bContext *C, wmOperator *op, const wmEvent *)
void immUniformColor4f(float r, float g, float b, float a)
bool void BLI_path_rel(char path[FILE_MAX], const char *basepath) ATTR_NONNULL(1)
bool WM_operator_last_properties_init(wmOperator *op)
const EnumPropertyItem * RNA_scene_local_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
static void WM_OT_previews_clear(wmOperatorType *ot)
static bool rna_id_enum_filter_single_and_assets(const ID *id, void *user_data)
static void WM_OT_window_new(wmOperatorType *ot)
float ED_scene_grid_scale(const Scene *scene, const char **r_grid_unit)
PanelType * WM_paneltype_find(const StringRef idname, bool quiet)
wmKeyMap * WM_keymap_ensure(wmKeyConfig *keyconf, const char *idname, int spaceid, int regionid)
float ED_view3d_grid_scale(const Scene *scene, const View3D *v3d, const char **r_grid_unit)
static void radial_control_paint_tex(RadialControl *rc, float radius, float alpha)
bool ED_operator_regionactive(bContext *C)
bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier)
PointerRNA RNA_pointer_create_discrete(ID *id, StructRNA *type, void *data)
wmOperatorStatus WM_operator_redo_popup(bContext *C, wmOperator *op)
int BKE_image_path_ext_from_imformat_ensure(char *filepath, size_t filepath_maxncpy, const ImageFormatData *im_format)
void(*) MEM_printmemlist_stats()
void immBindTexture(const char *name, gpu::Texture *tex)
void ED_area_status_text(ScrArea *area, const char *str)
static void WM_OT_call_menu(wmOperatorType *ot)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
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)
void WM_OT_clear_recent_projects(wmOperatorType *ot)
wmOperatorStatus wm_window_new_main_exec(bContext *C, wmOperator *op)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
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 CTX_wm_region_popup_set(bContext *C, ARegion *region_popup)
std::string RNA_path_property_py(const PointerRNA *ptr, PropertyRNA *prop, int index)
void wm_stereo3d_set_draw(bContext *, wmOperator *op)
void WM_OT_save_mainfile(wmOperatorType *ot)
void GIZMOGROUP_OT_gizmo_select(wmOperatorType *ot)
static wmOperatorStatus previews_ensure_exec(bContext *C, wmOperator *)
void WM_OT_save_userpref(wmOperatorType *ot)
wmOperatorStatus WM_generic_select_modal(bContext *C, wmOperator *op, const wmEvent *event)
void GPU_matrix_translate_2f(float x, float y)
bool(*)(bContext *C) wmPaintCursorPoll
CLG_LogRef * WM_LOG_OPERATORS
FileSelectParams * ED_fileselect_get_active_params(const SpaceFile *sfile)
void BLF_draw(int fontid, const char *str, size_t str_len, ResultBLF *r_info=nullptr) ATTR_NONNULL(2)
uint GPU_vertformat_attr_add(GPUVertFormat *format, StringRef name, gpu::VertAttrType type)
void BKE_main_id_tag_all(Main *mainvar, int tag, bool value)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)
void WM_event_drag_start_mval(const wmEvent *event, const ARegion *region, int r_mval[2])
bool RNA_struct_system_idprops_unset(PointerRNA *ptr, const char *identifier)
static std::string wm_call_menu_get_description(bContext *, wmOperatorType *, PointerRNA *ptr)
wmPaintCursor * WM_paint_cursor_activate(short space_type, short region_type, wmPaintCursorPoll poll, wmPaintCursorDraw draw, void *customdata)
void BLI_str_tolower_ascii(char *str, size_t len) ATTR_NONNULL(1)
bool applyNumInput(NumInput *n, float *vec)
static ui::Block * wm_block_dialog_create(bContext *C, ARegion *region, void *user_data)
static wmOperatorStatus redraw_timer_exec(bContext *C, wmOperator *op)
bool RNA_struct_is_ID(const StructRNA *type)
void wm_exit_schedule_delayed(const bContext *C)
void(*)(bContext *C, const int2 &xy, const float2 &tilt, void *customdata) wmPaintCursorDraw
static void WM_OT_quit_blender(wmOperatorType *ot)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
static wmOperatorStatus doc_view_manual_ui_context_exec(bContext *C, wmOperator *)
void RNA_property_int_ui_range(PointerRNA *ptr, PropertyRNA *prop, int *softmin, int *softmax, int *step)
float BKE_brush_curve_strength_clamped(const Brush *br, float p, float len)
ListBaseT< LinkData > CTX_data_dir_get_ex(const bContext *C, bool use_store, bool use_rna, bool use_all)
wmOperatorStatus WM_operator_props_popup_confirm_ex(bContext *C, wmOperator *op, const wmEvent *, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message)
float RNA_property_float_get(PointerRNA *ptr, PropertyRNA *prop)
static void WM_OT_search_operator(wmOperatorType *ot)
void wm_stereo3d_set_cancel(bContext *, wmOperator *op)
const EnumPropertyItem * RNA_scene_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
PropertySubType RNA_property_subtype(PropertyRNA *prop)
static wmOperatorStatus asset_shelf_popover_invoke(bContext *C, wmOperator *op, const wmEvent *)
SpaceLink * CTX_wm_space_data(const bContext *C)
static void previews_id_ensure(bContext *C, Scene *scene, ID *id)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)
wmEventHandler_Op * WM_event_add_modal_handler(bContext *C, wmOperator *op)
static int radial_control_get_properties(bContext *C, wmOperator *op)
static const EnumPropertyItem redraw_timer_type_items[]
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag 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)
bool wm_stereo3d_set_check(bContext *, wmOperator *)
bool WM_operator_idname_ok_or_report(ReportList *reports, const char *idname)
static const char * wm_context_member_from_ptr(const bContext *C, const PointerRNA *ptr, bool *r_is_id)
static wmOperatorStatus memory_statistics_exec(bContext *, wmOperator *)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
float RNA_property_float_get_default(PointerRNA *ptr, PropertyRNA *prop)
bool WM_operator_winactive(bContext *C)
const EnumPropertyItem rna_enum_stereo3d_interlace_type_items[]
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
Main * CTX_data_main(const bContext *C)
wmOperatorStatus wm_stereo3d_set_exec(bContext *C, wmOperator *op)
static void WM_OT_previews_ensure(wmOperatorType *ot)
void BLI_dial_free(Dial *dial)
std::optional< std::string > RNA_path_full_property_py(const PointerRNA *ptr, PropertyRNA *prop, int index)
static void radial_control_cancel(bContext *C, wmOperator *op)
void IDP_FreeProperty(IDProperty *prop)
void WM_paint_cursor_remove_by_type(wmWindowManager *wm, wmPaintCursorDraw draw_fn, void(*free)(void *))
static wmOperatorStatus wm_debug_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
static void wm_block_redo_cb(bContext *C, void *arg_op, int)
void WM_OT_read_homefile(wmOperatorType *ot)
bool BKE_brush_has_cube_tip(const Brush *brush, PaintMode paint_mode)
void WM_OT_save_auto_save(wmOperatorType *ot)
MINLINE float max_ff(float a, float b)
void GPU_texture_free(gpu::Texture *texture)
void outputNumInput(NumInput *n, char *str, const UnitSettings &unit_settings)
static void WM_OT_redraw_timer(wmOperatorType *ot)
const EnumPropertyItem rna_enum_stereo3d_anaglyph_type_items[]
static ui::Block * wm_block_search_menu(bContext *C, ARegion *region, void *userdata)
static wmOperatorStatus wm_operator_props_popup_ex(bContext *C, wmOperator *op, const bool do_call, const bool do_redo, std::optional< std::string > title=std::nullopt, std::optional< std::string > confirm_text=std::nullopt, const bool cancel_default=false, std::optional< std::string > message=std::nullopt)
static void WM_OT_stereo3d_set(wmOperatorType *ot)
static void WM_OT_call_asset_shelf_popover(wmOperatorType *ot)
bool RNA_enum_description(const EnumPropertyItem *item, const int value, const char **r_description)
wmOperatorStatus WM_operator_name_call_ptr(bContext *C, wmOperatorType *ot, wm::OpCallContext context, PointerRNA *properties, const wmEvent *event)
ID_Type GS(const char *name)
static wmOperatorStatus wm_operator_defaults_exec(bContext *C, wmOperator *op)
static bool rna_id_enum_filter_single(const ID *id, void *user_data)
void BKE_main_id_tag_listbase(ListBaseT< ID > *lb, int tag, bool value)
Dial * BLI_dial_init(const float start_position[2], float threshold)
static void gesture_circle_modal_keymap(wmKeyConfig *keyconf)
wmOperator * WM_operator_last_redo(const bContext *C)
void wm_operator_register(bContext *C, wmOperator *op)
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)
void WM_modalkeymap_assign(wmKeyMap *km, const char *opname)
static wmOperatorStatus wm_search_menu_exec(bContext *, wmOperator *)
double BLI_time_now_seconds()
static bool operator_idname_ok_or_report_impl(ReportList *reports, const char *idname, FunctionRef< std::string()> error_prefix_fn)
wmOperatorStatus WM_enum_search_invoke(bContext *C, wmOperator *op, const wmEvent *)
void GPU_texture_unbind(gpu::Texture *texture)
void GIZMOGROUP_OT_gizmo_tweak(wmOperatorType *ot)
static void wm_operator_ui_popup_cancel(bContext *C, void *user_data)
void RNA_property_boolean_set(PointerRNA *ptr, PropertyRNA *prop, bool value)
static void wm_operator_ui_popup_ok(bContext *C, void *arg, int retval)
bool WM_operator_properties_default(PointerRNA *ptr, const bool do_update)
Scene * CTX_data_scene(const bContext *C)
void ED_screen_refresh(bContext *C, wmWindowManager *wm, wmWindow *win)
bScreen * CTX_wm_screen(const bContext *C)
static wmOperatorStatus wm_exit_blender_exec(bContext *C, wmOperator *)
void CTX_wm_region_set(bContext *C, ARegion *region)
static void WM_OT_window_fullscreen_toggle(wmOperatorType *ot)
void WM_OT_recover_auto_save(wmOperatorType *ot)
wmKeyMap * WM_modalkeymap_ensure(wmKeyConfig *keyconf, const char *idname, const EnumPropertyItem *items)
void RNA_property_float_ui_range(PointerRNA *ptr, PropertyRNA *prop, float *softmin, float *softmax, float *step, float *precision)
float BLI_dial_angle(Dial *dial, const float current_position[2])
void GPU_blend(GPUBlend blend)
void wm_event_do_refresh_wm_and_depsgraph(bContext *C)
void wm_draw_update(bContext *C)
std::string RNA_string_get(PointerRNA *ptr, const char *name)
static void radial_control_set_initial_mouse(RadialControl *rc, const wmEvent *event)
MINLINE float len_v2(const float v[2]) ATTR_WARN_UNUSED_RESULT
LibraryForeachIDCallbackFlag
@ IDWALK_CB_EMBEDDED_NOT_OWNING
size_t BLI_strlen_utf8(const char *strc) ATTR_NONNULL(1) ATTR_WARN_UNUSED_RESULT
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
ReportList * CTX_wm_reports(const bContext *C)
int WM_userdef_event_type_from_keymap_type(int kmitype)
bool WM_event_drag_test_with_delta(const wmEvent *event, const int drag_delta[2])
void BLF_width_and_height(int fontid, const char *str, size_t str_len, float *r_width, float *r_height) ATTR_NONNULL()
bool WM_operator_check_ui_enabled(const bContext *C, const char *idname)
int RNA_property_int_get(PointerRNA *ptr, PropertyRNA *prop)
void immUniformColor3fvAlpha(const float rgb[3], float a)
bool WM_operator_last_properties_store(wmOperator *op)
void imm_draw_circle_fill_2d(uint shdr_pos, float x, float y, float radius, int nsegments)
bScreen * WM_window_get_active_screen(const wmWindow *win)
void WM_cursor_wait(bool val)
MINLINE int min_ii(int a, int b)
static void WM_OT_radial_control(wmOperatorType *ot)
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)
size_t WM_operator_py_idname(char *dst, const char *src)
void WM_OT_splash(wmOperatorType *ot)
void BKE_library_foreach_ID_link(Main *bmain, ID *id, FunctionRef< LibraryIDLinkCallback > callback, void *user_data, LibraryForeachIDFlag flag)
ARegion * CTX_wm_region(const bContext *C)
void ED_workspace_status_text(bContext *C, const char *str)
static void wm_block_redo_cancel_cb(bContext *C, void *arg_op)
PaintMode BKE_paintmode_get_active_from_context(const bContext *C)
bool ED_undo_is_valid(const bContext *C, const char *undoname)
wmOperatorStatus WM_operator_confirm_or_exec(bContext *C, wmOperator *op, const wmEvent *)
float RNA_float_get(PointerRNA *ptr, const char *name)
static std::string wm_call_panel_get_name(wmOperatorType *ot, PointerRNA *ptr)
void WM_OT_lib_relocate(wmOperatorType *ot)
PointerRNA CTX_data_pointer_get_type(const bContext *C, const char *member, StructRNA *type)
bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop)
bool WM_operator_filesel_ensure_ext_imtype(wmOperator *op, const ImageFormatData *im_format)
static void WM_OT_memory_statistics(wmOperatorType *ot)
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)
View3D * CTX_wm_view3d(const bContext *C)
void WM_event_add_fileselect(bContext *C, wmOperator *op)
gpu::Texture * GPU_texture_create_2d(const char *name, int width, int height, int mip_len, gpu::TextureFormat format, eGPUTextureUsage usage, const float *data)
wmOperatorStatus WM_operator_confirm_message(bContext *C, wmOperator *op, const char *message)
void BLF_color4fv(int fontid, const float rgba[4])
const char * RNA_property_ui_name(const PropertyRNA *prop, const PointerRNA *ptr)
static void radial_control_paint_cursor(bContext *C, const int2 &, const float2 &, void *customdata)
void WM_OT_read_history(wmOperatorType *ot)
std::string RNA_property_as_string(bContext *C, PointerRNA *ptr, PropertyRNA *prop, int index, int max_prop_length)
void ED_area_tag_redraw(ScrArea *area)
static int previews_id_ensure_callback(LibraryIDLinkCallbackData *cb_data)
MINLINE float clamp_f(float value, float min, float max)
bool WM_paint_cursor_end(wmPaintCursor *handle)
void CTX_wm_area_set(bContext *C, ScrArea *area)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
bke::ARegionRuntime * runtime
struct CurveMapping * curve_distance_falloff
ListBaseT< struct IDProperty > group
const float * float_data() const
LibraryForeachIDCallbackFlag cb_flag
ListBaseT< Collection > collections
ListBaseT< Light > lights
ListBaseT< World > worlds
ListBaseT< Material > materials
ListBaseT< Object > objects
ListBaseT< Image > images
ListBaseT< Scene > scenes
ListBaseT< Tex > textures
char translation_context[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
PropertyRNA * fill_col_override_test_prop
StructRNA * image_id_srna
PointerRNA fill_col_override_ptr
PropertyRNA * fill_col_prop
int initial_radial_center[2]
ListBaseT< wmPaintCursor > orig_paintcursors
PropertyRNA * fill_col_override_prop
PointerRNA fill_col_override_test_ptr
ListBaseT< ARegion > regionbase
ListBaseT< EditBone > * edbo
struct EditBone * act_edbone
ListBaseT< struct ScrArea > areabase
void enabled_set(bool enabled)
void label_multiline(StringRefNull label, int icon, FontStyleAlign align=UI_STYLE_TEXT_LEFT, int max_lines=0)
void operator_context_set(wm::OpCallContext opcontext)
Layout & split(float percentage, bool align)
Layout & column(bool align)
void op_enum(StringRefNull opname, StringRefNull propname, IDProperty *properties, wm::OpCallContext context, eUI_Item_Flag flag, const int active=-1)
void separator(float factor=1.0f, LayoutSeparatorType type=LayoutSeparatorType::Auto)
IDProperty * last_properties
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) check(bContext *C, wmOperator *op)
void(*) cancel(bContext *C, wmOperator *op)
ListBaseT< wmOperatorTypeMacro > macro
const char * translation_context
void(*) ui(bContext *C, wmOperator *op)
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) modal(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
std::string(*) get_description(bContext *C, wmOperatorType *ot, PointerRNA *ptr)
std::string(*) get_name(wmOperatorType *ot, PointerRNA *ptr)
ListBaseT< wmOperator > macro
struct ReportList * reports
struct wmOperatorType * type
#define ISMOUSE_MOTION(event_type)
#define IS_EVENT_IME_ANY(event_type)
#define CTX_TEST_PTR_ID_CAST(C, member, member_full, cast, idptr)
#define ID_CAST_SCENEWORLD(id_pt)
#define CTX_TEST_PTR_ID(C, member, idptr)
#define ID_CAST_OBDATA(id_pt)
#define TEST_PTR_DATA_TYPE_FROM_CONTEXT(member, rna_type, rna_ptr)
#define ID_CAST_OBMATACT(id_pt)
#define WM_RADIAL_CONTROL_DISPLAY_WIDTH
#define TEST_PTR_DATA_TYPE(member, rna_type, rna_ptr, dataptr_cmp)
#define WM_RADIAL_CONTROL_DISPLAY_MIN_SIZE
#define WM_RADIAL_MAX_STR
#define WM_RADIAL_CONTROL_DISPLAY_SIZE