Class which stores one saved state of the shape canvas. The instaces of this class are managed by the wxSFCanvasHistory class which performs all related Undo/Redo operations.
More...
#include <CanvasState.h>
Class which stores one saved state of the shape canvas. The instaces of this class are managed by the wxSFCanvasHistory class which performs all related Undo/Redo operations.
- See also
- wxSFShapeCanvas
◆ wxSFCanvasState() [1/2]
wxSFCanvasState::wxSFCanvasState |
( |
wxStreamBuffer * |
data | ) |
|
Constructor for 'histUSE_SERIALIZATION' mode.
- Parameters
-
data | Pointer to the stream buffer containig serialized content of the shape canvas |
◆ wxSFCanvasState() [2/2]
Constructor for 'histUSE_CLONING' mode.
- Parameters
-
data | Pointer to temporal data manager |
◆ ~wxSFCanvasState()
wxSFCanvasState::~wxSFCanvasState |
( |
void |
| ) |
|
◆ Restore()
Restore stored canvas state.
- Parameters
-
canvas | Pointer to the shape canvas which content will be replaced by the stored one |
◆ wxSFCanvasHistory
◆ m_dataBuffer
wxMemoryBuffer wxSFCanvasState::m_dataBuffer |
|
protected |
Memory buffer used during the serialization/deserialization operations.
◆ m_pDataManager
Data manager used for storing of temporal canvas state.
The documentation for this class was generated from the following file: