#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
◆ MR_HistoryAction_Type
◆ MR_std_pair_bool_int
Stores two objects: bool and bool. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).
◆ MR_HistoryAction_Type
| Enumerator |
|---|
| MR_HistoryAction_Type_Undo | |
| MR_HistoryAction_Type_Redo | |
◆ MR_filterHistoryActionsVector()
Remove actions from history actions vector that match the condition.
- Parameters
-
| firstRedoIndex | - set redo index for calculate how many actions removed before it |
| deepFiltering | - filter actions into combined actions |
- Returns
- pair (anything removed, how many removed before firstRedoIndex) Generated from function MR::filterHistoryActionsVector. Parameter historyVector can not be null. It is a single object. Parameter firstRedoIndex has a default argument: 0, pass a null pointer to use it. Parameter deepFiltering has a default argument: true, pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call MR_std_pair_bool_int_Destroy() to free it when you're done using it.
◆ MR_HistoryAction_action()
This function is called on history action (undo, redo, etc.) Generated from method MR::HistoryAction::action. Parameter _this can not be null. It is a single object.
◆ MR_HistoryAction_Destroy()
Destroys a heap-allocated instance of MR_HistoryAction. Does nothing if the pointer is null.
◆ MR_HistoryAction_DestroyArray()
Destroys a heap-allocated array of MR_HistoryAction. Does nothing if the pointer is null.
◆ MR_HistoryAction_heapBytes()
returns the amount of memory this object occupies on heap Generated from method MR::HistoryAction::heapBytes. Parameter _this can not be null. It is a single object.
◆ MR_HistoryAction_name()
Generated from method MR::HistoryAction::name. Parameter _this can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy() to free it when you're done using it.
◆ MR_HistoryAction_OffsetMutablePtr()
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.
◆ MR_HistoryAction_OffsetPtr()
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.