44 typedef void (*CommitNotifyCallback)(
void *p_ud,
const String& p_name);
48 typedef void (*MethodNotifyCallback)(
void *p_ud,
Object*p_base,
const StringName& p_name,VARIANT_ARG_DECLARE);
49 typedef void (*PropertyNotifyCallback)(
void *p_ud,
Object*p_base,
const StringName& p_property,
const Variant& p_value);
82 void _pop_history_tail();
87 CommitNotifyCallback callback;
89 void* method_callbck_ud;
90 void* prop_callback_ud;
92 MethodNotifyCallback method_callback;
93 PropertyNotifyCallback property_callback;
97 static void _bind_methods();
101 void create_action(
const String& p_name=
"",
bool p_mergeable=
false);
103 void add_do_method(
Object *p_object,
const String& p_method,VARIANT_ARG_LIST);
104 void add_undo_method(
Object *p_object,
const String& p_method,VARIANT_ARG_LIST);
107 void add_do_reference(
Object *p_object);
108 void add_undo_reference(
Object *p_object);
110 void commit_action();
114 String get_current_action_name()
const;
115 void clear_history();
117 void set_max_steps(
int p_max_steps);
118 int get_max_steps()
const;
120 uint64_t get_version()
const;
122 void set_commit_notify_callback(CommitNotifyCallback p_callback,
void* p_ud);
124 void set_method_notify_callback(MethodNotifyCallback p_method_callback,
void* p_ud);
125 void set_property_notify_callback(PropertyNotifyCallback p_property_callback,
void* p_ud);
131 #endif // UNDO_REDO_H
Definition: string_db.h:48
Definition: variant.h:379
Definition: undo_redo.h:38