30 static void rna_WorkSpaceTool_setup(
ID *
id,
37 const char *gizmo_group,
38 const char *data_block,
39 const char *op_idname,
42 const char *idname_fallback,
43 const char *keymap_fallback)
52 tref_rt.
index = index;
63 static void rna_WorkSpaceTool_refresh_from_context(
ID *
id,
bToolRef *tref,
Main *bmain)
108 func =
RNA_def_function(srna,
"status_text_set_internal",
"ED_workspace_status_text");
111 func,
"Set the status bar text, typically key shortcuts for modal operators");
113 func,
"text",
NULL, 0,
"Text",
"New string for the status bar, None clears the text");
142 RNA_def_int(func,
"index", 0, INT_MIN, INT_MAX,
"Index",
"", INT_MIN, INT_MAX);
149 func =
RNA_def_function(srna,
"operator_properties",
"rna_WorkSpaceTool_operator_properties");
160 srna,
"gizmo_group_properties",
"rna_WorkSpaceTool_gizmo_group_properties");
165 parm =
RNA_def_pointer(func,
"result",
"GizmoGroupProperties",
"",
"");
169 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
CCL_NAMESPACE_BEGIN struct Options options
const PointerRNA PointerRNA_NULL
PropertyRNA * RNA_def_enum_flag(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, 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)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
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_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_string(StructOrFunctionRNA *cont_, const char *identifier, const char *default_value, int maxlen, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
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)