12 .description(
"The region-space mouse X location, in pixels, increasing from 0 at the left");
15 "The region-space mouse Y location, in pixels, increasing from 0 at the bottom");
17 .description(
"The total X size of the region in pixels");
19 .description(
"The total Y size of the region in pixels");
31 params.
set_output(
"Region Width"_ustr, size.x);
32 params.
set_output(
"Region Height"_ustr, size.y);
39 ntype.
ui_name =
"Mouse Position";
40 ntype.
ui_description =
"Retrieve the position of the mouse cursor";
#define GEO_NODE_TOOL_MOUSE_POSITION
#define NOD_REGISTER_NODE(REGISTER_FUNC)
GeoNodesUserData * user_data() const
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
static void node_geo_exec(GeoNodeExecParams params)
void search_link_ops_for_tool_node(GatherLinkSearchOpParams ¶ms)
bool check_tool_context_and_error(GeoNodeExecParams ¶ms)
VecBase< int32_t, 2 > int2
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare
GeoNodesOperatorData * operator_data
const GeoNodesCallData * call_data