Base API to create a custom undo event in a plug-in. More...
#include <HostUndoManager.h>
Classes | |
struct | Interface |
Public Member Functions | |
virtual BaseUndoEvent::Interface * | GetInterfacePointer () final |
virtual bool | Undo (Backend &in_backend)=0 |
Called when the user asks to undo an action. More... | |
virtual bool | Redo (Backend &in_backend)=0 |
Called when the user asks to redo an action. More... | |
virtual bool | GetName (const char **out_csName) const =0 |
Get the event name, to show after the "Undo " and "Redo " terms in the menu. More... | |
![]() | |
CUndoEvent::Instance * | GetInstancePointer () |
const CUndoEvent::Instance * | GetInstancePointer () const |
BaseUndoEvent () | |
virtual | ~BaseUndoEvent () |
![]() | |
virtual | ~ak_wwise_plugin_cpp_base_instance () |
Additional Inherited Members | |
![]() | |
enum | : InterfaceTypeValue { k_interfaceType = AK_WWISE_PLUGIN_INTERFACE_TYPE_UNDO_EVENT } |
The interface type, as provided by this plug-in. More... | |
enum | : InterfaceVersion { k_interfaceVersion = 1 } |
The interface version, as provided by this plug-in. More... | |
using | Interface = CUndoEvent |
Base API to create a custom undo event in a plug-in.
This is useful when you handle custom properties, not handled by Property Sets.
Undo events should be derived by your undo class, providing UndoEvent::Undo, UndoEvent::Redo and UndoEvent::GetName methods.
No pointer to the backend class should be kept inside the undo event, as the object can be deleted and recreated when the plug-in gets removed through undo. The backend will be recreated at that point, making the pointer invalid.
Backend | The plug-in backend type. |
Definition at line 327 of file HostUndoManager.h.
Questions? Problems? Need more info? Contact us, and we can help!
Visit our Support pageRegister your project and we'll help you get started with no strings attached!
Get started with Wwise