72static void rna_WorkSpace_owner_ids_remove(
WorkSpace *workspace,
80 "wmOwnerID '%s' not in workspace '%s'",
92static void rna_WorkSpace_owner_ids_clear(
WorkSpace *workspace)
104static void rna_WorkSpace_asset_library_set(
PointerRNA *
ptr,
int value)
129 return rna_WorkSpace_tools_from_tkey(workspace, &key, create);
139 return rna_WorkSpace_tools_from_tkey(workspace, &key, create);
142static bToolRef *rna_WorkSpace_tools_from_space_node(
WorkSpace *workspace,
bool create)
147 return rna_WorkSpace_tools_from_tkey(workspace, &key, create);
156 return rna_WorkSpace_tools_from_tkey(workspace, &key, create);
175static bool rna_WorkSpaceTool_use_paint_canvas_get(
PointerRNA *
ptr)
187static bool rna_WorkSpaceTool_has_datablock_get(
PointerRNA *
ptr)
193static bool rna_WorkSpaceTool_use_brushes_get(
PointerRNA *
ptr)
212 if (
ptr->type == &RNA_WorkSpaceTool) {
223 -1,
"ANY", 0,
"Any",
"Do not limit this tool to a specific brush type"};
237static void rna_WorkSpaceTool_widget_get(
PointerRNA *
ptr,
char *value)
285 parm =
RNA_def_string(func,
"name",
"Name", 0,
"",
"New name for the tag");
296 parm =
RNA_def_pointer(func,
"owner_id",
"wmOwnerID",
"",
"Tag to remove");
361 "If the tool uses brushes and is limited to a specific brush type, the "
362 "identifier of the brush type");
365 prop,
"rna_WorkSpaceTool_brush_type_get",
nullptr,
"rna_WorkSpaceTool_brush_type_itemf");
373 prop,
"rna_WorkSpaceTool_widget_get",
"rna_WorkSpaceTool_widget_length",
nullptr);
392 srna,
"from_space_view3d_mode",
"rna_WorkSpace_tools_from_space_view3d_mode");
402 srna,
"from_space_image_mode",
"rna_WorkSpace_tools_from_space_image_mode");
411 func =
RNA_def_function(srna,
"from_space_node",
"rna_WorkSpace_tools_from_space_node");
419 srna,
"from_space_sequencer",
"rna_WorkSpace_tools_from_space_sequencer");
437 srna,
"Workspace",
"Workspace data-block, defining the working environment for the user");
445 "rna_workspace_screens_begin",
448 "rna_workspace_screens_item_get",
469 prop,
"Object Mode",
"Switch to this object mode when activating the workspace");
475 "Remember the last used scene for the workspace and switch to it "
476 "whenever this workspace is activated again");
487 srna,
"rna_WorkSpace_asset_library_get",
"rna_WorkSpace_asset_library_set");
490 "Active asset library to show in the UI, not used by the Asset Browser "
491 "(which has its own active asset library)");
503 prop,
"Sync Active Scene",
"Set the active scene and time based on the current scene strip");
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
void void BLI_freelistN(ListBase *listbase) ATTR_NONNULL(1)
void BLI_addtail(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
bool BLI_remlink_safe(ListBase *listbase, void *vlink) ATTR_NONNULL(1)
char * STRNCPY(char(&dst)[N], const char *src)
@ WORKSPACE_USE_FILTER_BY_ORIGIN
@ WORKSPACE_SYNC_SCENE_TIME
@ WORKSPACE_USE_PIN_SCENE
@ TOOLREF_FLAG_USE_BRUSHES
bool ED_image_paint_brush_type_use_canvas(bContext *C, bToolRef *tref)
#define ND_ASSET_LIST_READING
void * MEM_callocN(size_t len, const char *str)
void MEM_freeN(void *vmemh)
int library_reference_to_enum_value(const AssetLibraryReference *library)
AssetLibraryReference library_reference_from_enum_value(int value)
void sync_active_scene_and_time_with_scene_strip(bContext &C)
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, ListBase *lb, IteratorSkipFunc skip)
void * rna_iterator_listbase_get(CollectionPropertyIterator *iter)
PointerRNA RNA_id_pointer_create(ID *id)
PropertyRNA * rna_def_asset_library_reference_common(StructRNA *srna, const char *get, const char *set)
const EnumPropertyItem rna_enum_context_mode_items[]
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t booleanbit)
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_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
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_property_flag(PropertyRNA *prop, PropertyFlag flag)
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)