Blender
V3.3
|
#include <BKE_undo_system.h>
Public Attributes | |
struct UndoType * | next |
struct UndoType * | prev |
const char * | name |
bool(* | poll )(struct bContext *C) |
void(* | step_encode_init )(struct bContext *C, UndoStep *us) |
bool(* | step_encode )(struct bContext *C, struct Main *bmain, UndoStep *us) |
void(* | step_decode )(struct bContext *C, struct Main *bmain, UndoStep *us, eUndoStepDir dir, bool is_final) |
void(* | step_free )(UndoStep *us) |
void(* | step_foreach_ID_ref )(UndoStep *us, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data) |
uint | flags |
size_t | step_size |
Definition at line 99 of file BKE_undo_system.h.
uint UndoType::flags |
Information for the generic undo system to refine handling of this specific undo type.
Definition at line 136 of file BKE_undo_system.h.
Referenced by BKE_undosys_step_push_with_type(), ED_armature_undosys_type(), ED_curve_undosys_type(), ED_font_undosys_type(), ED_image_undosys_type(), ED_lattice_undosys_type(), ED_mball_undosys_type(), ED_memfile_undosys_type(), ED_mesh_undosys_type(), ED_paintcurve_undosys_type(), ED_particle_undosys_type(), ED_sculpt_undosys_type(), ED_text_undosys_type(), and undosys_step_iter_first().
const char* UndoType::name |
Only for debugging.
Definition at line 102 of file BKE_undo_system.h.
Referenced by BKE_undosys_stack_init_or_active_with_type(), BKE_undosys_step_load_data_ex(), BKE_undosys_step_push_init_with_type(), BKE_undosys_step_push_with_type(), ED_armature_undosys_type(), ED_curve_undosys_type(), ED_font_undosys_type(), ED_image_undosys_type(), ED_lattice_undosys_type(), ED_mball_undosys_type(), ED_memfile_undosys_type(), ED_mesh_undosys_type(), ED_paintcurve_undosys_type(), ED_particle_undosys_type(), ED_sculpt_undosys_type(), ED_text_undosys_type(), undosys_step_decode(), undosys_step_encode(), and undosys_step_free_and_unlink().
struct UndoType* UndoType::next |
Definition at line 100 of file BKE_undo_system.h.
When NULL, we don't consider this undo type for context checks. Operators must explicitly set the undo type and handle adding the undo step. This is needed when tools operate on data which isn't the primary mode (eg, paint-curve in sculpt mode).
Definition at line 110 of file BKE_undo_system.h.
Referenced by ED_armature_undosys_type(), ED_curve_undosys_type(), ED_font_undosys_type(), ED_image_undosys_type(), ED_lattice_undosys_type(), ED_mball_undosys_type(), ED_memfile_undosys_type(), ED_mesh_undosys_type(), ED_paintcurve_undosys_type(), ED_particle_undosys_type(), ED_sculpt_undosys_type(), and ED_text_undosys_type().
struct UndoType * UndoType::prev |
Definition at line 100 of file BKE_undo_system.h.
void(* UndoType::step_decode) (struct bContext *C, struct Main *bmain, UndoStep *us, eUndoStepDir dir, bool is_final) |
Definition at line 121 of file BKE_undo_system.h.
Referenced by ED_armature_undosys_type(), ED_curve_undosys_type(), ED_font_undosys_type(), ED_image_undosys_type(), ED_lattice_undosys_type(), ED_mball_undosys_type(), ED_memfile_undosys_type(), ED_mesh_undosys_type(), ED_paintcurve_undosys_type(), ED_particle_undosys_type(), ED_sculpt_undosys_type(), ED_text_undosys_type(), and undosys_step_decode().
Definition at line 120 of file BKE_undo_system.h.
Referenced by ED_armature_undosys_type(), ED_curve_undosys_type(), ED_font_undosys_type(), ED_image_undosys_type(), ED_lattice_undosys_type(), ED_mball_undosys_type(), ED_memfile_undosys_type(), ED_mesh_undosys_type(), ED_paintcurve_undosys_type(), ED_particle_undosys_type(), ED_sculpt_undosys_type(), ED_text_undosys_type(), and undosys_step_encode().
None of these callbacks manage list add/removal.
Note that 'step_encode_init' is optional, some undo types need to perform operations before undo push finishes.
Definition at line 118 of file BKE_undo_system.h.
Referenced by BKE_undosys_step_push_init_with_type(), ED_image_undosys_type(), ED_paintcurve_undosys_type(), ED_sculpt_undosys_type(), and ED_text_undosys_type().
void(* UndoType::step_foreach_ID_ref) (UndoStep *us, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data) |
Definition at line 131 of file BKE_undo_system.h.
Referenced by BKE_undosys_step_push_with_type(), ED_armature_undosys_type(), ED_curve_undosys_type(), ED_font_undosys_type(), ED_image_undosys_type(), ED_lattice_undosys_type(), ED_mball_undosys_type(), ED_mesh_undosys_type(), ED_paintcurve_undosys_type(), ED_particle_undosys_type(), ED_text_undosys_type(), undosys_step_decode(), undosys_step_encode(), and UNUSED_FUNCTION().
Definition at line 129 of file BKE_undo_system.h.
Referenced by ED_armature_undosys_type(), ED_curve_undosys_type(), ED_font_undosys_type(), ED_image_undosys_type(), ED_lattice_undosys_type(), ED_mball_undosys_type(), ED_memfile_undosys_type(), ED_mesh_undosys_type(), ED_paintcurve_undosys_type(), ED_particle_undosys_type(), ED_sculpt_undosys_type(), ED_text_undosys_type(), and undosys_step_free_and_unlink().
size_t UndoType::step_size |
The size of the undo struct 'inherited' from UndoStep for that specific type. Used for generic allocation in BKE's undo_system.c
.
Definition at line 141 of file BKE_undo_system.h.
Referenced by BKE_undosys_step_push_init_with_type(), BKE_undosys_step_push_with_type(), ED_armature_undosys_type(), ED_curve_undosys_type(), ED_font_undosys_type(), ED_image_undosys_type(), ED_lattice_undosys_type(), ED_mball_undosys_type(), ED_memfile_undosys_type(), ED_mesh_undosys_type(), ED_paintcurve_undosys_type(), ED_particle_undosys_type(), ED_sculpt_undosys_type(), and ED_text_undosys_type().