11#include <fmt/format.h>
88 if (win.
scene != scene) {
112 rctf frame_inside = {
113 node.runtime->draw_bounds.xmin,
114 node.runtime->draw_bounds.xmax,
115 node.runtime->draw_bounds.ymin,
116 node.runtime->draw_bounds.ymax,
148 switch (
node->type_legacy) {
204 if (
node && deselect_node) {
239 bool changed =
false;
240 for (
bNode *
node : node_tree.all_nodes()) {
253 for (
bNode *
node : node_tree.all_nodes()) {
261 if (deselect_nodes) {
283 for (
bNode *
node : node_tree.all_nodes()) {
291 if (deselect_nodes) {
308 node_tree.ensure_topology_cache();
310 for (
bNode *input_node : node_tree.nodes_by_type(zone_type->input_idname)) {
311 if (
bNode *output_node = zone_type->get_corresponding_output(node_tree, *input_node)) {
312 if (input_node->is_selected()) {
315 if (output_node->is_selected()) {
326 for (
bNode *
node : node_tree.all_nodes()) {
327 if (
node->is_selected()) {
331 return selected_nodes;
344 bool changed =
false;
345 for (
bNode *
node : node_tree.all_nodes()) {
346 if (!
node->is_selected()) {
358 bool changed =
false;
359 for (
bNode *
node : node_tree.all_nodes()) {
360 if (!
node->is_selected()) {
372 bool changed =
false;
373 const uint delims[] = {
'.',
'-',
'_',
'\0'};
374 size_t pref_len_act, pref_len_curr;
375 const char *sep, *suf_act, *suf_curr;
378 node_act.
name,
nullptr, delims, &sep, &suf_act, from_right);
381 if (from_right && !(sep && suf_act)) {
383 suf_act = node_act.
name;
386 for (
bNode *
node : node_tree.all_nodes()) {
387 if (
node->is_selected()) {
391 node->name,
nullptr, delims, &sep, &suf_curr, from_right);
394 if (from_right && !(sep && suf_curr)) {
396 suf_curr =
node->name;
399 if ((from_right &&
STREQ(suf_act, suf_curr)) ||
400 (!from_right && (pref_len_act == pref_len_curr) &&
424 if (node_act ==
nullptr) {
428 bool changed =
false;
471 {0,
nullptr, 0,
nullptr,
nullptr},
475 ot->
name =
"Select Grouped";
476 ot->
description =
"Select nodes with similar properties";
477 ot->
idname =
"NODE_OT_select_grouped";
492 "Extend selection instead of deselecting everything first");
511 bool active_texture_changed =
false;
513 for (
bNode *node_iter : node_tree.all_nodes()) {
514 if (node_iter != &
node) {
537 if (!socket->is_icon_visible()) {
540 const float socket_y = socket->runtime->location.y;
544 best_socket = socket;
554 if (io_panel.header_toggle_socket() == &io_socket) {
555 item_to_activate = &io_panel.
item;
558 item_to_activate = &io_socket.
item;
561 item.set_selected(
false);
568 const bNode &group_input_node,
572 tree.ensure_topology_cache();
573 tree.ensure_interface_cache();
575 group_input_node.output_sockets().drop_back(1), cursor.y);
576 if (!indicated_socket) {
579 const int group_input_i = indicated_socket->index();
585 const bNode &group_output_node,
588 tree.ensure_topology_cache();
589 tree.ensure_interface_cache();
591 group_output_node.input_sockets().drop_back(1), cursor.y);
592 if (!indicated_socket) {
595 const int group_output_i = indicated_socket->index();
618 bool changed =
false;
620 bool node_was_selected =
false;
632 node = &sock->owner_node();
634 node_was_selected =
node->is_selected();
644 node = &sock->owner_node();
646 node_was_selected =
node->is_selected();
665 for (
bNode *tnode : node_tree.all_nodes()) {
669 for (
bNodeSocket *tsock : tnode->output_sockets()) {
686 found = (
node !=
nullptr);
687 node_was_selected =
node &&
node->is_selected();
722 if (
node->is_group_input()) {
725 if (
node->is_group_output()) {
734 if (
node ==
nullptr) {
737 if (
const std::optional<viewer_path::ViewerPathForGeometryNodesViewer> parsed_path =
751 if (!(changed || found)) {
755 bool active_texture_changed =
false;
756 bool viewer_node_changed =
false;
814 ot->
idname =
"NODE_OT_select";
815 ot->
description =
"Select the node under the cursor";
847 "Deactivate geometry nodes viewer when clicking in empty space");
872 for (
bNode *
node : node_tree.all_nodes()) {
873 bool is_inside =
false;
875 switch (
node->type_legacy) {
921 ot->
name =
"Box Select";
922 ot->
idname =
"NODE_OT_select_box";
923 ot->
description =
"Use box selection to select nodes";
941 "Only activate when mouse is not over a node (useful for tweak gesture)");
979 for (
bNode *
node : node_tree.all_nodes()) {
980 switch (
node->type_legacy) {
985 const float radius_adjusted =
float(radius) / zoom;
986 BLI_rctf_pad(&frame_inside, -2.0f * radius_adjusted, -2.0f * radius_adjusted);
1012 ot->
name =
"Circle Select";
1013 ot->
idname =
"NODE_OT_select_circle";
1014 ot->
description =
"Use circle selection to select nodes";
1056 bool changed =
false;
1067 for (
bNode *
node : node_tree.all_nodes()) {
1072 switch (
node->type_legacy) {
1095 ®ion->
v2d, center.x, center.y, &screen_co.x, &screen_co.y) &&
1133 ot->
name =
"Lasso Select";
1134 ot->
description =
"Select nodes using lasso selection";
1135 ot->
idname =
"NODE_OT_select_lasso";
1152 "Only activate when mouse is not over a node (useful for tweak gesture)");
1166 for (
const bNode *
node : node_tree.all_nodes()) {
1167 if (
node->is_selected()) {
1179 node_tree.ensure_topology_cache();
1193 for (
bNode *
node : node_tree.all_nodes()) {
1201 for (
bNode *
node : node_tree.all_nodes()) {
1217 ot->
name =
"(De)select All";
1219 ot->
idname =
"NODE_OT_select_all";
1242 node_tree.ensure_topology_cache();
1248 if (!output_socket->is_available()) {
1251 for (
bNodeSocket *input_socket : output_socket->directly_linked_sockets()) {
1252 if (!input_socket->is_available()) {
1269 ot->
name =
"Select Linked To";
1270 ot->
description =
"Select nodes linked to the selected ones";
1271 ot->
idname =
"NODE_OT_select_linked_to";
1292 node_tree.ensure_topology_cache();
1298 if (!input_socket->is_available()) {
1301 for (
bNodeSocket *output_socket : input_socket->directly_linked_sockets()) {
1302 if (!output_socket->is_available()) {
1319 ot->
name =
"Select Linked From";
1320 ot->
description =
"Select nodes linked from the selected ones";
1321 ot->
idname =
"NODE_OT_select_linked_from";
1349 if (active_node ==
nullptr) {
1354 node_tree.ensure_topology_cache();
1355 if (node_tree.all_nodes().size() == 1) {
1362 int new_index =
index;
1364 new_index += (prev ? -1 : 1);
1373 bNode *new_active_node = node_tree.all_nodes()[toposort[new_index]->index()];
1374 if (new_active_node == active_node) {
1391 ot->
name =
"Activate Same Type Next/Prev";
1392 ot->
description =
"Activate and view same node type, step by step";
1393 ot->
idname =
"NODE_OT_select_same_type_step";
1414 if (label ==
node.name) {
1417 return fmt::format(
"{} ({})", label,
node.name);
1422 return fmt::format(
"{}: \"{}\" ({})",
TIP_(
"Input"), socket.
name,
node.name);
1427 return fmt::format(
"{}: \"{}\" ({})",
TIP_(
"String"),
str,
node.name);
1442 type_name =
TIP_(
"Node Group");
1444 return fmt::format(
"{}: \"{}\" ({})", type_name,
BKE_id_name(
id),
node.name);
1463 std::string search_str;
1474 search.
add(search_str, &scope.
construct<Item>(Item{&node, search_str}));
1478 ntree.ensure_topology_cache();
1481 search.
add(name, &scope.
construct<Item>(Item{node, name}));
1483 if (
node->is_type(
"FunctionNodeInputString"_ustr)) {
1489 search.
add(search_str, &scope.
construct<Item>(Item{node, search_str}));
1492 if (
node->is_group_input()) {
1493 for (
const bNodeSocket *socket :
node->output_sockets().drop_back(1)) {
1494 if (!socket->is_directly_linked()) {
1499 search.
add(search_str, &scope.
construct<Item>(Item{node, search_str}));
1504 const bool skip_data_block =
1508 if (!skip_data_block) {
1509 add_data_block_item(*
node,
node->id);
1516 search.
add(search_str, &scope.
construct<Item>(Item{node, search_str}));
1522 switch (socket->type) {
1524 if (socket->is_logically_linked()) {
1530 if (!value_str.is_empty()) {
1533 search.
add(search_str, &scope.
construct<Item>(Item{node, search_str}));
1538 add_data_block_item(
1543 add_data_block_item(
1549 add_data_block_item(
1555 add_data_block_item(
1560 add_data_block_item(
1565 add_data_block_item(
1570 add_data_block_item(
1575 add_data_block_item(
1580 add_data_block_item(
1591 for (
const Item *item : filtered_items) {
1592 if (!search_item_add(items, item->search_str, item->node, ICON_NONE, 0, 0)) {
1615 static char search[256] =
"";
1626 but = uiDefSearchBut(
1627 block, search, ICON_VIEWZOOM,
sizeof(search), 0, 0, box_width,
UI_UNIT_Y,
"");
1628 button_func_search_set(
1647 std::array<int, 2> bounds_offset = {0, -
UI_UNIT_Y};
1664 ot->
name =
"Find Node";
1665 ot->
description =
"Search for a node by name and focus and select it";
1666 ot->
idname =
"NODE_OT_find_node";
Object groups, one object can be in many groups at once.
Object is a sort of wrapper for general info.
#define SEL_OP_USE_PRE_DESELECT(sel_op)
#define UI_SEARCHBOX_BOUNDS
#define BLI_assert_unreachable()
#define STREQLEN(a, b, n)
constexpr bool contains(int64_t value) const
T & construct(Args &&...args)
constexpr int64_t first_index(const T &search_value) const
constexpr IndexRange index_range() const
static constexpr int64_t not_found
constexpr bool is_empty() const
NodeTreeLog * get_main_tree_log(const bke::bNodeTreeZone *zone) const
void foreach_tree_log(FunctionRef< void(NodeTreeLog &)> callback) const
static ContextualNodeTreeLogs get_contextual_tree_logs(const SpaceNode &snode)
void add(const StringRef str, T *user_data, const int weight=0)
Vector< T * > query(const StringRef query) const
#define storage(slot, qualifiers)
float distance(float, float) RET
std::string node_label(const bNodeTree &ntree, const bNode &node)
bNode * node_get_active(bNodeTree &ntree)
Span< const bNodeZoneType * > all_zone_types()
bool node_set_selected(bNode &node, bool select)
static bool has_workbench_in_texture_color(const wmWindowManager *wm, const Scene *scene, const Object *ob)
static std::string node_find_create_warning(const bNode &node, const nodes::NodeWarning warning)
static bool node_select_grouped_type(bNodeTree &node_tree, bNode &node_act)
rctf node_frame_rect_inside(const SpaceNode &snode, const bNode &node)
void node_deselect_all_input_sockets(bNodeTree &node_tree, bool deselect_nodes)
static void node_find_exec_fn(bContext *C, void *, void *arg2)
void NODE_OT_select_circle(wmOperatorType *ot)
static bool is_position_over_node_or_socket(SpaceNode &snode, ARegion ®ion, const float2 &mouse)
void tree_draw_order_update(bNodeTree &ntree)
static wmOperatorStatus node_find_node_invoke(bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus node_box_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
bool space_node_view_flag(bContext &C, SpaceNode &snode, ARegion ®ion, int node_flag, int smooth_viewtx)
static bool node_mouse_select(bContext *C, wmOperator *op, const int2 mval, const SelectPick_Params ¶ms)
static wmOperatorStatus node_select_linked_from_exec(bContext *C, wmOperator *)
static bool do_lasso_select_node(bContext *C, const Span< int2 > mcoords, eSelectOp sel_op)
static wmOperatorStatus node_box_select_exec(bContext *C, wmOperator *op)
static wmOperatorStatus node_lasso_select_exec(bContext *C, wmOperator *op)
void node_select_paired(bNodeTree &node_tree)
static wmOperatorStatus node_select_grouped_exec(bContext *C, wmOperator *op)
void NODE_OT_find_node(wmOperatorType *ot)
@ NODE_SELECT_GROUPED_SUFIX
@ NODE_SELECT_GROUPED_TYPE
@ NODE_SELECT_GROUPED_PREFIX
@ NODE_SELECT_GROUPED_COLOR
void NODE_OT_select_lasso(wmOperatorType *ot)
bool node_deselect_all(bNodeTree &node_tree)
void node_socket_select(bNode *node, bNodeSocket &sock)
bNodeSocket * node_find_indicated_socket(SpaceNode &snode, ARegion ®ion, const float2 &cursor, const eNodeSocketInOut in_out)
void NODE_OT_select(wmOperatorType *ot)
static std::string node_find_create_node_label(const bNodeTree &ntree, const bNode &node)
static bool node_select_grouped_name(bNodeTree &node_tree, bNode &node_act, const bool from_right)
Array< bNode * > tree_draw_order_calc_nodes_reversed(bNodeTree &ntree)
static void node_socket_toggle(bNode *node, bNodeSocket &sock, bool deselect_node)
static bool nodes_are_same_type_for_select(const bNode &a, const bNode &b)
static wmOperatorStatus node_select_same_type_step_exec(bContext *C, wmOperator *op)
static wmOperatorStatus node_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void node_socket_deselect(bNode *node, bNodeSocket &sock, bool deselect_node)
void NODE_OT_select_grouped(wmOperatorType *ot)
static void node_find_update_fn(const bContext *C, void *, const char *str, ui::SearchItems *items, const bool)
static void activate_interface_socket(bNodeTree &tree, bNodeTreeInterfaceSocket &io_socket)
bNode * node_under_mouse_get(const SpaceNode &snode, const float2 mouse)
static void handle_group_output_node_selection(bNodeTree &tree, const bNode &group_output_node, const float2 &cursor)
VectorSet< bNode * > get_selected_nodes(bNodeTree &node_tree)
void NODE_OT_select_linked_from(wmOperatorType *ot)
void node_deselect_all_output_sockets(bNodeTree &node_tree, bool deselect_nodes)
static wmOperatorStatus node_select_exec(bContext *C, wmOperator *op)
void NODE_OT_select_same_type_step(wmOperatorType *ot)
void node_select_single(bContext &C, bNode &node)
static std::string node_find_create_string_value(const bNode &node, const StringRef str)
static bool node_select_grouped_color(bNodeTree &node_tree, bNode &node_act)
void NODE_OT_select_linked_to(wmOperatorType *ot)
static bool any_node_selected(const bNodeTree &node_tree)
bool node_or_socket_isect_event(const bContext &C, const wmEvent &event)
static wmOperatorStatus node_circleselect_exec(bContext *C, wmOperator *op)
static wmOperatorStatus node_select_all_exec(bContext *C, wmOperator *op)
static ui::Block * node_find_menu(bContext *C, ARegion *region, void *arg_optype)
static bool is_event_over_node_or_socket(const bContext &C, const wmEvent &event)
static bool node_frame_select_isect_mouse(const SpaceNode &snode, const bNode &node, const float2 &mouse)
static wmOperatorStatus node_select_linked_to_exec(bContext *C, wmOperator *)
static std::string node_find_create_group_input_label(const bNode &node, const bNodeSocket &socket)
void NODE_OT_select_box(wmOperatorType *ot)
void NODE_OT_select_all(wmOperatorType *ot)
static std::string node_find_create_data_block_value(const bNode &node, const ID &id)
static wmOperatorStatus node_lasso_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static const bNodeSocket * find_socket_at_mouse_y(const Span< const bNodeSocket * > sockets, const float view_y)
static void handle_group_input_node_selection(bNodeTree &tree, const bNode &group_input_node, const float2 &cursor)
void activate_geometry_node(Main &bmain, SpaceNode &snode, bNode &node, std::optional< int > item_identifier=std::nullopt)
std::optional< ViewerPathForGeometryNodesViewer > parse_geometry_nodes_viewer(const ViewerPath &viewer_path)
T distance(const T &a, const T &b)
T max(const T &a, const T &b)
StringRefNull node_warning_type_name(const NodeWarningType type)
@ BLOCK_THEME_STYLE_POPUP
void popup_block_invoke(bContext *C, BlockCreateFunc func, void *arg, FreeArgFunc arg_free, StructRNA *srna_owner=nullptr)
int searchbox_size_x_guess(const bContext *C, const ButtonSearchUpdateFn update_fn, void *arg)
void view2d_region_to_view(const View2D *v2d, float x, float y, float *r_view_x, float *r_view_y) ATTR_NONNULL()
bool view2d_view_to_region_clip(const View2D *v2d, float x, float y, int *r_region_x, int *r_region_y) ATTR_NONNULL()
void view2d_region_to_view_rctf(const View2D *v2d, const rctf *rect_src, rctf *rect_dst) ATTR_NONNULL()
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
std::string ED_select_circle_get_name(wmOperatorType *ot, PointerRNA *ptr)
wmOperatorStatus WM_menu_invoke(bContext *C, wmOperator *op, const wmEvent *)
bool ED_operator_node_active(bContext *C)
void WM_operator_properties_gesture_circle(wmOperatorType *ot)
int RNA_enum_get(PointerRNA *ptr, const char *name)
wmOperatorStatus WM_gesture_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
wmOperatorStatus WM_operator_flag_only_pass_through_on_press(wmOperatorStatus retval, const wmEvent *event)
eSelectOp ED_select_op_modal(eSelectOp sel_op, bool is_first)
WorkSpace * CTX_wm_workspace(const bContext *C)
Depsgraph * CTX_data_depsgraph_pointer(const bContext *C)
void ED_node_set_active(Main *bmain, SpaceNode *snode, bNodeTree *ntree, bNode *node, bool *r_active_texture_changed)
void WM_gesture_lasso_cancel(bContext *C, wmOperator *op)
int WM_operator_smooth_viewtx_get(const 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)
PropertyRNA * RNA_def_int_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const int *default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
int RNA_int_get(PointerRNA *ptr, const char *name)
bool BLI_rctf_isect_circle(const struct rctf *rect, const float xy[2], float radius)
bool ED_view3d_has_workbench_in_texture_color(const Scene *scene, const Object *ob, const View3D *v3d)
bScreen * BKE_workspace_active_screen_get(const WorkSpaceInstanceHook *hook) GETTER_ATTRS
wmOperatorStatus WM_gesture_lasso_modal(bContext *C, wmOperator *op, const wmEvent *event)
const char * BKE_id_name(const ID &id)
bool BLI_lasso_is_point_inside(Span< int2 > mcoords, int sx, int sy, int error_value)
void BLI_rctf_rcti_copy(struct rctf *dst, const struct rcti *src)
void WM_operator_properties_select_all(wmOperatorType *ot)
void WM_operator_properties_border_to_rctf(wmOperator *op, rctf *r_rect)
void RNA_int_set_array(PointerRNA *ptr, const char *name, const int *values)
const IDTypeInfo * BKE_idtype_get_info_from_id(const ID *id)
VecBase< int32_t, 2 > int2
VecBase< float, 2 > float2
void DEG_id_tag_update(ID *id, unsigned int flags)
void RNA_int_get_array(PointerRNA *ptr, const char *name, int *values)
wmWindowManager * CTX_wm_manager(const bContext *C)
bool BLI_rctf_isect_pt(const struct rctf *rect, float x, float y)
void BKE_main_ensure_invariants(Main &bmain, std::optional< Span< ID * > > modified_ids=std::nullopt)
wmOperatorStatus WM_gesture_circle_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void WM_operator_properties_mouse_select(wmOperatorType *ot)
bool BLI_rctf_inside_rctf(const rctf *rct_a, const rctf *rct_b)
SpaceNode * CTX_wm_space_node(const bContext *C)
void WM_operator_properties_gesture_box(wmOperatorType *ot)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
BLI_INLINE int BLI_rcti_size_x(const struct rcti *rct)
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])
void DEG_id_tag_update_for_side_effect_request(Depsgraph *depsgraph, ID *id, unsigned int flags)
wmOperatorStatus WM_gesture_box_modal(bContext *C, wmOperator *op, const wmEvent *event)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
MINLINE bool compare_v3v3(const float v1[3], const float v2[3], float limit) ATTR_WARN_UNUSED_RESULT
Main * CTX_data_main(const bContext *C)
wmOperatorStatus WM_gesture_lasso_invoke(bContext *C, wmOperator *op, const wmEvent *event)
BLI_INLINE float BLI_rctf_size_x(const struct rctf *rct)
bool BLI_rctf_isect(const struct rctf *src1, const struct rctf *src2, struct rctf *dest)
void ED_node_set_active_viewer_key(SpaceNode *snode)
BLI_INLINE float BLI_rctf_cent_y(const struct rctf *rct)
size_t size_t size_t BLI_str_partition_ex_utf8(const char *str, const char *end, const unsigned int delim[], const char **r_sep, const char **r_suf, bool from_right) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1
ID_Type GS(const char *name)
Array< int2 > WM_gesture_lasso_path_to_array(bContext *, wmOperator *op)
void WM_gesture_box_cancel(bContext *C, wmOperator *op)
void WM_operator_properties_select_operation_simple(wmOperatorType *ot)
Scene * CTX_data_scene(const bContext *C)
@ OPTYPE_DEPENDS_ON_CURSOR
bool BLI_rcti_isect_pt(const struct rcti *rect, int x, int y)
bool WM_gesture_is_modal_first(const wmGesture *gesture)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
SelectPick_Params ED_select_pick_params_from_operator(PointerRNA *ptr) ATTR_NONNULL(1)
void BKE_viewer_path_clear(ViewerPath *viewer_path)
wmOperatorStatus WM_gesture_circle_modal(bContext *C, wmOperator *op, const wmEvent *event)
Object * CTX_data_active_object(const bContext *C)
std::string ED_select_pick_get_name(wmOperatorType *ot, PointerRNA *ptr)
ARegion * CTX_wm_region(const bContext *C)
void BLI_lasso_boundbox(rcti *rect, Span< int2 > mcoords)
BLI_INLINE float BLI_rctf_cent_x(const struct rctf *rct)
void BLI_rctf_pad(struct rctf *rect, float pad_x, float pad_y)
void WM_operator_properties_gesture_lasso(wmOperatorType *ot)
#define NODE_RESIZE_MARGIN
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
ListBaseT< SpaceLink > spacedata
struct bNodeTree * edittree
ed::space_node::SpaceNode_Runtime * runtime
struct Collection * value
bNodeTreeInterfaceItem item
bNodeTreeInterfaceItem item
bNodeTreeInterface tree_interface
bke::bNodeRuntime * runtime
ListBaseT< struct ScrArea > areabase
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void(*) cancel(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_name(wmOperatorType *ot, PointerRNA *ptr)
struct wmOperatorType * type
struct WorkSpaceInstanceHook * workspace_hook