Blender
V2.93
source
blender
blenkernel
BKE_blender_undo.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*/
16
#pragma once
17
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
26
struct
Main
;
27
struct
MemFileUndoData
;
28
struct
bContext
;
29
30
enum
eUndoStepDir
;
31
32
#define BKE_UNDO_STR_MAX 64
33
34
struct
MemFileUndoData
*
BKE_memfile_undo_encode
(
struct
Main
*bmain,
35
struct
MemFileUndoData
*mfu_prev);
36
bool
BKE_memfile_undo_decode
(
struct
MemFileUndoData
*mfu,
37
const
enum
eUndoStepDir
undo_direction,
38
const
bool
use_old_bmain_data,
39
struct
bContext
*
C
);
40
void
BKE_memfile_undo_free
(
struct
MemFileUndoData
*mfu);
41
42
#ifdef __cplusplus
43
}
44
#endif
BKE_memfile_undo_encode
struct MemFileUndoData * BKE_memfile_undo_encode(struct Main *bmain, struct MemFileUndoData *mfu_prev)
Definition:
blender_undo.c:114
BKE_memfile_undo_free
void BKE_memfile_undo_free(struct MemFileUndoData *mfu)
Definition:
blender_undo.c:153
BKE_memfile_undo_decode
bool BKE_memfile_undo_decode(struct MemFileUndoData *mfu, const enum eUndoStepDir undo_direction, const bool use_old_bmain_data, struct bContext *C)
Definition:
blender_undo.c:65
eUndoStepDir
eUndoStepDir
Definition:
BKE_undo_system.h:99
C
#define C
Definition:
RandGen.cpp:39
Main
Definition:
BKE_main.h:116
MemFileUndoData
Definition:
BLO_undofile.h:62
bContext
Definition:
context.c:69
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1