Blender V5.3
text_undo.cc File Reference
#include <cerrno>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_text_types.h"
#include "BLI_array_store.hh"
#include "BLI_array_utils_c.hh"
#include "BKE_context.hh"
#include "BKE_main.hh"
#include "BKE_text.h"
#include "BKE_undo_system.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_screen.hh"
#include "ED_text.hh"
#include "ED_undo.hh"
#include "text_intern.hh"

Go to the source code of this file.

Classes

struct  blender::TextState
struct  blender::TextUndoStep

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Utilities
UndoStep * blender::ED_text_undo_push_init (bContext *C)

Implements ED Undo System

#define ARRAY_CHUNK_SIZE   128
static struct  blender::g_text_buffers = {nullptr}
static void blender::text_state_encode (TextState *state, Text *text, BArrayStore *buffer_store)
static void blender::text_state_decode (TextState *state, Text *text)
static size_t blender::text_undosys_step_encode_to_state (TextState *state, Text *text)
static bool blender::text_undosys_poll (bContext *)
static void blender::text_undosys_step_encode_init (bContext *C, UndoStep *us_p)
static bool blender::text_undosys_step_encode (bContext *C, Main *, UndoStep *us_p)
static void blender::text_undosys_step_decode (bContext *C, Main *, UndoStep *us_p, const eUndoStepDir dir, bool is_final)
static void blender::text_undosys_step_free (UndoStep *us_p)
static void blender::text_undosys_foreach_ID_ref (UndoStep *us_p, UndoTypeForEachIDRefFn foreach_ID_ref_fn, void *user_data)
void blender::ED_text_undosys_type (UndoType *ut)

Macro Definition Documentation

◆ ARRAY_CHUNK_SIZE

#define ARRAY_CHUNK_SIZE   128

Definition at line 39 of file text_undo.cc.