26static int rna_UndoStack_steps_length(
PointerRNA *ptr)
44static int rna_UndoStack_active_index_get(
PointerRNA *ptr)
56static void rna_UndoStep_name_get(
PointerRNA *ptr,
char *value)
62static int rna_UndoStep_name_length(
PointerRNA *ptr)
65 return strlen(us->name);
68static int rna_UndoStep_type_get(
PointerRNA *ptr)
74 int index = 0, type_index = 0;
92 int totitem = 0,
index = 0;
97 tmp.identifier = ut->identifier;
98 tmp.name = ut->identifier;
108static bool rna_UndoStep_is_substep_get(
PointerRNA *ptr)
128 prop,
"rna_UndoStep_name_get",
"rna_UndoStep_name_length",
nullptr);
142 "If true, this is a sub-step and should not be shown to the user "
143 "for undo/redo selection as it is not accessible on its own");
152 "rna_UndoStack_steps_begin",
153 "rna_iterator_listbase_next",
154 "rna_iterator_listbase_end",
155 "rna_UndoStack_steps_get",
156 "rna_UndoStack_steps_length",
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_enum_item_add(EnumPropertyItem **items, int *totitem, const EnumPropertyItem *item)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
@ STRUCT_NO_DATABLOCK_IDPROPERTIES
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier_c_str, int type, int subtype)
int BLI_findindex(const ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL(1
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
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_property_int_funcs(PropertyRNA *prop, const char *get, const char *set, const char *range)
bool BKE_undosys_type_foreach(FunctionRef< bool(const UndoType *ut)> fn)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
const EnumPropertyItem rna_enum_dummy_DEFAULT_items[]
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
int BLI_listbase_count(const ListBase *listbase) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void * rna_iterator_listbase_get(CollectionPropertyIterator *iter)
void RNA_def_struct_flag(StructRNA *srna, StructFlag flag)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
PointerRNA RNA_pointer_create_with_parent(const PointerRNA &parent, StructRNA *type, void *data)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, PointerRNA *ptr, ListBase *lb, IteratorSkipFunc skip)
void RNA_def_undo(BlenderRNA *brna)