MeshLib C Docs
Loading...
Searching...
No Matches
MRHistoryAction.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref; // Defined in `#include <MRCMisc/std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref.h>`.
14typedef struct MR_std_pair_bool_int MR_std_pair_bool_int; // Defined in `#include <MRCMisc/std_pair_bool_int.h>`.
15typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
16typedef struct MR_std_vector_std_shared_ptr_MR_HistoryAction MR_std_vector_std_shared_ptr_MR_HistoryAction; // Defined in `#include <MRCMisc/std_vector_std_shared_ptr_MR_HistoryAction.h>`.
17
18
24
76
79
82
87
92
97
101
105
118
119#ifdef __cplusplus
120} // extern "C"
121#endif
struct MR_HistoryAction MR_HistoryAction
Definition MRChangeColoringActions.h:14
struct MR_std_vector_std_shared_ptr_MR_HistoryAction MR_std_vector_std_shared_ptr_MR_HistoryAction
Definition MRCombinedHistoryAction.h:17
struct MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref
Definition MRCombinedHistoryAction.h:15
struct MR_std_string MR_std_string
Definition MRCtm.h:32
MR_HistoryAction_Type
Definition MRHistoryAction.h:20
@ MR_HistoryAction_Type_Undo
Definition MRHistoryAction.h:21
@ MR_HistoryAction_Type_Redo
Definition MRHistoryAction.h:22
MRC_API void MR_HistoryAction_action(MR_HistoryAction *_this, MR_HistoryAction_Type actionType)
MRC_API void MR_HistoryAction_Destroy(const MR_HistoryAction *_this)
Destroys a heap-allocated instance of MR_HistoryAction. Does nothing if the pointer is null.
MRC_API MR_std_pair_bool_int * MR_filterHistoryActionsVector(MR_std_vector_std_shared_ptr_MR_HistoryAction *historyVector, MR_PassBy filteringCondition_pass_by, MR_std_function_bool_from_const_std_shared_ptr_MR_HistoryAction_ref *filteringCondition, const MR_uint64_t *firstRedoIndex, const bool *deepFiltering)
Remove actions from history actions vector that match the condition.
MRC_API void MR_HistoryAction_DestroyArray(const MR_HistoryAction *_this)
Destroys a heap-allocated array of MR_HistoryAction. Does nothing if the pointer is null.
MRC_API const MR_HistoryAction * MR_HistoryAction_OffsetPtr(const MR_HistoryAction *ptr, ptrdiff_t i)
MRC_API MR_uint64_t MR_HistoryAction_heapBytes(const MR_HistoryAction *_this)
MRC_API MR_HistoryAction * MR_HistoryAction_OffsetMutablePtr(MR_HistoryAction *ptr, ptrdiff_t i)
struct MR_std_pair_bool_int MR_std_pair_bool_int
Definition MRHistoryAction.h:14
MRC_API MR_std_string * MR_HistoryAction_name(const MR_HistoryAction *_this)
MR_PassBy
Definition common.h:23
uint64_t MR_uint64_t
Definition common.h:18
#define MRC_API
Definition include/MRCMisc/exports.h:11