|
Blender V5.0
|
#include <BKE_undo_system.hh>
Public Attributes | |
| UndoType * | next |
| UndoType * | prev |
| const char * | name |
| bool(* | poll )(struct bContext *C) |
| void(* | step_encode_init )(bContext *C, UndoStep *us) |
| bool(* | step_encode )(bContext *C, Main *bmain, UndoStep *us) |
| void(* | step_decode )(bContext *C, 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 109 of file BKE_undo_system.hh.
| uint UndoType::flags |
Information for the generic undo system to refine handling of this specific undo type.
Definition at line 145 of file BKE_undo_system.hh.
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_text_undosys_type(), ED_undosys_type_grease_pencil(), blender::ed::sculpt_paint::undo::register_type(), undosys_step_iter_first(), blender::ed::curves::undosys_type_register(), and blender::ed::pointcloud::undosys_type_register().
| const char* UndoType::name |
Only for debugging.
Definition at line 112 of file BKE_undo_system.hh.
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_text_undosys_type(), ED_undosys_type_grease_pencil(), blender::ed::sculpt_paint::undo::register_type(), undosys_step_decode(), undosys_step_encode(), undosys_step_free_and_unlink(), blender::ed::curves::undosys_type_register(), and blender::ed::pointcloud::undosys_type_register().
| UndoType* UndoType::next |
Definition at line 110 of file BKE_undo_system.hh.
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 120 of file BKE_undo_system.hh.
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_text_undosys_type(), ED_undosys_type_grease_pencil(), blender::ed::sculpt_paint::undo::register_type(), blender::ed::curves::undosys_type_register(), and blender::ed::pointcloud::undosys_type_register().
| UndoType * UndoType::prev |
Definition at line 110 of file BKE_undo_system.hh.
| void(* UndoType::step_decode) (bContext *C, Main *bmain, UndoStep *us, eUndoStepDir dir, bool is_final) |
Definition at line 131 of file BKE_undo_system.hh.
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_text_undosys_type(), ED_undosys_type_grease_pencil(), blender::ed::sculpt_paint::undo::register_type(), undosys_step_decode(), blender::ed::curves::undosys_type_register(), and blender::ed::pointcloud::undosys_type_register().
Definition at line 130 of file BKE_undo_system.hh.
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_text_undosys_type(), ED_undosys_type_grease_pencil(), blender::ed::sculpt_paint::undo::register_type(), undosys_step_encode(), blender::ed::curves::undosys_type_register(), and blender::ed::pointcloud::undosys_type_register().
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 128 of file BKE_undo_system.hh.
Referenced by BKE_undosys_step_push_init_with_type(), ED_image_undosys_type(), ED_paintcurve_undosys_type(), ED_text_undosys_type(), and blender::ed::sculpt_paint::undo::register_type().
| void(* UndoType::step_foreach_ID_ref) (UndoStep *us, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data) |
Definition at line 140 of file BKE_undo_system.hh.
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(), ED_undosys_type_grease_pencil(), undosys_step_decode(), undosys_step_encode(), blender::ed::curves::undosys_type_register(), blender::ed::pointcloud::undosys_type_register(), and UNUSED_FUNCTION().
| void(* UndoType::step_free) (UndoStep *us) |
Definition at line 138 of file BKE_undo_system.hh.
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_text_undosys_type(), ED_undosys_type_grease_pencil(), blender::ed::sculpt_paint::undo::register_type(), undosys_step_free_and_unlink(), blender::ed::curves::undosys_type_register(), and blender::ed::pointcloud::undosys_type_register().
| 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.cc.
Definition at line 150 of file BKE_undo_system.hh.
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_text_undosys_type(), ED_undosys_type_grease_pencil(), blender::ed::sculpt_paint::undo::register_type(), blender::ed::curves::undosys_type_register(), and blender::ed::pointcloud::undosys_type_register().