32static void rna_WorkSpaceTool_setup(
ID *
id,
39 const char *gizmo_group,
41 const char *data_block,
42 const char *op_idname,
45 const char *idname_fallback,
46 const char *keymap_fallback)
56 tref_rt.
index = index;
67static void rna_WorkSpaceTool_refresh_from_context(
ID *
id,
bToolRef *tref,
Main *bmain)
94 if (gzgt !=
nullptr) {
112 func =
RNA_def_function(srna,
"status_text_set_internal",
"ED_workspace_status_text");
115 func,
"Set the status bar text, typically key shortcuts for modal operators");
117 func,
"text",
nullptr, 0,
"Text",
"New string for the status bar, None clears the text");
133 "Allow this tool to use brushes via the asset system"},
134 {0,
nullptr, 0,
nullptr,
nullptr},
156 RNA_def_int(func,
"index", 0, INT_MIN, INT_MAX,
"Index",
"", INT_MIN, INT_MAX);
163 func =
RNA_def_function(srna,
"operator_properties",
"rna_WorkSpaceTool_operator_properties");
174 srna,
"gizmo_group_properties",
"rna_WorkSpaceTool_gizmo_group_properties");
179 parm =
RNA_def_pointer(func,
"result",
"GizmoGroupProperties",
"",
"");
183 func =
RNA_def_function(srna,
"refresh_from_context",
"rna_WorkSpaceTool_refresh_from_context");
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
#define STRNCPY(dst, src)
Object is a sort of wrapper for general info.
@ TOOLREF_FLAG_FALLBACK_KEYMAP
@ TOOLREF_FLAG_USE_BRUSHES
constexpr PointerRNA PointerRNA_NULL
CCL_NAMESPACE_BEGIN struct Options options
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_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_enum_default(PropertyRNA *prop, int value)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
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 RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_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)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
const EnumPropertyItem rna_enum_dummy_NULL_items[]
const EnumPropertyItem rna_enum_window_cursor_items[]
void RNA_api_workspace_tool(StructRNA *srna)
void RNA_api_workspace(StructRNA *srna)
wmGizmoGroupType * WM_gizmogrouptype_find(const char *idname, bool quiet)
wmOperatorType * WM_operatortype_find(const char *idname, bool quiet)