74static void rna_WorkSpace_owner_ids_remove(
WorkSpace *workspace,
82 "wmOwnerID '%s' not in workspace '%s'",
94static void rna_WorkSpace_owner_ids_clear(
WorkSpace *workspace)
106static void rna_WorkSpace_asset_library_set(
PointerRNA *
ptr,
int value)
131 return rna_WorkSpace_tools_from_tkey(workspace, &key, create);
141 return rna_WorkSpace_tools_from_tkey(workspace, &key, create);
144static bToolRef *rna_WorkSpace_tools_from_space_node(
WorkSpace *workspace,
bool create)
149 return rna_WorkSpace_tools_from_tkey(workspace, &key, create);
158 return rna_WorkSpace_tools_from_tkey(workspace, &key, create);
177static bool rna_WorkSpaceTool_use_paint_canvas_get(
PointerRNA *
ptr)
189static bool rna_WorkSpaceTool_has_datablock_get(
PointerRNA *
ptr)
195static bool rna_WorkSpaceTool_use_brushes_get(
PointerRNA *
ptr)
214 if (
ptr->
type == &RNA_WorkSpaceTool) {
225 -1,
"ANY", 0,
"Any",
"Donnot limit this tool to a specific brush type"};
239static void rna_WorkSpaceTool_widget_get(
PointerRNA *
ptr,
char *value)
282 parm =
RNA_def_string(func,
"name",
"Name", 0,
"",
"New name for the tag");
293 parm =
RNA_def_pointer(func,
"owner_id",
"wmOwnerID",
"",
"Tag to remove");
358 "If the tool uses brushes and is limited to a specific brush type, the "
359 "identifier of the brush type");
362 prop,
"rna_WorkSpaceTool_brush_type_get",
nullptr,
"rna_WorkSpaceTool_brush_type_itemf");
370 prop,
"rna_WorkSpaceTool_widget_get",
"rna_WorkSpaceTool_widget_length",
nullptr);
389 srna,
"from_space_view3d_mode",
"rna_WorkSpace_tools_from_space_view3d_mode");
399 srna,
"from_space_image_mode",
"rna_WorkSpace_tools_from_space_image_mode");
408 func =
RNA_def_function(srna,
"from_space_node",
"rna_WorkSpace_tools_from_space_node");
416 srna,
"from_space_sequencer",
"rna_WorkSpace_tools_from_space_sequencer");
434 srna,
"Workspace",
"Workspace data-block, defining the working environment for the user");
442 "rna_workspace_screens_begin",
445 "rna_workspace_screens_item_get",
466 prop,
"Object Mode",
"Switch to this object mode when activating the workspace");
472 "Remember the last used scene for the workspace and switch to it "
473 "whenever this workspace is activated again");
484 srna,
"rna_WorkSpace_asset_library_get",
"rna_WorkSpace_asset_library_set");
487 "Active asset library to show in the UI, not used by the Asset Browser "
488 "(which has its own active asset library)");
const EnumPropertyItem * BKE_paint_get_tool_enum_from_paintmode(PaintMode mode)
PaintMode BKE_paintmode_get_active_from_context(const bContext *C)
PaintMode BKE_paintmode_get_from_tool(const bToolRef *tref)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
bScreen * BKE_workspace_layout_screen_get(const WorkSpaceLayout *layout) GETTER_ATTRS
bool BLI_remlink_safe(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
void void BLI_freelistN(struct ListBase *listbase) ATTR_NONNULL(1)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define STRNCPY(dst, src)
Object is a sort of wrapper for general info.
@ WORKSPACE_USE_FILTER_BY_ORIGIN
@ WORKSPACE_USE_PIN_SCENE
@ TOOLREF_FLAG_USE_BRUSHES
bool ED_image_paint_brush_type_use_canvas(bContext *C, bToolRef *tref)
#define RNA_POINTER_INVALIDATE(ptr)
#define ND_ASSET_LIST_READING
void MEM_freeN(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
int library_reference_to_enum_value(const AssetLibraryReference *library)
AssetLibraryReference library_reference_from_enum_value(int value)
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, ListBase *lb, IteratorSkipFunc skip)
PointerRNA rna_pointer_inherit_refine(const PointerRNA *ptr, StructRNA *type, void *data)
void * rna_iterator_listbase_get(CollectionPropertyIterator *iter)
PropertyRNA * rna_def_asset_library_reference_common(StructRNA *srna, const char *get, const char *set)
const EnumPropertyItem rna_enum_context_mode_items[]
void RNA_enum_items_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_def_struct_name_property(StructRNA *srna, PropertyRNA *prop)
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_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_parameter_clear_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_define_verify_sdna(bool verify)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
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_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
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)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_enum_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_def_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
const EnumPropertyItem * rna_WorkSpaceTool_brush_type_itemf(bContext *C, PointerRNA *ptr, PropertyRNA *prop, bool *r_free)
void RNA_api_workspace_tool(StructRNA *srna)
void RNA_api_workspace(StructRNA *srna)
const EnumPropertyItem rna_enum_workspace_object_mode_items[]
const EnumPropertyItem rna_enum_dummy_DEFAULT_items[]
const EnumPropertyItem rna_enum_space_type_items[]
const EnumPropertyItem rna_enum_space_sequencer_view_type_items[]
const EnumPropertyItem rna_enum_space_image_mode_all_items[]
static void rna_def_workspace_tool(BlenderRNA *brna)
static void rna_def_workspace_owner_ids(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_workspace_tools(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_workspace_owner(BlenderRNA *brna)
void RNA_def_workspace(BlenderRNA *brna)
static void rna_def_workspace(BlenderRNA *brna)
AssetLibraryReference asset_library_ref
void WM_main_add_notifier(uint type, void *reference)