43 static void rna_WorkSpaceTool_setup(
ID *
id,
50 const char *gizmo_group,
51 const char *data_block,
52 const char *op_idname,
54 const char *idname_fallback,
55 const char *keymap_fallback)
64 tref_rt.
index = index;
74 static void rna_WorkSpaceTool_refresh_from_context(
ID *
id,
bToolRef *tref,
Main *bmain)
119 func =
RNA_def_function(srna,
"status_text_set_internal",
"ED_workspace_status_text");
122 func,
"Set the status bar text, typically key shortcuts for modal operators");
124 func,
"text",
NULL, 0,
"Text",
"New string for the status bar, None clears the text");
148 RNA_def_int(func,
"index", 0, INT_MIN, INT_MAX,
"Index",
"", INT_MIN, INT_MAX);
154 func =
RNA_def_function(srna,
"operator_properties",
"rna_WorkSpaceTool_operator_properties");
165 srna,
"gizmo_group_properties",
"rna_WorkSpaceTool_gizmo_group_properties");
170 parm =
RNA_def_pointer(func,
"result",
"GizmoGroupProperties",
"",
"");
174 func =
RNA_def_function(srna,
"refresh_from_context",
"rna_WorkSpaceTool_refresh_from_context");
void BKE_reportf(ReportList *reports, ReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
#define STRNCPY(dst, src)
Object is a sort of wrapper for general info.
const PointerRNA PointerRNA_NULL
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)